Commit 0680a657 authored by Sergey Fedoseev's avatar Sergey Fedoseev Committed by Dan Baston

Fixed documented return codes of GEOSGeomGetX() and friends.

parent bad46e4d
Pipeline #30549563 passed with stage
in 24 minutes and 5 seconds
......@@ -1032,7 +1032,7 @@ extern int GEOS_DLL GEOSGetNumInteriorRings_r(GEOSContextHandle_t handle,
extern int GEOS_DLL GEOSGeomGetNumPoints_r(GEOSContextHandle_t handle,
const GEOSGeometry* g);
/* Return -1 on exception, Geometry must be a Point. */
/* Return 0 on exception, otherwise 1, Geometry must be a Point. */
extern int GEOS_DLL GEOSGeomGetX_r(GEOSContextHandle_t handle, const GEOSGeometry *g, double *x);
extern int GEOS_DLL GEOSGeomGetY_r(GEOSContextHandle_t handle, const GEOSGeometry *g, double *y);
......@@ -1916,7 +1916,7 @@ extern int GEOS_DLL GEOSGetNumInteriorRings(const GEOSGeometry* g);
/* Return -1 on exception, Geometry must be a LineString. */
extern int GEOS_DLL GEOSGeomGetNumPoints(const GEOSGeometry* g);
/* Return -1 on exception, Geometry must be a Point. */
/* Return 0 on exception, otherwise 1, Geometry must be a Point. */
extern int GEOS_DLL GEOSGeomGetX(const GEOSGeometry *g, double *x);
extern int GEOS_DLL GEOSGeomGetY(const GEOSGeometry *g, double *y);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment