[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-176-g82ab7bc

git at osgeo.org git at osgeo.org
Sun May 2 00:39:15 PDT 2021


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 "PostGIS".

The branch, master has been updated
       via  82ab7bc5a31f68ab42acdec48f558aac3b855804 (commit)
      from  4e56592f075659afa28ed1650801bdb875f62212 (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 82ab7bc5a31f68ab42acdec48f558aac3b855804
Author: Regina Obe <lr at pcorp.us>
Date:   Sun May 2 03:38:55 2021 -0400

    Fix GEOS 3.10 guard

diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c
index a1bed05..f74da70 100644
--- a/liblwgeom/lwgeom_geos.c
+++ b/liblwgeom/lwgeom_geos.c
@@ -143,7 +143,7 @@ ptarray_from_GEOSCoordSeq(const GEOSCoordSequence* cs, uint8_t want3d)
 	LWDEBUGF(4, " output dimensions: %d", dims);
 
 	pa = ptarray_construct((dims == 3), 0, size);
-#if POSTGIS_GEOS_VERSION >= 310
+#if POSTGIS_GEOS_VERSION >= 31000
 	GEOSCoordSeq_copyToBuffer(cs, (double*) pa->serialized_pointlist, (dims == 3), 0);
 	return pa;
 #else
@@ -275,7 +275,7 @@ ptarray_to_GEOSCoordSeq(const POINTARRAY* pa, uint8_t fix_ring)
 		}
 	}
 
-#if POSTGIS_GEOS_VERSION >= 310
+#if POSTGIS_GEOS_VERSION >= 31000
 	if (append_points == 0) {
 		sq = GEOSCoordSeq_copyFromBuffer((const double*) pa->serialized_pointlist, pa->npoints, FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags));
 		if (!sq)

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

Summary of changes:
 liblwgeom/lwgeom_geos.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list