Skip to content
On this page

geos.GEOSDensify ⇒ number

Returns a geometry with vertices added to make the lines no longer than a given distance.

Kind: Exported member
Returns: number - A pointer to a new GEOS geometry object, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html#a6f0b2f9f1a0c7e4b8a5f2d3c1a7e5c9b

ParamTypeDescription
gnumberA pointer to a GEOS geometry object.
tolerancenumberThe maximum distance between vertices in the output geometry.

geos.GEOSDensify_r ⇒ number

Densifies a geometry by adding points along the segments so that the distance between any two consecutive points is less than or equal to a given tolerance.

Kind: Exported member
Returns: number - A pointer to a new GEOS geometry object representing the densified geometry, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html#a6a9f4b9a8d1f2c0f0b3e5f6b7a0c5a2c

ParamTypeDescription
ctxnumberA GEOS context handle.
geomnumberA pointer to a GEOS geometry object.
tolerancenumberA positive distance value.