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