Skip to content

geos.GEOSMinimumClearance ⇒ number

Computes the minimum clearance of a geometry. The minimum clearance is the smallest amount by which a vertex could be move to produce an invalid polygon, a non-simple linestring, or a multipoint with repeated points. If a geometry has a minimum clearance of 'eps', it can be said that:

Kind: global property of geos
Returns: number - 0 if no exception occurred. 2 if an exception occurred.

ParamTypeDescription
gGEOSGeometrythe input geometry
dNumberPointera double to which the result can be stored

geos.GEOSMinimumClearanceLine ⇒ GEOSGeometry

Returns a LineString whose endpoints define the minimum clearance of a geometry. If the geometry has no minimum clearance, an empty LineString will be returned.

Kind: global property of geos
Returns: GEOSGeometry - a linestring geometry, or NULL if an exception occurred. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometrythe input geometry

geos.GEOSMinimumClearanceLine_r ⇒ GEOSGeometry

Returns a LineString whose endpoints define the minimum clearance of a geometry. If the geometry has no minimum clearance, an empty LineString will be returned.

Kind: global property of geos
Returns: GEOSGeometry - a linestring geometry, or NULL if an exception occurred. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometrythe input geometry

geos.GEOSMinimumClearance_r ⇒ number

Computes the minimum clearance of a geometry. The minimum clearance is the smallest amount by which a vertex could be move to produce an invalid polygon, a non-simple linestring, or a multipoint with repeated points. If a geometry has a minimum clearance of 'eps', it can be said that:

Kind: global property of geos
Returns: number - 0 if no exception occurred. 2 if an exception occurred.

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometrythe input geometry
distanceNumberPointera double to which the result can be stored