AddEdgeModFace, AddEdgeNewFaces: simplify calls to AddEdge [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@8054 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2011-10-30 21:47:45 +00:00
parent 93087d39dc
commit 5a33485a8a

View file

@ -3151,10 +3151,7 @@ BEGIN
ORDER BY p.right_side DESC
LOOP -- {
RAISE DEBUG 'Adding % face', rec.side;
sql :=
'SELECT topology.AddFace(' || quote_literal(atopology)
|| ', ' || quote_literal(rec.geom::text) || ', true)';
EXECUTE sql INTO newface;
SELECT topology.AddFace(atopology, rec.geom, true) INTO newface;
newfaces := array_append(newfaces, newface);
END LOOP; --}
@ -3820,11 +3817,9 @@ BEGIN
END IF; -- }
RAISE DEBUG 'Adding face %', ST_AsText(rec.geom);
sql :=
'SELECT topology.AddFace(' || quote_literal(atopology)
|| ', ' || quote_literal(rec.geom::text) || ', true)';
EXECUTE sql INTO newface;
RAISE DEBUG 'Adding % face', ST_AsText(rec.geom);
SELECT topology.AddFace(atopology, rec.geom, true) INTO newface;
newfaces := array_append(newfaces, newface);
END LOOP; --}
RAISE DEBUG 'Added face: %', newface;