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.
| Param | Type | Description |
|---|---|---|
| g | GEOSGeometry | the input geometry |
| d | NumberPointer | a 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().
| Param | Type | Description |
|---|---|---|
| g | GEOSGeometry | the 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().
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g | GEOSGeometry | the 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.
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g | GEOSGeometry | the input geometry |
| distance | NumberPointer | a double to which the result can be stored |