root/tools/routingservice/branches/wrs-2.0/data/templates/catch/catch_kml.st

Revision 295, 1.0 KB (checked in by anton, 19 months ago)

KML support for catch and route services added

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<kml
3        xmlns="http://www.opengis.net/kml/2.2"
4        xmlns:wrs="http://pgrouting.postlbs.org/wrs/1.1.0">     
5        <Document>
6                <name></name>
7                <description></description>
8               
9                <Style id="polygonStyle">
10                        <LineStyle>
11                                <color>7fff0000</color>
12                                <width>5</width>
13                        </LineStyle>
14                        <PolyStyle>
15                                <color>7fff0000</color>
16                                <fill>1</fill>
17                                <outline>1</outline>
18                        </PolyStyle>
19                </Style>
20               
21                <Placemark>
22                        <name></name>
23                        <description></description>
24                        <styleUrl>#polygonStyle</styleUrl>
25
26$parameters:{ p |                       
27                        <Polygon>
28                                <tessellate>1</tessellate>
29                                <altitudeMode>clampToGround</altitudeMode>
30                                <outerBoundaryIs>
31                                        <LinearRing>
32                                                <coordinates>
33                                                $p.polygon$
34                                                </coordinates>
35                                        </LinearRing>
36                                </outerBoundaryIs>
37                        </Polygon>
38}$                     
39                        <ExtendedData>
40                                <wrs:status>
41                                        <wrs:code>200</wrs:code>
42                                        <wrs:request>catch</wrs:request>
43                                </wrs:status>
44                                <wrs:user>
45                                        <wrs:request_id>$request_id$</wrs:request_id>
46                                </wrs:user>
47                        </ExtendedData>
48                </Placemark>
49        </Document>
50</kml>
Note: See TracBrowser for help on using the browser.