Skip to content
On this page

geos.GEOSLineMerge ⇒ number

Merges a collection of linear components into maximal-length linestrings.

Kind: Exported member
Returns: number - A pointer to a multilinestring containing the merged linestrings, or NULL on exception.
See: https://libgeos.org/doxygen/classgeos_1_1operation_1_1linemerge_1_1LineMerger.html

ParamTypeDescription
gnumberThe input geometry pointer, which must be a collection of linestrings or multilinestrings.

geos.GEOSLineMerge_r ⇒ number

Merges a collection of linear components into maximal-length linestrings, using a GEOS context handle.

Kind: Exported member
Returns: number - A pointer to a multilinestring containing the merged linestrings, or NULL on exception.
See: https://libgeos.org/doxygen/geos__c_8h_source.html

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
gnumberThe input geometry pointer, which must be a collection of linestrings or multilinestrings.