]> granicus.if.org Git - postgis/commitdiff
topology.TopologySummary: report 'has Z' flag on topologies
authorSandro Santilli <strk@keybit.net>
Thu, 31 Mar 2011 10:26:32 +0000 (10:26 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 31 Mar 2011 10:26:32 +0000 (10:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6992 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/TopologySummary.sql

index 3ea43cffe11ae0d53552c70c005feb671ffc6fdf..85b8d01aef5b4d7d59738ccde66ff36bdf9811c4 100644 (file)
@@ -34,7 +34,9 @@ BEGIN
   ret := 'Topology ' || quote_ident(atopology) 
       || ' (' || rec.id || '), ';
   ret := ret || 'SRID ' || rec.srid || ', '
-             || 'precision: ' || rec.precision || E'\n';
+             || 'precision ' || rec.precision;
+  IF rec.hasz THEN ret := ret || ', has Z'; END IF;
+  ret := ret || E'\n';
 
   EXECUTE 'SELECT count(node_id) FROM ' || quote_ident(atopology)
     || '.node ' INTO STRICT n;