Mercurial > hg > ChinaGisRestApi
comparison zpt/KML_schema_table.zpt @ 55:2f4c427dec44
wrangled kml construction into template and method
kml currently constructed live
author | casties |
---|---|
date | Wed, 29 Sep 2010 21:09:44 +0200 |
parents | |
children | 8eca8a1fbf50 e0a79d926902 |
comparison
equal
deleted
inserted
replaced
54:54940a99f12d | 55:2f4c427dec44 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal" | |
3 tal:define="schema options/schema; table options/table; data python:here.getKmlData(schema=schema,table=table);"> | |
4 <Document> | |
5 <Style id="marker_icon"> | |
6 <IconStyle> | |
7 <scale>15</scale> | |
8 <Icon> | |
9 <href>http://chinagis.mpiwg-berlin.mpg.de/chinagis/images/dot_red.png</href> | |
10 </Icon> | |
11 </IconStyle> | |
12 </Style> | |
13 <Placemark tal:repeat="place data"> | |
14 <description tal:content="place/description"><![CDATA[<b>ERD-0815: ERD-0815</a><br> | |
15 Jingshi: Jingshi</a><br> | |
16 nma_1898541: nma_1898541</a><br> | |
17 Forbidden City: Forbidden City</a><br> | |
18 1406: 1406</a><br> | |
19 720000: 720000</a><br> | |
20 ]]></description> | |
21 <styleURL tal:content="place/icon">#marker_icon</styleURL> | |
22 <Point> | |
23 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates> | |
24 </Point> | |
25 </Placemark> | |
26 </Document> | |
27 </kml> |