[SCM] PostGIS branch master updated. 3.5.0-477-gf987b7316
git at osgeo.org
git at osgeo.org
Sat Jul 19 05:33:16 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 f987b7316de4b047c99a08a1765dd47045cf90e4 (commit)
from 39304ca29ac9e50327d0b5e5724596c05ded822d (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 f987b7316de4b047c99a08a1765dd47045cf90e4
Author: Sandro Santilli <strk at kbt.io>
Date: Sat Jul 19 14:27:34 2025 +0200
Make test insensible to edge identifiers
References #5946
diff --git a/topology/test/regress/getfacebypoint.sql b/topology/test/regress/getfacebypoint.sql
index 71962e4e1..b001a9afa 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