]> granicus.if.org Git - postgis/commitdiff
TopologySummary: do not count the universe face in the face count
authorSandro Santilli <strk@keybit.net>
Mon, 19 Sep 2011 06:40:38 +0000 (06:40 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 19 Sep 2011 06:40:38 +0000 (06:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7867 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/TopologySummary.sql

index c4fa826647e736f5a857012387cd535c08f679bc..9d99484f205d3f484306380797cede8de2933e1b 100644 (file)
@@ -66,7 +66,7 @@ BEGIN
 
   BEGIN
     EXECUTE 'SELECT count(face_id) FROM ' || quote_ident(atopology)
-      || '.face ' INTO STRICT n;
+      || '.face WHERE face_id != 0' INTO STRICT n;
     ret = ret || n || ' faces, ';
   EXCEPTION
     WHEN UNDEFINED_TABLE OR INVALID_SCHEMA_NAME THEN