Skip to main content

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

NameTypeDescription
geometryGeometryThe geometry for which the bounds are calculated

Returns

[ number, number, number, number ]

An array of four numbers [ xMin, yMin, xMax, yMax ]

Throws

Examples