Skip to content
On this page

geos.GEOSConvexHull ⇒ number

Computes the convex hull of a geometry. The convex hull is the smallest convex geometry that contains all the points in the input geometry.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the convex hull, or NULL on exception.
See: https://libgeos.org/doxygen/classgeos_1_1algorithm_1_1ConvexHull.html

ParamTypeDescription
geomnumberA pointer to a GEOSGeometry object.

geos.GEOSConvexHull_r ⇒ number

Computes the convex hull of a geometry using a handle. The convex hull is the smallest convex geometry that contains all the points in the input geometry.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the convex hull, or NULL on exception.
See: https://libgeos.org/doxygen/classgeos_1_1algorithm_1_1ConvexHull.html

ParamTypeDescription
handlenumberA pointer to a GEOSContextHandle_t object.
geomnumberA pointer to a GEOSGeometry object.