geos.GEOSMinimumRotatedRectangle ⇒ GEOSGeometry ⏏
Returns the minimum rotated rectangular POLYGON which encloses the input geometry. The rectangle has width equal to the minimum diameter, and a longer length. If the convex hill of the input is degenerate (a line or point) a linestring or point is returned. The minimum rotated rectangle can be used as an extremely generalized representation for the given geometry.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the rotated envelope. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| g | GEOSGeometry | The input geometry |
geos.GEOSMinimumRotatedRectangle_r ⇒ GEOSGeometry ⏏
Returns the minimum rotated rectangular POLYGON which encloses the input geometry. The rectangle has width equal to the minimum diameter, and a longer length. If the convex hill of the input is degenerate (a line or point) a linestring or point is returned. The minimum rotated rectangle can be used as an extremely generalized representation for the given geometry.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the rotated envelope. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g | GEOSGeometry | The input geometry |