[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.3-14-g82421b9c7

git at osgeo.org git at osgeo.org
Mon Jun 19 02:17:20 PDT 2023


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  82421b9c769e2b36690bbb6659e47995276385d7 (commit)
      from  dd6c4017376edaf0e381059e950c58adc283a0f6 (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 82421b9c769e2b36690bbb6659e47995276385d7
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jun 19 11:03:15 2023 +0200

    Fully qualify internal calls to topology methods in ValidateTopology
    
    References #5403 in 3.3 branch (3.3.4dev)
    Includes regress test

diff --git a/NEWS b/NEWS
index cf58dc1c3..94bd03f77 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,8 @@ YYYY/MM/DD
 * Bug Fixes and Enhancements *
   - #5394, Improve robustness of finding distinct vertices in topology edges
            (Sandro Santilli)
-
+  - #5403, Fix ValidateTopology(bbox) without topology in search_path
+           (Sandro Santilli).
 
 PostGIS 3.3.3
 2023/05/29
diff --git a/topology/sql/manage/ValidateTopology.sql.in b/topology/sql/manage/ValidateTopology.sql.in
index a59a145f6..55d89e60e 100644
--- a/topology/sql/manage/ValidateTopology.sql.in
+++ b/topology/sql/manage/ValidateTopology.sql.in
@@ -84,7 +84,7 @@ BEGIN
       edgering AS (
         SELECT *
         FROM
-          GetRingEdges(
+          topology.GetRingEdges(
             %1$L,
             (SELECT ring_id FROM leftmost_edge)
           )
diff --git a/topology/test/regress/validatetopology.sql b/topology/test/regress/validatetopology.sql
index 215d23075..2aab5e6b6 100644
--- a/topology/test/regress/validatetopology.sql
+++ b/topology/test/regress/validatetopology.sql
@@ -183,5 +183,17 @@ SELECT '#5105.unexpected_invalidities', * FROM ValidateTopology('t5105');
 --       to form O-O figures
 ROLLBACK;
 
+-- See https://trac.osgeo.org/postgis/ticket/5403
+BEGIN;
+SET search_path TO public;
+SELECT NULL FROM topology.CreateTopology('t5403');
+SELECT '#5403.0', topology.TopoGeo_addPolygon('t5403',
+  'POLYGON((0 0, 5 10,10 0,0 0),(2 2,8 2,5 8,2 2))');
+SELECT '#5403.1', * FROM topology.ValidateTopology(
+  't5403',
+  ST_MakeEnvelope(2,2,4,4)
+);
+ROLLBACK;
+
 SELECT NULL FROM topology.DropTopology('city_data');
 
diff --git a/topology/test/regress/validatetopology_expected b/topology/test/regress/validatetopology_expected
index f91c3cbe9..b0c954fee 100644
--- a/topology/test/regress/validatetopology_expected
+++ b/topology/test/regress/validatetopology_expected
@@ -37,3 +37,4 @@
 #5105.1|2
 #5105.edges_count|2
 #5105.faces_count|0
+#5403.0|1

-----------------------------------------------------------------------

Summary of changes:
 NEWS                                            |  3 ++-
 topology/sql/manage/ValidateTopology.sql.in     |  2 +-
 topology/test/regress/validatetopology.sql      | 12 ++++++++++++
 topology/test/regress/validatetopology_expected |  1 +
 4 files changed, 16 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list