root/tools/routingservice/branches/wrs-2.0/data/templates/route/route_gml.st

Revision 290, 0.6 KB (checked in by anton, 20 months ago)

First working version with JSON input and GML output for route service

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$parameters:{ p |
7        <gml:featureMember>     
8                <feature:feature xmlns:feature="http://example.com/feature">
9                        <feature:geometry>
10                                <gml:LineString>
11                                        <gml:posList>
12                                                $p.line$
13                                        </gml:posList>
14                                </gml:LineString>
15                        </feature:geometry>
16                        <feature:id>$p.id$</feature:id>
17                </feature:feature>
18        </gml:featureMember>
19}$
20</gml:FeatureCollection>
Note: See TracBrowser for help on using the browser.