Mercurial > hg > ChinaGisRestApi
annotate zpt/KML_schema_table.zpt @ 264:52b1247140b7
Multilayer for Europeana4D
author | fknauft |
---|---|
date | Wed, 25 Jan 2012 19:33:19 +0100 |
parents | 3a10287447b1 |
children | d1b43624cc63 |
rev | line source |
---|---|
55 | 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" | |
147 | 3 tal:define="gisIdField python:request.get('gis_id_field',None); colorField python:request.get('color_field','red'); |
255
ec7b63319fad
GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents:
254
diff
changeset
|
4 latField python:request.get('lat_field',None); lonField python:request.get('lon_field',None); geomField python:request.get('geometry_field','point'); |
ec7b63319fad
GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents:
254
diff
changeset
|
5 sortBy python:request.get('sort_field',1); ids python:request.get('id'); |
59 | 6 schema options/schema; table options/table; |
255
ec7b63319fad
GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents:
254
diff
changeset
|
7 data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,ids=ids,gisIdField=gisIdField,latField=latField,lonField=lonField,geomField=geomField,colorField=colorField ); |
56 | 8 withLine python:request.get('connect_line',None);"> |
55 | 9 <Document> |
110 | 10 <Style id="marker_icon_red"> |
11 <IconStyle> | |
233 | 12 <scale>"10"</scale> |
110 | 13 <Icon> |
14 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red.png</href> | |
15 </Icon> | |
16 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
17 </IconStyle> | |
18 </Style> | |
19 <Style id="marker_icon_black"> | |
55 | 20 <IconStyle> |
233 | 21 <scale>"0.2"</scale> |
55 | 22 <Icon> |
181 | 23 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black.png</href> |
110 | 24 </Icon> |
25 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
26 </IconStyle> | |
27 </Style> | |
168 | 28 <Style id="marker_icon_blue"> |
110 | 29 <IconStyle> |
169 | 30 <scale>"0.2"</scale> |
110 | 31 <Icon> |
170 | 32 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_blue.png</href> |
110 | 33 </Icon> |
34 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
35 </IconStyle> | |
36 </Style> | |
37 <Style id="marker_icon_green"> | |
38 <IconStyle> | |
169 | 39 <scale>"0.2"</scale> |
110 | 40 <Icon> |
41 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_green.png</href> | |
42 </Icon> | |
43 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
44 </IconStyle> | |
45 </Style> | |
46 <Style id="marker_icon_violett"> | |
47 <IconStyle> | |
169 | 48 <scale>"0.2"</scale> |
110 | 49 <Icon> |
50 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_violett.png</href> | |
55 | 51 </Icon> |
57 | 52 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> |
55 | 53 </IconStyle> |
54 </Style> | |
213 | 55 <Style id="marker_icon_red_big"> |
56 <IconStyle> | |
233 | 57 <scale>"10"</scale> |
213 | 58 <Icon> |
59 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red_big.png</href> | |
60 </Icon> | |
61 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
62 </IconStyle> | |
63 </Style> | |
64 <Style id="marker_icon_black_big"> | |
65 <IconStyle> | |
233 | 66 <scale>"0.2"</scale> |
213 | 67 <Icon> |
68 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black_big.png</href> | |
69 </Icon> | |
70 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
71 </IconStyle> | |
72 </Style> | |
73 <Style id="marker_icon_blue_big"> | |
74 <IconStyle> | |
75 <scale>"0.2"</scale> | |
76 <Icon> | |
77 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_blue_big.png</href> | |
78 </Icon> | |
79 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
80 </IconStyle> | |
81 </Style> | |
82 <Style id="marker_icon_green_big"> | |
83 <IconStyle> | |
84 <scale>"0.2"</scale> | |
85 <Icon> | |
86 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_green_big.png</href> | |
87 </Icon> | |
88 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
89 </IconStyle> | |
90 </Style> | |
91 <Style id="marker_icon_violett_big"> | |
92 <IconStyle> | |
93 <scale>"0.2"</scale> | |
94 <Icon> | |
95 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_violett_big.png</href> | |
96 </Icon> | |
97 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> | |
98 </IconStyle> | |
99 </Style> | |
56 | 100 <Style id="red_line"> |
76 | 101 <LineStyle> |
57 | 102 <color>ff0000ff</color> |
245 | 103 <width>2</width> |
104 </LineStyle> | |
105 </Style> | |
106 <Style id="green_line"> | |
107 <LineStyle> | |
108 <color>ff00ff00</color> | |
109 <width>2</width> | |
110 </LineStyle> | |
111 </Style> | |
112 <Style id="black_line"> | |
113 <LineStyle> | |
114 <color>ff000000</color> | |
115 <width>2</width> | |
116 </LineStyle> | |
117 </Style> | |
118 <Style id="violett_line"> | |
119 <LineStyle> | |
120 <color>ffff00ff</color> | |
121 <width>2</width> | |
122 </LineStyle> | |
123 </Style> | |
124 <Style id="blue_line"> | |
125 <LineStyle> | |
126 <color>ffff0000</color> | |
127 <width>2</width> | |
128 </LineStyle> | |
129 </Style> | |
130 <Style id="red_big_line"> | |
131 <LineStyle> | |
132 <color>ff0000ff</color> | |
76 | 133 <width>4</width> |
134 </LineStyle> | |
245 | 135 </Style> |
136 <Style id="green_big_line"> | |
137 <LineStyle> | |
138 <color>ff00ff00</color> | |
139 <width>4</width> | |
140 </LineStyle> | |
141 </Style> | |
142 <Style id="black_big_line"> | |
143 <LineStyle> | |
144 <color>ff000000</color> | |
145 <width>4</width> | |
146 </LineStyle> | |
147 </Style> | |
148 <Style id="violett_big_line"> | |
149 <LineStyle> | |
150 <color>ffff00ff</color> | |
151 <width>4</width> | |
152 </LineStyle> | |
153 </Style> | |
154 <Style id="blue_big_line"> | |
155 <LineStyle> | |
156 <color>ffff0000</color> | |
157 <width>4</width> | |
158 </LineStyle> | |
76 | 159 </Style> |
233 | 160 <Style id="blue_poly"> |
161 <LineStyle> | |
245 | 162 <color>ffff0000</color> |
233 | 163 <width>2</width> |
164 </LineStyle> | |
165 <PolyStyle> | |
245 | 166 <color>ffff0000</color> |
233 | 167 </PolyStyle> |
168 </Style> | |
169 <Style id="black_poly"> | |
170 <LineStyle> | |
245 | 171 <color>ff000000</color> |
233 | 172 <width>2</width> |
173 </LineStyle> | |
174 <PolyStyle> | |
245 | 175 <color>ff000000</color> |
233 | 176 </PolyStyle> |
177 </Style> | |
213 | 178 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')"> |
254
901c1f745d13
GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents:
245
diff
changeset
|
179 <description tal:content="place/description"> |
57 | 180 ERD-0815: ERD-0815 |
181 </description> | |
263 | 182 <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')"><when tal:content="place/TimeStamp"></when> |
262 | 183 </TimeStamp> |
263 | 184 <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')"><begin tal:content="place/TimeSpan0" ></begin><end tal:content="place/TimeSpan1"></end> |
262 | 185 </TimeSpan> |
186 | |
135 | 187 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl> |
188 <Point tal:condition="python:place.has_key('icon')"> | |
255
ec7b63319fad
GIS-Links from MPDL-Documents now served by Mappit-Server
fknauft
parents:
254
diff
changeset
|
189 <extrude>1</extrude> |
128 | 190 <coordinates tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</coordinates> |
55 | 191 </Point> |
135 | 192 </Placemark> |
213 | 193 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')"> |
245 | 194 <name>Border-Line</name> |
135 | 195 <description tal:content="place/description" > |
196 ERD-0815: ERD-0815 | |
197 </description> | |
264 | 198 <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')"><when tal:content="place/TimeStamp"></when> |
262 | 199 </TimeStamp> |
264 | 200 <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')"><begin tal:content="place/TimeSpan0" ></begin><end tal:content="place/TimeSpan1"></end> |
262 | 201 </TimeSpan> |
202 | |
245 | 203 <styleUrl tal:content="place/lineColor" >#red_line</styleUrl> |
233 | 204 <LineString> |
205 <extrude>1</extrude> | |
206 <tessellate>1</tessellate> | |
207 <coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates> | |
208 </LineString> | |
117 | 209 </Placemark> |
56 | 210 <Placemark tal:condition="withLine"> |
76 | 211 <name>Path</name> |
212 <description>Red line visualizes path between locations</description> | |
56 | 213 <styleUrl>#red_line</styleUrl> |
76 | 214 <LineString> |
215 <extrude>1</extrude> | |
216 <tessellate>1</tessellate> | |
57 | 217 <altitudeMode>clampToGround</altitudeMode> |
218 <coordinates> | |
219 <tal:span tal:repeat="place data" tal:content="string:${place/coord_x},${place/coord_y},${place/coord_z}">116.38,39.92,0</tal:span> | |
220 </coordinates> | |
76 | 221 </LineString> |
222 </Placemark> | |
233 | 223 </Document> |
55 | 224 </kml> |