1

I have a layer with polygons, and I want to make a buffer but only for the ones that meet a condition ("MUNICIPIO"=5). When I make a fixed distance buffer, it makes a buffer for all the polygons in the layer. Is there a way to make a buffer only for the polygons I want?

1

2 Answers 2

1

Use Select by Expression from the attribute table to select polygons of "MUNICIPIO"=5 and use Fixed Distance Buffer for the selected polygons.

Use Fixed Distance Buffer from SAGA tools which you can find it from Processing toolbox -> SAGA -> Vector General tools -> Fixed Distance Buffer. It should work.

Make sure that Use only selected features option is checked from the Processing Option. It should be checked by default.

enter image description here

enter image description here

2
  • Thanks. Can you tell me where can I find the Processing options window? Commented Dec 14, 2017 at 7:13
  • I updated my answer.
    – ahmadhanb
    Commented Dec 14, 2017 at 7:14
1

For this you can use a Virtual Layer.

Choose Add/Edit Virtual Layer in the Manage Layers Toolbar, import your layer and use a query like:

SELECT ST_Buffer(geometry, 100) FROM your_layer WHERE MUNICIPIO=5

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.