[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.3-18-g434494e
git at osgeo.org
git at osgeo.org
Fri Jul 30 11:04:49 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 434494e5547cf76be048bb3d72b6c311866d837d (commit)
from c5830f976c5a4bdee5ff78ce9cb1a9a346a15f50 (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 434494e5547cf76be048bb3d72b6c311866d837d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jul 30 11:04:40 2021 -0700
Allow repeated points in GML poslist inputs, closes #4910
diff --git a/NEWS b/NEWS
index d7eec0c..16873a7 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ PostGIS 3.1.4dev
- #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)
+ - #4910, Allow repeated points in GML input poslists (Paul Ramsey)
PostGIS 3.1.3
diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c
index 664ed93..fd08c56 100644
--- a/postgis/lwgeom_in_gml.c
+++ b/postgis/lwgeom_in_gml.c
@@ -904,7 +904,8 @@ static POINTARRAY* parse_gml_poslist(xmlNodePtr xnode, bool *hasz)
if (gml_dim == dim)
{
- ptarray_append_point(dpa, &pt, LW_FALSE);
+ /* Add to ptarray, allowing dupes */
+ ptarray_append_point(dpa, &pt, LW_TRUE);
pt.x = pt.y = pt.z = pt.m = 0.0;
gml_dim = 0;
}
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/lwgeom_in_gml.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list