annotate zpt/KML_schema_table.zpt @ 56:8eca8a1fbf50

first stab at connecting lines
author casties
date Tue, 19 Oct 2010 18:08:49 +0200
parents 2f4c427dec44
children b47314bcff37
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
2 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal"
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
3 tal:define="schema options/schema; table options/table; data python:here.getKmlData(schema=schema,table=table);
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
4 withLine python:request.get('connect_line',None);">
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
5 <Document>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
6 <Style id="marker_icon">
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
7 <IconStyle>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
8 <scale>15</scale>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
9 <Icon>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
10 <href>http://chinagis.mpiwg-berlin.mpg.de/chinagis/images/dot_red.png</href>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
11 </Icon>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
12 </IconStyle>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
13 </Style>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
14 <Style id="red_line">
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
15 <LineStyle>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
16 <color>red</color>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
17 <width>4</width>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
18 </LineStyle>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
19 </Style>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
20 <Placemark tal:repeat="place data">
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
21 <description tal:content="place/description"><![CDATA[<b>ERD-0815: ERD-0815</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
22 Jingshi: Jingshi</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
23 nma_1898541: nma_1898541</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
24 Forbidden City: Forbidden City</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
25 1406: 1406</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
26 720000: 720000</a><br>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
27 ]]></description>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
28 <styleURL tal:content="place/icon">#marker_icon</styleURL>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
29 <Point>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
30 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
31 </Point>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
32 </Placemark>
56
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
33 <Placemark tal:condition="withLine">
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
34 <name>Path</name>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
35 <description>Red line visualizes path between locations</description>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
36 <styleUrl>#red_line</styleUrl>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
37 <LineString>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
38 <extrude>1</extrude>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
39 <tessellate>1</tessellate>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
40 <altitudeMode>absolute</altitudeMode>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
41 <coordinates tal:repeat="place data" tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
42 </LineString>
8eca8a1fbf50 first stab at connecting lines
casties
parents: 55
diff changeset
43 </Placemark>
55
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
44 </Document>
2f4c427dec44 wrangled kml construction into template and method
casties
parents:
diff changeset
45 </kml>