Skip to content

geos.GEOSRemoveRepeatedPoints ⇒ GEOSGeometry ⏏ ​

Works from start of each coordinate sequence in the geometry, retaining points that are further away from the previous retained point than the tolerance value.

Kind: global property of geos
Returns: GEOSGeometry - A geometry with all points within the tolerance of each other removed.

ParamTypeDescription
gGEOSGeometryThe geometry to filter
tolerancenumberRemove all points within this distance of each other. Use 0.0 to remove only exactly repeated points.

geos.GEOSRemoveRepeatedPoints_r ⇒ GEOSGeometry ⏏ ​

Works from start of each coordinate sequence in the geometry, retaining points that are further away from the previous retained point than the tolerance value.

Kind: global property of geos
Returns: GEOSGeometry - A geometry with all points within the tolerance of each other removed.

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe geometry to filter
tolerancenumberRemove all points within this distance of each other. Use 0.0 to remove only exactly repeated points.