[geos-commits] [SCM] GEOS branch svn-3.6 updated. 0680a65700e22e6ebd09fdd4ebbe33fcd8a20bd1

git at osgeo.org git at osgeo.org
Tue Sep 18 14:31:54 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.6 has been updated
       via  0680a65700e22e6ebd09fdd4ebbe33fcd8a20bd1 (commit)
      from  bad46e4da38414cee248e402b654b1cc8b40134f (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 0680a65700e22e6ebd09fdd4ebbe33fcd8a20bd1
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 74dc3c2..edfd3bb 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -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);
 

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

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