Skip to content

Commit

Permalink
C API header improvements merged with directed line merge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei sh committed May 17, 2022
1 parent 291c646 commit 47a7b27
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions capi/geos_c.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -2615,23 +2615,9 @@ extern char GEOS_DLL GEOSisClosed(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.
* \param g The input linework
* \return The merged linework
* Caller is responsible for freeing with GEOSGeom_destroy().
* \see geos::operation::linemerge::LineMerger
*/
extern GEOSGeometry GEOS_DLL *GEOSLineMergeDirected(const GEOSGeometry* g);

/**
* For geometries with coordinate sequences, reverses the order
* of the sequences. Converts CCW rings to CW. Reverses direction
* of LineStrings.
* \param g The input geometry
* \return The reversed geometry
* Caller is responsible for freeing with GEOSGeom_destroy().
* Set the "spatial reference id" (SRID) for this geometry.
* \param g Input geometry
* \param SRID SRID number or 0 for unknown SRID.
*/
extern void GEOS_DLL GEOSSetSRID(GEOSGeometry* g, int SRID);

Expand Down Expand Up @@ -3787,6 +3773,17 @@ extern GEOSGeometry GEOS_DLL *GEOSDensify(
*/
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.
* \param g The input linework
* \return The merged linework
* Caller is responsible for freeing with GEOSGeom_destroy().
* \see geos::operation::linemerge::LineMerger
*/
extern GEOSGeometry GEOS_DLL *GEOSLineMergeDirected(const GEOSGeometry* g);

/**
* For geometries with coordinate sequences, reverses the order
* of the sequences. Converts CCW rings to CW. Reverses direction
Expand Down

0 comments on commit 47a7b27

Please sign in to comment.