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
91 stars 31 forks source link

Error message when using Matrix batch tool #164

Closed sigsdis30 closed 2 years ago

sigsdis30 commented 2 years ago

QGIS 3.16.14 ORS Tools 1.5.0 Batch Jobs > Matrix Provider: openrouteservice with a valid API token Travel mode: driving car Input start: a point layer (31 points) Start ID: unique code Input end: the same point layer Start ID: the same unique code Matrix: temporary layer


Here's what I got

Traceback (most recent call last): File "/.../QGIS/QGIS3/profiles/default/python/plugins/ORStools/proc/matrix_proc.py", line 91, in processAlgorithm options = self.parseOptions(parameters, context) File "/.../QGIS/QGIS3/profiles/default/python/plugins/ORStools/proc/base_processing_algorithm.py", line 195, in parseOptions features_raw = parameters[self.IN_AVOID_FEATS] KeyError: 'INPUT_AVOID_FEATURES'

I successfully used this tool in the last months. My software hadn't been updated. I tried to update ORS Tools

TheGreatRefrigerator commented 2 years ago

The avoid features should be disabled for matrix in https://github.com/GIScience/orstools-qgis-plugin/issues/164 but it probably only hides the menu entries but still requires the parameters for the algorithm.

A quick fix would be to just use the previous version of the plugin, until we fixed the issue (up to 1 week probably).

(See the entry in our Forum for the same report)

sigsdis30 commented 2 years ago

It works fine with version 1.4.0 I specify that my layer is a PostGIS table. Thank you