[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.3-17-gc5830f9

git at osgeo.org git at osgeo.org
Thu Jul 29 15:34:31 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, stable-3.1 has been updated
       via  c5830f976c5a4bdee5ff78ce9cb1a9a346a15f50 (commit)
       via  78df938beac42c7fd9772b8d755aa15b93a8c835 (commit)
      from  5c1e53fdb9ed7417bfaec0f0025bada44009b3eb (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 c5830f976c5a4bdee5ff78ce9cb1a9a346a15f50
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jul 29 15:34:27 2021 -0700

    NEWS entry for #4926

diff --git a/NEWS b/NEWS
index dc63adc..d7eec0c 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ PostGIS 3.1.4dev
   - #4326, Fix CircularPolygon area calculation (Paul Ramsey)
   - #4917, Fix crasher with '-' regclass (Paul Ramsey)
   - #4919, Rare crash in selectivity calculation (Paul Ramsey)
+  - #4926, Preserve SRID on unions of empty geometry (Paul Ramsey)
 
 
 PostGIS 3.1.3

commit 78df938beac42c7fd9772b8d755aa15b93a8c835
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jul 29 15:33:19 2021 -0700

    Preserve SRID on all-empty unions of geometry, closes #4926

diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index ae5aa75..2a7eb8c 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -673,6 +673,7 @@ Datum pgis_geometry_union_finalfn(PG_FUNCTION_ARGS)
 			{
 				int type = lwgeom_get_type(geom);
 				empty_type = type > empty_type ? type : empty_type;
+				srid = (srid != SRID_UNKNOWN ? srid : lwgeom_get_srid(geom));
 			}
 		}
 	}

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list