[postgis-tickets] [SCM] PostGIS branch main updated. 3.1.0rc1-351-gfba0330

git at osgeo.org git at osgeo.org
Thu Jul 15 06:20:24 PDT 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, main has been updated
       via  fba0330289c7ad2ed3cc5642f259940c59beda6b (commit)
      from  ea18ecdda1e907490048167cb013ea82c2160f8d (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 fba0330289c7ad2ed3cc5642f259940c59beda6b
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Jul 15 15:14:42 2021 +0200

    Do not allow SRID < 0 in the topology.topology schema
    
    References #2592

diff --git a/NEWS b/NEWS
index 53c8234..4294dd2 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PostGIS 3.2.0
   - #4933, topology.GetFaceByPoint will not work with topologies having invalid edge linking.
 
  * Enhancements *
+  - #2592, Do not allow CreateTopology to define topologies with SRID < 0
+           (Sandro Santilli)
   - #3232, Prevent moving an isolated node to different face
            (Sandro Santilli)
   - Consider collection TopoGeometries while editing topology primitives.
diff --git a/topology/topology.sql.in b/topology/topology.sql.in
index 8719604..b1c7463 100644
--- a/topology/topology.sql.in
+++ b/topology/topology.sql.in
@@ -1453,6 +1453,11 @@ BEGIN
   ndims = 2;
   IF hasZ THEN ndims = 3; END IF;
 
+  IF srid < 0 THEN
+    RAISE NOTICE 'SRID value % converted to the officially unknown SRID value 0', srid;
+    srid = 0;
+  END IF;
+
   ------ Fetch next id for the new topology
   FOR rec IN SELECT nextval('topology.topology_id_seq')
   LOOP

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

Summary of changes:
 NEWS                     | 2 ++
 topology/topology.sql.in | 5 +++++
 2 files changed, 7 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list