]> granicus.if.org Git - postgis/commitdiff
Use left_face/right_face when looking for face ring's edges. I've seen some areal...
authorSandro Santilli <strk@keybit.net>
Mon, 28 Feb 2011 18:14:24 +0000 (18:14 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 28 Feb 2011 18:14:24 +0000 (18:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6873 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/gml.sql

index d6784cdabf2016691b8f6083c42acd02d1722796..83a458001be6c370577dc5cd8bdedb90b34fbb72 100644 (file)
@@ -210,10 +210,11 @@ BEGIN
         || quote_literal(bounds::text)
         || ', ST_Line_Interpolate_Point(e.geom, 0.2)) as pos FROM '
         || quote_ident(toponame)
-        || '.edge e WHERE ST_Covers('
+        || '.edge e WHERE ( e.left_face = ' || face_id
+        || ' OR e.right_face = ' || face_id
+        || ') AND ST_Covers('
         || quote_literal(bounds::text)
         || ', e.geom) ORDER BY pos'
-        -- TODO: add left_face/right_face to the conditional, to reduce load 
       LOOP
 
         gml = gml || '<' || nsprefix || 'directedEdge';