|
Revision 278, 1.0 KB
(checked in by daniel, 21 months ago)
|
|
KML and GeoJSON polygon template
|
| 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 | <Polygon> |
|---|
| 27 | <tessellate>1</tessellate> |
|---|
| 28 | <altitudeMode>clampToGround</altitudeMode> |
|---|
| 29 | <outerBoundaryIs> |
|---|
| 30 | <LinearRing> |
|---|
| 31 | <coordinates>$poly$</coordinates> |
|---|
| 32 | </LinearRing> |
|---|
| 33 | </outerBoundaryIs> |
|---|
| 34 | </Polygon> |
|---|
| 35 | |
|---|
| 36 | <ExtendedData> |
|---|
| 37 | <wrs:status> |
|---|
| 38 | <wrs:code>200</wrs:code> |
|---|
| 39 | <wrs:request>catch</wrs:request> |
|---|
| 40 | </wrs:status> |
|---|
| 41 | <wrs:user> |
|---|
| 42 | <wrs:request_id>$request_id$</wrs:request_id> |
|---|
| 43 | </wrs:user> |
|---|
| 44 | </ExtendedData> |
|---|
| 45 | </Placemark> |
|---|
| 46 | </Document> |
|---|
| 47 | </kml> |
|---|