[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0beta1-61-gf0d870f05
git at osgeo.org
git at osgeo.org
Mon Jul 24 13:41:35 PDT 2023
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 f0d870f056cdaf0df58436707f801ab85e8face7 (commit)
from 613ed3f9e059495c47c98ac71dc4f089a9780ae5 (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 f0d870f056cdaf0df58436707f801ab85e8face7
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Jul 24 13:41:16 2023 -0700
Add specific repeated point test for ST_SnapToGrid, references #5448
diff --git a/regress/core/snaptogrid.sql b/regress/core/snaptogrid.sql
index 420b1e629..60f0b5189 100644
--- a/regress/core/snaptogrid.sql
+++ b/regress/core/snaptogrid.sql
@@ -23,3 +23,6 @@ Select ST_AsText(g) as geometry, postgis_getbbox(g) AS box from geom;
-- #5241
SELECT '#5241' AS t, ST_AsText(ST_SnapToGrid( ST_GeomFromText('MULTIPOLYGON (((9 9, 9 1, 1 1, 2 4, 7 7, 9 9)), EMPTY)', 4326), 20.1, 20.1, 20.1, 20.1));
SELECT '#5241' AS t, ST_AsText(ST_SnapToGrid( ST_GeomFromText('MULTIPOLYGON (((9 9, 9 1, 1 1, 2 4, 7 7, 9 9)), EMPTY)', 4326), 1, 1, 1, 1));
+
+-- #5448, test with input with repeated points
+SELECT '#5448', ST_AsText(ST_SnapToGrid('LINESTRING(0 0,1 1,1 1,1 1)'::geometry, 0.001), 3);
diff --git a/regress/core/snaptogrid_expected b/regress/core/snaptogrid_expected
index 3adaad8a7..3f208f021 100644
--- a/regress/core/snaptogrid_expected
+++ b/regress/core/snaptogrid_expected
@@ -7,3 +7,4 @@ POLYGON((0 0,10 0,10 10,0 10,0 0))|BOX(0 0,10 10)
POLYGON((0 0,10 0,10 10,0 10,0 0))|BOX(0 0,10 10)
#5241|MULTIPOLYGON EMPTY
#5241|MULTIPOLYGON(((9 9,9 1,1 1,2 4,7 7,9 9)))
+#5448|LINESTRING(0 0,1 1)
-----------------------------------------------------------------------
Summary of changes:
regress/core/snaptogrid.sql | 3 +++
regress/core/snaptogrid_expected | 1 +
2 files changed, 4 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list