def convert(self):
input = request.POST['input']
- no_height = request.POST.has_key('no_height')
+ no_elevation = request.POST.has_key('no_elevation')
simplify = request.POST.has_key('simplify')
swap_latlon = request.POST.has_key('swap_latlon')
c.no_geoformat = request.POST.has_key('no_geoformat')
if swap_latlon:
c.result = [(latitude, longitude, elevation) for (longitude, latitude, elevation) in c.result]
+ if no_elevation:
+ c.result = [(longitude, latitude, None) for (longitude, latitude, elevation) in c.result]
+
c.geo_winterrodeln = wradmin.model.validators.MultiGeo(output_format = geo.FORMAT_WINTERRODELN)
c.geo_gmapplugin = wradmin.model.validators.MultiGeo(output_format = geo.FORMAT_GMAPPLUGIN)
c.geo_gpx = wradmin.model.validators.MultiGeo(output_format = geo.FORMAT_GPX)
47.233008, 11.452201<br/>
47.233810, 11.452150</p>
</td></tr>
- <tr><td><input type="checkbox" name="no_height" />Höhe weglassen</td><td></td></tr>
+ <tr><td><input type="checkbox" name="no_elevation" />Höhe weglassen</td><td></td></tr>
<tr><td><input type="checkbox" name="simplify" /> Weg vereinfachen <em>(noch nicht implementiert)</em></td><td></td></tr>
<tr><td><input type="checkbox" name="swap_latlon" />Geogr. Länge und Breite vertauschen</td><td></td></tr>
<tr><td><input type="checkbox" name="no_geoformat" /> Zielformat <strong><geo></strong> auslassen</td><td>47.222134 N 11.467211 E</td></tr>
<li><a href="${h.url_for(controller='gasthaus', action='list')}">Gasthäuser</a></li>
<li><a href="${h.url_for(controller='maptool', action='index')}">Maptool</a></li>
<li><a href="${h.url_for(controller='coordtool', action='index')}">Koordinaten-Rechner</a></li>
- <li><a href="${h.url_for(controller='wrgpxtool', action='index')}">Winterrodeln-GPX Datei Werkzeuge</a></li>
+ <!-- <li><a href="${h.url_for(controller='wrgpxtool', action='index')}">Winterrodeln-GPX Datei Werkzeuge</a></li> -->
</ul>
<ul>