1

Suppose I have a points shapefile with a 'group' attribute, each value of which identifies a number of points (e.g. group=1 identifies points 1,3,6 and group=2 identifies points 2,4,5).

How can I create a buffer for each group that contains all the points belonging to that group?

1
  • It's classic Voronoi proximity polygons task. Create them first and dissolve using group name.
    – FelixIP
    Jul 14, 2018 at 21:18

2 Answers 2

3

You could try using this in the geometry generator in the layer properties. (Change the Simple Fill into the geometry generator)

Case
when "group" = 1 then buffer($geometry,0.25)
when "group" = 2 then buffer($geometry,0.5)
else buffer($geometry,0)
End

This should create buffers depending on your group type. Below you have a pictures of layer properties window to show you how to change to geometry generator, and the resulting buffers

Properties of Layer Image

Result

2

One possibility is Buffer vectors tool in (Processing Toolbox | GDAL | Vector geoprocessing), which has Dissolve by attribute option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.