From: Sandro Santilli Date: Tue, 24 May 2011 13:47:55 +0000 (+0000) Subject: topology.ValidateTopology: do not construct the geometry of universal face, it's... X-Git-Tag: 2.0.0alpha1~1580 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2179b7e2aa7ab2115977bcf381a294a455f9108d;p=postgis topology.ValidateTopology: do not construct the geometry of universal face, it's not used anyway. Closes bug #977. [RT-SIGTA] git-svn-id: http://svn.osgeo.org/postgis/trunk@7233 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/topology.sql.in.c b/topology/topology.sql.in.c index 363000fe0..b5374f5ce 100644 --- a/topology/topology.sql.in.c +++ b/topology/topology.sql.in.c @@ -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