Skip to main content

envelope_collection

Function envelope_collection 

Source
pub fn envelope_collection(collection: &GeometryCollection) -> Result<Polygon>
Expand description

Computes the envelope of a geometry collection

Returns a rectangular polygon that bounds all geometries in the collection.

§Arguments

  • collection - Input geometry collection

§Returns

Polygon representing the envelope

§Errors

Returns error if collection is empty or envelope creation fails