[geos-commits] [SCM] GEOS branch svn-3.5 updated. 46987a89b59af10affa494c1432d12fb61a43ac9

git at osgeo.org git at osgeo.org
Tue Sep 18 14:32:14 PDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, svn-3.5 has been updated
       via  46987a89b59af10affa494c1432d12fb61a43ac9 (commit)
      from  55dd060d8a4ad49390a1c74e5570dd7cf229ed4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 46987a89b59af10affa494c1432d12fb61a43ac9
Author: Sergey Fedoseev <fedoseev.sergey at gmail.com>
Date:   Tue Sep 18 22:51:04 2018 +0500

    Fixed documented return codes of GEOSGeomGetX() and friends.

diff --git a/capi/geos_c.h.in b/capi/geos_c.h.in
index 2e1f128..444f9ef 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -949,7 +949,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);
 
@@ -1693,7 +1693,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);
 

-----------------------------------------------------------------------

Summary of changes:
 capi/geos_c.h.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list