Skip to content

geos.GEOSDensify ⇒ GEOSGeometry

Densifies a geometry using a given distance tolerance. Additional vertices will be added to every line segment that is greater this tolerance; these vertices will evenly subdivide that segment. Only linear components of input geometry are densified.

Kind: global property of geos
Returns: GEOSGeometry - The densified geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometryThe geometry to densify
tolerancenumberthe distance tolerance to densify

geos.GEOSDensify_r ⇒ GEOSGeometry

Densifies a geometry using a given distance tolerance. Additional vertices will be added to every line segment that is greater this tolerance; these vertices will evenly subdivide that segment. Only linear components of input geometry are densified.

Kind: global property of geos
Returns: GEOSGeometry - The densified geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe geometry to densify
tolerancenumberthe distance tolerance to densify