envelope

fun envelope(geoJson: GeoJson): Polygon

Takes any GeoJson and returns a rectangular Polygon that encompasses all vertices.

Return

a rectangular Polygon feature that encompasses all vertices

Parameters

geoJson

input containing any coordinates