Skip to content
On this page

geos.GEOSSimplify ⇒ number

Simplifies a Geometry using the standard Douglas-Peucker algorithm.

Kind: Exported member
Returns: number - A pointer to a new simplified geometry, or NULL if an exception occurs.
See: https://libgeos.org/doxygen/classgeos_1_1simplify_1_1DouglasPeuckerSimplifier.html

ParamTypeDescription
gnumberThe input geometry pointer.
tolerancenumberThe distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry. The tolerance value must be non-negative. A tolerance value of zero is effectively a no-op.

geos.GEOSSimplify_r ⇒ number

Simplifies a Geometry using the standard Douglas-Peucker algorithm.

Kind: Exported member
Returns: number - A pointer to a new simplified geometry, or NULL if an exception occurs.
See: https://docs.rs/geos-sys/1.0.10/geos_sys/fn.GEOSSimplify_r.html

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
gnumberThe input geometry pointer.
tolerancenumberThe distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry. The tolerance value must be non-negative. A tolerance value of zero is effectively a no-op.