AsGML(TopoGeometry): for TopoSurface, make the directedEdge sequence be ordered to go around each ring (ie: make the order meaningful) [RT-SIGTA].

git-svn-id: http://svn.osgeo.org/postgis/trunk@6710 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2011-01-24 11:43:33 +00:00
parent 278e8bac53
commit 0d9db00f94

View file

@ -224,9 +224,14 @@ BEGIN
-- TODO: figure out a way to express an id for a face
-- and use a reference for an already-seen face ?
gml = gml || '<' || nsprefix || 'Face>';
FOR rec2 IN EXECUTE 'SELECT e.* FROM ' || quote_ident(toponame)
|| '.edge e WHERE ST_Covers(' || quote_literal(bounds::text)
|| ', e.geom)'
FOR rec2 IN EXECUTE
'SELECT e.*, ST_Line_Locate_Point('
|| quote_literal(bounds::text)
|| ', ST_Line_Interpolate_Point(e.geom, 0.2)) as pos FROM '
|| quote_ident(toponame)
|| '.edge e WHERE ST_Covers('
|| quote_literal(bounds::text)
|| ', e.geom) ORDER BY pos'
-- TODO: add left_face/right_face to the conditional, to reduce load ?
LOOP