bounds
Calculates the bounds (also named bbox - bounding box or extent) of the geometry. The bounds are the minimum rectangle that contains the entire geometry.
Parameters
| Name | Type | Description |
|---|---|---|
geometry | Geometry | The geometry for which the bounds are calculated |
Returns
[ number, number, number, number ]
An array of four numbers [ xMin, yMin, xMax, yMax ]
Throws
GEOSErrorwhen called on an empty geometry
See also
boxcreates Polygon geometry from the bounds array