comparison zpt/KML_schema_table.zpt @ 233:bdab16f83512

show line and polygon-layer
author fknauft
date Mon, 01 Aug 2011 21:35:27 +0200
parents 769866d9d96d
children 7c5d825a0083
comparison
equal deleted inserted replaced
232:f930ce2583a0 233:bdab16f83512
7 data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,gisIdField=gisIdField,latField=latField,lonField=lonField,geomField=geomField,colorField=colorField ); 7 data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,gisIdField=gisIdField,latField=latField,lonField=lonField,geomField=geomField,colorField=colorField );
8 withLine python:request.get('connect_line',None);"> 8 withLine python:request.get('connect_line',None);">
9 <Document> 9 <Document>
10 <Style id="marker_icon_red"> 10 <Style id="marker_icon_red">
11 <IconStyle> 11 <IconStyle>
12 <size>"10"</size> 12 <scale>"10"</scale>
13 <Icon> 13 <Icon>
14 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red.png</href> 14 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red.png</href>
15 </Icon> 15 </Icon>
16 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> 16 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
17 </IconStyle> 17 </IconStyle>
18 </Style> 18 </Style>
19 <Style id="marker_icon_black"> 19 <Style id="marker_icon_black">
20 <IconStyle> 20 <IconStyle>
21 <size>"0.2"</size> 21 <scale>"0.2"</scale>
22 <Icon> 22 <Icon>
23 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black.png</href> 23 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black.png</href>
24 </Icon> 24 </Icon>
25 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> 25 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
26 </IconStyle> 26 </IconStyle>
52 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> 52 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
53 </IconStyle> 53 </IconStyle>
54 </Style> 54 </Style>
55 <Style id="marker_icon_red_big"> 55 <Style id="marker_icon_red_big">
56 <IconStyle> 56 <IconStyle>
57 <size>"10"</size> 57 <scale>"10"</scale>
58 <Icon> 58 <Icon>
59 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red_big.png</href> 59 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_red_big.png</href>
60 </Icon> 60 </Icon>
61 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> 61 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
62 </IconStyle> 62 </IconStyle>
63 </Style> 63 </Style>
64 <Style id="marker_icon_black_big"> 64 <Style id="marker_icon_black_big">
65 <IconStyle> 65 <IconStyle>
66 <size>"0.2"</size> 66 <scale>"0.2"</scale>
67 <Icon> 67 <Icon>
68 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black_big.png</href> 68 <href>http://mappit.mpiwg-berlin.mpg.de/mappit/icons/dot_black_big.png</href>
69 </Icon> 69 </Icon>
70 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/> 70 <hotSpot x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
71 </IconStyle> 71 </IconStyle>
104 </LineStyle> 104 </LineStyle>
105 <PolyStyle> 105 <PolyStyle>
106 <color>ff0000ff</color> 106 <color>ff0000ff</color>
107 </PolyStyle> 107 </PolyStyle>
108 </Style> 108 </Style>
109 <Style id="blue_poly">
110 <LineStyle>
111 <color>0000ffff</color>
112 <width>2</width>
113 </LineStyle>
114 <PolyStyle>
115 <color>0000ffff</color>
116 </PolyStyle>
117 </Style>
118 <Style id="black_poly">
119 <LineStyle>
120 <color>000000ff</color>
121 <width>2</width>
122 </LineStyle>
123 <PolyStyle>
124 <color>000000ff</color>
125 </PolyStyle>
126 </Style>
109 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')"> 127 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'icon')">
110 <description tal:content="place/description" > 128 <description tal:content="place/description" >
111 ERD-0815: ERD-0815 129 ERD-0815: ERD-0815
112 </description> 130 </description>
113 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl> 131 <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl>
117 </Placemark> 135 </Placemark>
118 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')"> 136 <Placemark tal:repeat="place data" tal:condition="python:here.trydatahas_key(data,0,'LinearRing')">
119 <description tal:content="place/description" > 137 <description tal:content="place/description" >
120 ERD-0815: ERD-0815 138 ERD-0815: ERD-0815
121 </description> 139 </description>
122 <Style> <PolyStyle><color tal:content="place/LineColor">#80800000</color><fill>0.1</fill><outline>1</outline></PolyStyle></Style> 140 <!-- <styleUrl tal:content="place/icon" >#red_line</styleUrl> -->
123 <Polygon><outerBoundaryIs><LinearRing><coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates> 141 <styleUrl >#red_line</styleUrl>
124 </LinearRing></outerBoundaryIs></Polygon> 142 <LineString>
143 <extrude>1</extrude>
144 <tessellate>1</tessellate>
145 <coordinates tal:content="string:${place/LinearRing}">116.38,39.92,0</coordinates>
146 </LineString>
125 </Placemark> 147 </Placemark>
126 <Placemark tal:condition="withLine"> 148 <Placemark tal:condition="withLine">
127 <name>Path</name> 149 <name>Path</name>
128 <description>Red line visualizes path between locations</description> 150 <description>Red line visualizes path between locations</description>
129 <styleUrl>#red_line</styleUrl> 151 <styleUrl>#red_line</styleUrl>
134 <coordinates> 156 <coordinates>
135 <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> 157 <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>
136 </coordinates> 158 </coordinates>
137 </LineString> 159 </LineString>
138 </Placemark> 160 </Placemark>
139 </Document> 161 </Document>
140 </kml> 162 </kml>