[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-38-g3c72b78

git at osgeo.org git at osgeo.org
Mon Jan 11 03:04:28 PST 2021


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  3c72b78a4bee798167aa91c8889d59624efa2e49 (commit)
      from  a1e81a42a92d8077422d368ecf6b1cb28d961308 (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 3c72b78a4bee798167aa91c8889d59624efa2e49
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jan 11 12:04:08 2021 +0100

    Drop dead SRID-checking code in topology.ValidateTopology

diff --git a/topology/topology.sql.in b/topology/topology.sql.in
index c08f1be..30111cb 100644
--- a/topology/topology.sql.in
+++ b/topology/topology.sql.in
@@ -1470,6 +1470,7 @@ BEGIN
 
     END IF;
 
+    -- Check edge being simple (ie: not self-intersecting)
     IF NOT ST_IsSimple(rec.geom) THEN
       retrec.error = 'edge not simple';
       retrec.id1 = rec.id1;
@@ -1664,24 +1665,6 @@ BEGIN
 
   END LOOP;
 
-#if 0
-  -- Check SRID consistency
-  FOR rec in EXECUTE
-    'SELECT count(*) FROM ( getSRID(geom) FROM '
-    || quote_ident(toponame) || '.edge '
-       ' UNION '
-    'SELECT getSRID(geom) FROM '
-    || quote_ident(toponame) || '.node )'
-  LOOP
-    IF rec.count > 1 THEN
-      retrec.error = 'mixed SRIDs';
-      retrec.id1 = NULL;
-      retrec.id2 = NULL;
-      RETURN NEXT retrec;
-    END IF;
-  END LOOP;
-#endif
-
   DROP TABLE face_check;
 
   RETURN;

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

Summary of changes:
 topology/topology.sql.in | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list