[geos-commits] [SCM] GEOS branch master updated. 33e771633cab9ae248b769b89385b624371545d8

git at osgeo.org git at osgeo.org
Tue Sep 18 14:27:58 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, master has been updated
       via  33e771633cab9ae248b769b89385b624371545d8 (commit)
       via  175a6b4e34be0f9e67f1ccc2321cf5dbfb9a5aa8 (commit)
      from  a71f21a9d36e483628e7d2c46fb9d24dfcec98bc (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 33e771633cab9ae248b769b89385b624371545d8
Merge: a71f21a 175a6b4
Author: Daniel Baston <dbaston at gmail.com>
Date:   Tue Sep 18 17:27:45 2018 -0400

    Merge branch 'sir-sigurd-patch-1'


commit 175a6b4e34be0f9e67f1ccc2321cf5dbfb9a5aa8
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 608de40..7715829 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);
@@ -2000,7 +2000,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