convex

fun convex(geometry: Geometry, concavity: Int = Int.MAX_VALUE): Polygon?

Takes a Geometry and returns a convex hull Polygon.

Internally this implements a monotone chain hull.

Return

a convex hull. null, when input is empty or a hull can not be calculated

Parameters

geometry

input Feature or FeatureCollection

concavity

1 - thin shape. Integer.MAX_VALUE - convex hull.