Skip to content

geos.GEOSLineSubstring ⇒ GEOSGeometry

Computes the line which is the section of the input LineString starting and ending at the given length fractions.

Kind: global property of geos
Returns: GEOSGeometry - selected substring. Caller is responsible for freeing with GEOSGeom_destroy()

ParamTypeDescription
gGEOSGeometryThe input LineString
start_fractionnumberstart fraction (0-1) along the length of g
end_fractionnumberend fraction (0-1) along the length of g

geos.GEOSLineSubstring_r ⇒ GEOSGeometry

Computes the line which is the section of the input LineString starting and ending at the given length fractions.

Kind: global property of geos
Returns: GEOSGeometry - selected substring. Caller is responsible for freeing with GEOSGeom_destroy()

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe input LineString
start_fractionnumberstart fraction (0-1) along the length of g
end_fdractionnumberend fraction (0-1) along the length of g