root/tools/routingservice/trunk/templates/route/route_gml.st

Revision 277, 0.7 KB (checked in by daniel, 21 months ago)

Output format geometry renewal

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<gml:FeatureCollection
3        xmlns:gml="http://www.opengis.net/gml"
4        xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"
5        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6$edges:{ e |
7        <gml:featureMember>     
8                <feature:feature xmlns:feature="http://example.com/feature">
9                        <feature:geometry>
10                                <gml:LineString>
11                                        <gml:posList>
12                                                $e.points:{ p |$p.x$ $p.y$};separator=" "$
13                                        </gml:posList>
14                                </gml:LineString>
15                        </feature:geometry>
16                        <feature:id>$e.id$</feature:id>
17                </feature:feature>
18        </gml:featureMember>
19}$
20</gml:FeatureCollection>
Note: See TracBrowser for help on using the browser.