[geos-commits] [SCM] GEOS branch 3.7 updated. f99c6c66ad69f3c3eb17f306e697169fab9607dd

git at osgeo.org git at osgeo.org
Tue Sep 18 14:30:19 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, 3.7 has been updated
       via  f99c6c66ad69f3c3eb17f306e697169fab9607dd (commit)
      from  673b993976709d2f72c35c4886327d6f2752fe48 (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 f99c6c66ad69f3c3eb17f306e697169fab9607dd
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 db48e15..16a7858 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -1066,7 +1066,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);
 extern int GEOS_DLL GEOSGeomGetZ_r(GEOSContextHandle_t handle, const GEOSGeometry *g, double *z);
@@ -1991,7 +1991,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);
 extern int GEOS_DLL GEOSGeomGetZ(const GEOSGeometry *g, double *z);

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

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