You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option in processing toolbox that creates bounding box geometries (envelopes) for each feature in a vector layer. This can be useful for visualizing the spatial extent of features.
This operation would:
Replace each geometry with a rectangle (its bounding box).
Preserve the original feature attributes.
A simple ogr2ogr command would look like:
[
'-f', 'GeoJSON',
'-dialect', 'sqlite',
'-sql', 'SELECT ST_Envelope(geometry) AS geometry, * FROM input'
]