Skip to content
On this page

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

ParamTypeDescription
geomnumberA pointer to a GEOSGeometry object.
tolerancenumberThe 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

ParamTypeDescription
handlenumberA pointer to a GEOSContextHandle object.
geomnumberA pointer to a GEOSGeometry object.
tolerancenumberThe distance tolerance for the simplification.