geos.GEOSTopologyPreserveSimplify ⇒ number
⏏
Simplifies a geometry, ensuring that the result is a valid geometry having the same dimension and number of components as the input.
Kind: Exported member
Returns: number
- A pointer to a simplified GEOSGeometry object, or NULL on error.
See: https://libgeos.org/doxygen/classgeos_1_1simplify_1_1TopologyPreservingSimplifier.html
Param | Type | Description |
---|---|---|
geom | number | A pointer to a GEOSGeometry object. |
tolerance | number | The distance tolerance for the simplification. |
geos.GEOSTopologyPreserveSimplify_r ⇒ number
⏏
Simplifies a geometry, ensuring that the result is a valid geometry having the same dimension and number of components as the input. Thread-safe version.
Kind: Exported member
Returns: number
- A pointer to a simplified GEOSGeometry object, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html
Param | Type | Description |
---|---|---|
handle | number | A pointer to a GEOSContextHandle object. |
geom | number | A pointer to a GEOSGeometry object. |
tolerance | number | The distance tolerance for the simplification. |