mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
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:
parent
93087d39dc
commit
5a33485a8a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue