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
Param | Type | Description |
---|---|---|
g | number | The input geometry pointer. |
tolerance | number | The 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
Param | Type | Description |
---|---|---|
handle | number | The GEOS context pointer handle. |
g | number | The input geometry pointer. |
tolerance | number | The 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. |