GIScience / orstools-qgis-plugin

Plugin for QGIS with a set of tools to use openrouteservice API´s, based on openstreetmap
https://plugins.qgis.org/plugins/ORStools/
MIT License
92 stars 31 forks source link

Routing Error OSM tools #55

Closed COMMUTERMEXICO closed 5 years ago

COMMUTERMEXICO commented 6 years ago

Hi Nils!!! Greetings from Mexico!

I´m using the OSM TOOLS plugin in QGIS and I want to calculate the routes between a layer whith 125 origins and a layer with 125 destinations (both layers are points and the fields are: id, lat, long) but when I run the task it appears the next warning:

"IndexError: list index out of range Traceback (most recent call last): File "C:/Users/josue.gonzalez/.qgis2/python/plugins\OSMtools\osm_tools.py", line 144, in run route.directions_calc() File "C:/Users/josue.gonzalez/.qgis2/python/plugins\OSMtools\directions.py", line 137, in directions_calc layer_out = self._addLine(responses, values_list) File "C:/Users/josue.gonzalez/.qgis2/python/plugins\OSMtools\directions.py", line 183, in _addLine values_list[i][0], IndexError: list index out of range"

How can I solve this? Thank you very much!!!

Baruc

nilsnolde commented 6 years ago

Hola, did you check this workaround: #47 ?

westdun commented 6 years ago

Hi Nils. I had the same issue and the workaround in #47 worked perfectly