[SCM] PostGIS branch stable-3.3 updated. 3.3.7-44-gde2e2c580
git at osgeo.org
git at osgeo.org
Sat Jul 19 05:29:09 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.3 has been updated
via de2e2c580468de50b3bd984ccd1df6834303a2db (commit)
from 44773fee5e183476c5537be257cf3ebaa15cbda7 (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 de2e2c580468de50b3bd984ccd1df6834303a2db
Author: Sandro Santilli <strk at kbt.io>
Date: Sat Jul 19 14:27:34 2025 +0200
Make test less insensible to edge identifiers
References #5946
diff --git a/topology/test/regress/getfacebypoint.sql b/topology/test/regress/getfacebypoint.sql
index 842394cb8..fc47b0b63 100644
--- a/topology/test/regress/getfacebypoint.sql
+++ b/topology/test/regress/getfacebypoint.sql
@@ -59,9 +59,19 @@ SELECT 'e2', topology.GetFaceByPoint('topo','POINT(6 13)', 1);
-- Empty edge geometries should not make the function choke
-- See https://trac.osgeo.org/postgis/ticket/5946
-BEGIN;
-UPDATE topo.edge_data SET geom = 'LINESTRING EMPTY';
-SELECT 't5946', topology.GetFaceByPoint('topo','POINT(6 13)', 0);
-ROLLBACK;
+DO $$
+BEGIN
+ -- 1. corrupt topology
+ UPDATE topo.edge_data SET geom = 'LINESTRING EMPTY';
+ -- 2. Try to get a face by a point
+ BEGIN
+ SELECT 't5946', topology.GetFaceByPoint('topo','POINT(6 13)', 0);
+ EXCEPTION
+ WHEN OTHERS THEN
+ -- Strip details, we only want the first part
+ RAISE EXCEPTION '%', regexp_replace(SQLERRM, '([^:]): .*', '\1 (see #5946)');
+ END;
+END;
+$$ LANGUAGE 'plpgsql';
SELECT NULL FROM topology.DropTopology('topo');
diff --git a/topology/test/regress/getfacebypoint_expected b/topology/test/regress/getfacebypoint_expected
index 471eeafd7..c9f87551c 100644
--- a/topology/test/regress/getfacebypoint_expected
+++ b/topology/test/regress/getfacebypoint_expected
@@ -10,4 +10,4 @@ t4|0
t5|t
ERROR: Two or more faces found
ERROR: Two or more faces found
-ERROR: Corrupted topology: geometry of edge 9 is EMPTY
+ERROR: Corrupted topology (see #5946)
-----------------------------------------------------------------------
Summary of changes:
topology/test/regress/getfacebypoint.sql | 18 ++++++++++++++----
topology/test/regress/getfacebypoint_expected | 2 +-
2 files changed, 15 insertions(+), 5 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list