[Qgis-developer] elevation plugin bug
Paolo Cavallini
cavallini at faunalia.it
Fri Apr 16 11:16:58 EDT 2010
Hi all.
When clicking outside the legal range of latlong coordinates, an unmanaged error occurs:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/paolo/.qgis/python/plugins/elevation/Utils.py", line 34, in
canvasReleaseEvent
self.callback(point)
File "/home/paolo/.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
Looks an easy fix.
All the best.
--
Paolo Cavallini: http://www.faunalia.it/pc
More information about the Qgis-developer
mailing list