Hi all.
When using the plugin, if the bounding box of the canvas is outside legal
values for longlat, we get a crude error (see below). I guess this should
be handled a bit more nicely. Alternatively, on the fly projection could be
activated by the plugin itself, selecting the appropriate one.
All the best, and thanks.

-------- Original Message --------
Traceback (most recent call last):
File "C:\Documents and
Settings\Administrator/.qgis/python/plugins\elevation\Utils.py", line 34,
in
canvasReleaseEvent
self.callback(point)
File "C:\Documents and
Settings\Administrator/.qgis/python/plugins\elevation\Elevation.py", line
90, in obtain_action
elevation =
int(round(simplejson.loads(jsonresult).get('results')[0].get('elevation')))
IndexError: list index out of range

Versione Python:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


Versione di QGIS:
1.5.0-Tethys Tethys, 13923M

Percorso Python: ['C:\\Documents and
Settings\\Administrator\\.qgis\\python\\plugins\\elevation',
'C:/PROGRA~1/QUANTU~1/apps/qgis/./python', 'C:\\Documents and
Settings\\Administrator/.qgis/python', 'C:\\Documents and
Settings\\Administrator/.qgis/python/plugins',
'C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins',
'C:\\PROGRA~1\\QUANTU~1\\apps\\gdal-16\\pymod', 'C:\\Programmi\\Quantum GIS
Tethys', 'C:\\PROGRA~1\\QUANTU~1\\bin\\python25.zip',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\DLLs',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\plat-win',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\lib-tk',
'C:\\PROGRA~1\\QUANTU~1\\apps\\qgis\\bin',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\win32',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
u'C:/Documents and Settings/Administrator/.qgis//python/plugins',
'C:\\PROGRA~1\\QUANTU~1\\apps\\qgis\\python\\plugins\\fTools\\tools',
'C:\\Documents and
Settings\\Administrator\\.qgis\\python\\plugins\\ziplayers\\logic',
'C:\\Documents and
Settings\\Administrator\\.qgis\\python\\plugins\\ziplayers\\gui']

-- 
http://faunalia.it/pc
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to