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

Generate Isochrones not working in QGIS Graphical Modeler #107

Closed ChalktyGeo closed 5 years ago

ChalktyGeo commented 5 years ago

When trying to incorporate the Generate Isochrones tool in QGIS graphical modeler it is not possible due to the error raised with the "Input Point from map canvas option".

Please see my example below to help explain the issue:

Test2

Unless I am misunderstanding the functionality I don't think there is a way around this - I would like to be able to specify the point layer input to run the isochrones but the canvas option is somehow stopping that.

Cheers

nilsnolde commented 5 years ago

Thanks for reporting this and the gif. I'll have a look next week, should be a minor fix.

nilsnolde commented 5 years ago

This doesn't seem to be a bug really.

You didn't specify any API key, right? You'll have to go to 'Web' menu > ORS Tools > Provider Settings and specify one. I fixed the message though. In the normal Processing Toolbox, you get the algorithm help window on the right side by default, which would tell you to specify an API key. However, in the Graphical Modeler it doesn't show. Maybe you can flag that at QGIS repo. Also, the whole dialog is quite a bit different in the Modeler compared to the Processing toolbox tools.

ChalktyGeo commented 5 years ago

Even after specifying a valid API key it is still not possible for me to incorporate this into a model.

ChalktyGeo commented 5 years ago

Apologies, I can if I delete the "None" from the second dialogue box but how do you keep the option to add a point from the canvas?

nilsnolde commented 5 years ago

how do you keep the option to add a point from the canvas?

Sorry, what do you mean? You want to have the 'point from map' option within the Modeler? That won't be possible I guess right?

Like I said, modeler and processing dialogs are different here. Just open the Isochrone window from the normal plugin GUI and you'll see what I mean. That field is not pre-filled with None. No idea why they differ.