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

Revision 337, 1.3 KB (checked in by anton, 14 months ago)

Multiple improvements:

  • aggregate functions
  • capabilities service
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xls:XLS version="1.2"
3        xmlns:xls="http://www.opengis.net/xls"
4        xmlns:gml="http://www.opengis.net/gml"
5        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6               
7        <xls:ResponseHeader sessionID=""/>
8        <xls:Response version="1.2" requestID="$request_id$" numberOfResponses="1">
9                <xls:DetermineRouteResponse>
10                        <xls:RouteSummary>
11                                <xls:TotalTime></xls:TotalTime>
12                                <xls:TotalDistance uom="M" value="$sum.rlength$" accuracy=""/>
13                                <xls:BoundingBox srsName="$srid_out$">
14                                        <gml:pos dimension="2">$min.line_x$ $min.line_y$</gml:pos>
15                                        <gml:pos dimension="2">$max.line_x$ $max.line_y$</gml:pos>
16                                </xls:BoundingBox>
17                        </xls:RouteSummary>
18
19                        <xls:RouteGeometry>
20                                <gml:LineString srsName="$srid_out$">
21$parameters:{ p |
22                                        $p.line$
23}$
24                                </gml:LineString>
25                        </xls:RouteGeometry>
26
27                        <xls:RouteInstructionsList xls:lang="en" format="text/plain">
28$parameters:{ p |
29                                <xls:RouteInstruction duration="" description="">
30                                        <xls:Instruction></xls:Instruction>
31                                        <xls:distance uom="M" value="$p.rlength$" accuracy=""/>
32                                        <xls:RouteInstructionGeometry>
33                                                <gml:LineString srsName="$srid_out$">
34                                                        $p.line$
35                                                </gml:LineString>
36                                        </xls:RouteInstructionGeometry>
37                                </xls:RouteInstruction>
38}$
39                        </xls:RouteInstructionsList>
40                </xls:DetermineRouteResponse>
41        </xls:Response>
42</xls:XLS>
43                       
Note: See TracBrowser for help on using the browser.