]> granicus.if.org Git - postgis/commitdiff
topology.ValidateTopology: do not construct the geometry of universal face, it's...
authorSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 13:47:55 +0000 (13:47 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 May 2011 13:47:55 +0000 (13:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7233 b70326c6-7e19-0410-871a-916f4a2858ee

topology/topology.sql.in.c

index 363000fe09085339a6ec12b3c11b3b8690c77350..b5374f5ceb5c0e2ad624b182770192ce166f436f 100644 (file)
@@ -1432,7 +1432,7 @@ BEGIN
        EXECUTE 'CREATE TEMP TABLE face_check ON COMMIT DROP AS '
          || 'SELECT face_id, topology.ST_GetFaceGeometry('
          || quote_literal(toponame) || ', face_id) as geom, mbr FROM '
-         || quote_ident(toponame) || '.face';
+         || quote_ident(toponame) || '.face WHERE face_id > 0';
 
        -- Build a gist index on geom
        EXECUTE 'CREATE INDEX "face_check_gist" ON '
@@ -1450,7 +1450,7 @@ BEGIN
                || ' FROM '
                || 'face_check f1, '
                || 'face_check f2 '
-               || 'WHERE f1.face_id > 0 AND f1.face_id < f2.face_id'
+               || 'WHERE f1.face_id < f2.face_id'
                || ' AND f1.geom && f2.geom'
        LOOP