[SCM] PostGIS branch master updated. 3.6.0beta1-4-g1458a794d
git at osgeo.org
git at osgeo.org
Tue Jul 22 02:37:52 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, master has been updated
via 1458a794d4c2e8347b8f7b3ab3a650cfc57ac43f (commit)
from 0c81ca90f8769077dd066d51d62e254b32f6f13d (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 1458a794d4c2e8347b8f7b3ab3a650cfc57ac43f
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 master branch (3.6.0dev)
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