[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.3-34-gf29da5d
git at osgeo.org
git at osgeo.org
Thu Jul 29 15:35:12 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.0 has been updated
via f29da5d55f579b09710206550a5744164caef487 (commit)
via 7838435aa76a51447706e384378adde7c7edb0e8 (commit)
from 3580c259a5816bdc3bedf80bf0bde7d00b143d54 (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 f29da5d55f579b09710206550a5744164caef487
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jul 29 15:35:05 2021 -0700
NEWS entry for #4926
diff --git a/NEWS b/NEWS
index 8f1063d..0c17446 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ PostGIS 3.0.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.0.3
commit 7838435aa76a51447706e384378adde7c7edb0e8
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 d8580ab..6eebc72 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -550,6 +550,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