[SCM] PostGIS branch stable-3.5 updated. 3.5.3-36-g2ed60c0d0
git at osgeo.org
git at osgeo.org
Tue Jul 22 02:55:30 PDT 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 2ed60c0d01813545118f9f8cd73b9da86748f328 (commit)
from e3dfa56c1218b6fb1e738341a3032c717e165d0a (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 2ed60c0d01813545118f9f8cd73b9da86748f328
Author: Sandro Santilli <strk at kbt.io>
Date: Tue Jul 22 11:36:43 2025 +0200
Add test for fixed crasher in ST_ModEdgeHeal
References #5947 in 3.5 branch (3.5.4dev)
diff --git a/topology/test/regress/st_modedgeheal.sql b/topology/test/regress/st_modedgeheal.sql
index 628c470d7..43a4204cf 100644
--- a/topology/test/regress/st_modedgeheal.sql
+++ b/topology/test/regress/st_modedgeheal.sql
@@ -225,6 +225,21 @@ SELECT '#1998.-', topology.DropTopology('t1998');
-------------------------------------------------------------------------
-------------------------------------------------------------------------
+-- Crash case
+-- See https://trac.osgeo.org/postgis/ticket/5947
+
+BEGIN;
+SELECT NULL FROM createTopology('t5947');
+SELECT NULL FROM TopoGeo_addLinestring('t5947', 'LINESTRING(10 0, 0 0)');
+SELECT NULL FROM TopoGeo_addLinestring('t5947', 'LINESTRING(20 0, 10 0)');
+UPDATE t5947.edge_data SET geom = 'LINESTRING EMPTY' WHERE edge_id = 2;
+SELECT 't5947', ST_ModEdgeHeal('t5947', 1, 2);
+ROLLBACK;
+
+-------------------------------------------------------------------------
+-------------------------------------------------------------------------
+-------------------------------------------------------------------------
+
-- TODO: test registered but unexistent topology
-- TODO: test registered but corrupted topology
-- (missing node, edge, relation...)
diff --git a/topology/test/regress/st_modedgeheal_expected b/topology/test/regress/st_modedgeheal_expected
index 9dd640b15..2b4fbfbd8 100644
--- a/topology/test/regress/st_modedgeheal_expected
+++ b/topology/test/regress/st_modedgeheal_expected
@@ -151,3 +151,4 @@ Topology 't' dropped
#1998.N-|2
#1998.M2|LINESTRING(1 1,1 0,0 0,0 1,1 1)
#1998.-|Topology 't1998' dropped
+t5947|1
-----------------------------------------------------------------------
Summary of changes:
topology/test/regress/st_modedgeheal.sql | 15 +++++++++++++++
topology/test/regress/st_modedgeheal_expected | 1 +
2 files changed, 16 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list