mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
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:
parent
278e8bac53
commit
0d9db00f94
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue