2

I want to display a vector layer's bounding box in a print layout (or possibly a single feature's bounding box). Does QGIS have anything built-in to achieve this in the renderer/style? Or will I have to load a style/add a symbol layer with bounds($geometry)?

1 Answer 1

3

bounds($geometry) in a Geometry Generator symbol layer will draw a box round every feature in a layer:

enter image description here

Best I can do for a whole layer with multiple features is a new virtual layer of the extent of the layer:

enter image description here

This should be a lot quicker than my first stab of the bounds of the union:

enter image description here

1
  • I'll accept this - thank you - if no-one comes up with any built-in QGIS "bounding box only" display option with a Python binding. Commented Feb 15, 2021 at 13:49

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.