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
GEOSError
when called on an empty geometry