- Timestamp:
- 03/11/09 17:34:53 (18 months ago)
- Location:
- tools/routingservice/trunk/templates/route
- Files:
-
- 4 modified
-
route_geojson.st (modified) (1 diff)
-
route_gml.st (modified) (1 diff)
-
route_gpx.st (modified) (1 diff)
-
route_kml.st (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tools/routingservice/trunk/templates/route/route_geojson.st
r269 r277 5 5 "geometry": \{ 6 6 "type": "LineString", 7 "coordinates": [ $e.edge$ ] 7 "coordinates": [ 8 $e.points:{ p | [$p.x$, $p.y$] };separator=","$ 9 ] 8 10 \}, 9 11 "crs": \{ 10 12 "type": "EPSG", 11 "properties": \{"code": " $srid$"\}13 "properties": \{"code": "srid"\} 12 14 \}, 13 15 "properties": \{ 14 "id": "$e.id$", 15 "unit": "meter", 16 "length": 1 16 "id": "$e.id$" 17 17 \} 18 18 \} -
tools/routingservice/trunk/templates/route/route_gml.st
r274 r277 1 <?xml version="1.0" encoding="UTF-8"?> 2 <gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml"> 3 <gml:featureMember> 4 <gml:MultiLineString> 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"> 5 6 $edges:{ e | 6 <gml:lineStringMember> 7 <gml:LineString gml:id="$e.id$"> 8 $e.points:{ p | 9 <gml:pos dimension="2">$p.x$ $p.y$</gml:pos> 10 }$ 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> 11 14 </gml:LineString> 12 </gml:lineStringMember> 15 </feature:geometry> 16 <feature:id>$e.id$</feature:id> 17 </feature:feature> 18 </gml:featureMember> 13 19 }$ 14 </gml:MultiLineString> 15 </gml:featureMember> 16 </gml:FeatureCollection> 20 </gml:FeatureCollection> -
tools/routingservice/trunk/templates/route/route_gpx.st
r270 r277 23 23 $edges:{ e | 24 24 <trkseg> 25 $e.edge:{ p |26 <trkpt lat=" " lon=""/>27 }$25 $e.points:{ p | 26 <trkpt lat="$p.y$" lon="$p.x$"/> 27 }$ 28 28 <extensions></extensions> 29 29 </trkseg> -
tools/routingservice/trunk/templates/route/route_kml.st
r268 r277 24 24 <tessellate>1</tessellate> 25 25 <altitudeMode>clampToGround</altitudeMode> 26 <coordinates>$e.edge$</coordinates> 26 <coordinates> 27 $e.points:{ p |$p.x$,$p.y$,0};separator=" "$ 28 </coordinates> 27 29 </LineString> 28 30 }$
