[SCM] PostGIS branch stable-3.5 updated. 3.5.1-2-g226e51356

git at osgeo.org git at osgeo.org
Tue Jan 7 09:24:59 PST 2025


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, stable-3.5 has been updated
       via  226e51356c9cde970cb54d66e59baf389104c536 (commit)
      from  e8443a147561e7e9b06a09154c1d37db73d41e91 (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 226e51356c9cde970cb54d66e59baf389104c536
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jan 7 09:24:38 2025 -0800

    Retain SRID during unary union, references #5677

diff --git a/NEWS b/NEWS
index 66c17ba62..9edf304ff 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PostgreSQL 12-17 required. GEOS 3.8+ required. Proj 6.1+ required.
 
 * Bug fixes *
 
+- #5677, Retain SRID during unary union (Paul Ramsey)
+
 
 PostGIS 3.5.1
 2024/12/22
@@ -15,7 +17,6 @@ PostgreSQL 12-17 required. GEOS 3.8+ required. Proj 6.1+ required.
 
 * Bug fixes *
 
-- #5677, Retain SRID during unary union (Paul Ramsey)
 - #5792, [topology] Prevent topology corruption with TopoGeo_addPoint near almost
          collinear edges (Sandro Santilli)
 - #5795, [topology] Fix ST_NewEdgesSplit can cause invalid topology
diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index a6bc297b8..717a597e4 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -584,6 +584,7 @@ Datum pgis_union_geometry_array(PG_FUNCTION_ARGS)
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
 #pragma GCC diagnostic pop
 #endif
+		srid = GEOSGetSRID(g);
 		g_union = GEOSUnaryUnion(g);
 		GEOSGeom_destroy(g);
 		if (!g_union) HANDLE_GEOS_ERROR("GEOSUnaryUnion");

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

Summary of changes:
 NEWS                  | 3 ++-
 postgis/lwgeom_geos.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list