Minimum Bounding Rectangle
The smallest-area rectangle, at any angle, that contains each feature.
Pitfall. Some engines can minimise width, length or perimeter instead of area, which gives a different rectangle.
Pitfall. Angles and areas in a geographic CRS are measured in degrees.
| Also called | oriented envelope, minimum rotated rectangle, oriented minimum bounding box, Minimum Bounding Geometry (rectangle by area) |
|---|---|
| Group | vector/geometry |
| Checks | crs.measure, geometry.valid |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
Not stated
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | Not stated | Not stated |
| Output | output | vector | polygon | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_OrientedEnvelope |
|
|
geopandas | geopandas.GeoSeries.minimum_rotated_rectangle | Not stated |
|
postgis | st_orientedenvelope |
|
|
qgis | native:orientedminimumboundingbox |
|
|
sf | sf::st_minimum_rotated_rectangle |
|
|
shapely | shapely.oriented_envelope |
|
|
whiteboxtools | MinimumBoundingBox |
|
|