[SCM] PostGIS branch stable-3.5 updated. 3.5.3-34-g7bf64acd2

git at osgeo.org git at osgeo.org
Sat Jul 19 05:32:50 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  7bf64acd2d6f60b3d364c96dfb6f404c79dd893e (commit)
      from  c81b55d6a9dec0b97e86cfde1eca429bc0f397df (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 7bf64acd2d6f60b3d364c96dfb6f404c79dd893e
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