bbox

fun bbox(geometry: Geometry): BoundingBox
fun bbox(geometry: Point): BoundingBox
fun bbox(geometry: MultiPoint): BoundingBox
fun bbox(geometry: LineString): BoundingBox
fun bbox(geometry: Polygon): BoundingBox
fun bbox(geometry: MultiPolygon): BoundingBox

Takes a geometry and calculates the bbox of all input features, and returns a bounding box.

Return

A BoundingBox that covers the geometry.

Parameters

geometry

The geometry to compute a bounding box for.


Takes a feature and calculates the bbox of the feature's geometry, and returns a bounding box.

Return

A BoundingBox that covers the geometry.

Parameters

feature

The feature to compute a bounding box for.


fun bbox(featureCollection: FeatureCollection): BoundingBox

Takes a feature collection and calculates a bbox that covers all features in the collection.

Return

A BoundingBox that covers the geometry.

Parameters

featureCollection

The collection of features to compute a bounding box for.