Skip to content

Commit

Permalink
Improve C API doc for LineMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jul 18, 2023
1 parent a911163 commit cf1e312
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions capi/geos_c.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -4449,22 +4449,26 @@ extern GEOSGeometry GEOS_DLL *GEOSDensify(
double tolerance);

/**
* Sews together a set of fully noded LineStrings
* removing any cardinality 2 nodes in the linework.
* Merges a set of LineStrings,
* joining them at nodes which have cardinality 2.
* Lines may have their direction reversed.

* \param g The input linework
* \return The merged linework
* \return The merged linework.
* Caller is responsible for freeing with GEOSGeom_destroy().
* \see geos::operation::linemerge::LineMerger
* \since 2.2
*/
extern GEOSGeometry GEOS_DLL *GEOSLineMerge(const GEOSGeometry* g);

/**
* Sews together a set of fully noded LineStrings
* removing any cardinality 2 nodes in the linework
* only if possible without changing order of points.
* Merges a set of LineStrings,
* joining them at nodes which have cardinality 2.
* and where the lines have the same direction.
* This means that lines do not have their direction reversed.

* \param g The input linework
* \return The merged linework
* \return The merged linework.
* Caller is responsible for freeing with GEOSGeom_destroy().
* \see geos::operation::linemerge::LineMerger
*
Expand Down

0 comments on commit cf1e312

Please sign in to comment.