Model

Non-overlapping buffer from points


image

The algorithm creates non-overlapping buffer from points using voronoi and intersection operations.

21 July 2021
30 July 2021
29 May 2024
V

Hi I tested this alg using 199 randomly generated points using the Vector -> Research Tools -> Random Points alg. The generated memory layer is a point layer (not multipoint), but the model fails complaining about a multipoint layer (see below), Could you address this in your model? Algorithm 'Non-overlapping buffer from points' starting… Input parameters: { 'Bufferradius' : 50000, 'CRS' : QgsCoordinateReferenceSystem('EPSG:3035'), 'Points' : 'memory://Point?crs=EPSG:3857&field=id:long(0,0)&uid={4979f7b5-41a3-4a7a-adc6-a783ee82656e}', 'qgis:deletecolumn_1:R_Non-overlapping buffer from points' : 'TEMPORARY_OUTPUT' } Prepare algorithm: native:fixgeometries_1 Running Fix geometries [1/8] Input Parameters: { INPUT: 'memory://Point?crs=EPSG:3857&field=id:long(0,0)&uid={4979f7b5-41a3-4a7a-adc6-a783ee82656e}', OUTPUT: 'memory:Fixed geometries' } OK. Execution took 0.842 s (1 outputs). Prepare algorithm: native:reprojectlayer_1 Running Reproject point layer [2/8] Input Parameters: { INPUT: 'memory://MultiPoint?crs=EPSG:3857&field=id:long(0,0)&uid={fd9dbd05-3341-416f-b3be-efbab9595208}', OPERATION: '', OUTPUT: 'memory:Reprojected', TARGET_CRS: QgsCoordinateReferenceSystem('EPSG:3035') } OK. Execution took 0.754 s (1 outputs). Prepare algorithm: qgis:fieldcalculator_1 Running Field calculator add uID [3/8] Input Parameters: { FIELD_LENGTH: 128, FIELD_NAME: 'uID', FIELD_PRECISION: 3, FIELD_TYPE: 2, FORMULA: ' uuid() ', INPUT: 'memory://MultiPoint?crs=EPSG:3035&field=id:long(0,0)&uid={d5b5652e-40b0-4679-8519-f0c6096a7a74}', OUTPUT: 'memory:Calculated' } OK. Execution took 0.715 s (1 outputs). Prepare algorithm: qgis:voronoipolygons_1 Running Voronoi polygons [4/8] Input Parameters: { BUFFER: 250, INPUT: 'memory://MultiPoint?crs=EPSG:3035&field=id:long(0,0)&field=uID:string(128,3)&uid={688e4566-2949-4a94-9429-cb4525eaa2a7}', OUTPUT: 'memory:Voronoi polygons' } Traceback (most recent call last): File "/home/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/qgis/VoronoiPolygons.py", line 131, in processAlgorithm point = geom.asPoint() TypeError: MultiPoint geometry cannot be converted to a point. Only Point types are permitted. Error encountered while running Voronoi polygons Execution failed after 2.96 seconds Loading resulting layers Algorithm 'Non-overlapping buffer from points' finished

Reviewed by timlinux 3 years, 10 months ago

Thanks so much for sharing!

Reviewed by timlinux 3 years, 10 months ago

Thanks!

Reviewed by timlinux 3 years, 10 months ago

timlinux approved these changes 3 years, 10 months ago

This Model is made available under the CC-0 license.

QGIS sustaining members

Flagship membership


Flagship membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership


Large membership