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

ORS plugins can't perform #157

Closed Shamballa0301 closed 3 years ago

Shamballa0301 commented 3 years ago

螢幕擷取畫面 2021-06-16 162152

I'm not quit familiar these coding stuffs, and i couldn't find any resolutions, can someone help me out? The simple the better, thanks.

koebi commented 3 years ago

Hey, can you provide a description of your input data (or share the input file, if possible), and what version of QGIS and ORSTools you are running?

Shamballa0301 commented 3 years ago

Hey, can you provide a description of your input data (or share the input file, if possible), and what version of QGIS and ORSTools you are running?

QGIS version : 3.16.7 ORSTools version : 1.3.0 the data source is csv, containing latitude and longtitude, i imported it as delimited text layer, using code UTF-8

koebi commented 3 years ago

Great, thanks :) I assume this is a problem somewhere in the input data - could you share the csv somehow? If not, this'll probably be hard to debug…

Shamballa0301 commented 3 years ago

Great, thanks :) I assume this is a problem somewhere in the input data - could you share the csv somehow? If not, this'll probably be hard to debug…

MRT.xlsx I don't why I can't sent it as csv, so I convert it to xlsx.

koebi commented 3 years ago

Hey, it shouldn't be a problem to drag-and-drop a .csv-file onto github. It'd be appreciated if you could try again, since the .xlsx from before only has 捷運站代號 as field names, and not the field from the screenshot above.

Also note, that there's a new version of the plugin available - I don't think this would cause this problem, but it'd still be good if you updated :)

Shamballa0301 commented 3 years ago

Hey, it shouldn't be a problem to drag-and-drop a .csv-file onto github. It'd be appreciated if you could try again, since the .xlsx from before only has 捷運站代號 as field names, and not the field from the screenshot above.

Also note, that there's a new version of the plugin available - I don't think this would cause this problem, but it'd still be good if you updated :)

I kind of don't think it's the problem of input data cause I also try the other function by adding a point from map and got the same outcome as I did earlier.

koebi commented 3 years ago

Could you provide a screenshot for that as well, please?

Shamballa0301 commented 3 years ago

Could you provide a screenshot for that as well, please?

image

koebi commented 3 years ago

Hey, the same request is running fine for me - it might be to do with you running windows and us only testing on linux and mac… There should be an out in the Log Messages-Panel, in the ORS Tools-Tab. Could you copy that here, just so we can make sure that it's not an issue with the request, please?

Shamballa0301 commented 3 years ago

Hey, the same request is running fine for me - it might be to do with you running windows and us only testing on linux and mac… There should be an out in the Log Messages-Panel, in the ORS Tools-Tab. Could you copy that here, just so we can make sure that it's not an issue with the request, please?

Sorry, I don't quit get it. Is it this one?

JSONDecodeError: Expecting value: line 1 column 1 (char 0) https://openrouteservice.org/dev/?fbclid=IwAR1T796-9wm6Rq3HZYsaBN5BVo6DypXxjpvV6NsGqWm7gRz9BDRenlTVhd4#/login/v2/directions/driving-car/geojson? Parameters: { "preference": "fastest", "geometry": "true", "instructions": "false", "elevation": true, "id": 1, "coordinates": [ [ 120.673376, 24.147709 ] ] }

koebi commented 3 years ago

When you click Run in the Isochrones from Point-Algorithm, there should be an output in the Log Messages-Panel in the ORS Tools-Tab that looks something like this:

2021-06-16T13:34:44     INFO    url: https://api.openrouteservice.org/v2/isochrones/foot-hiking?
             Parameters: {
              "locations": [
              [
              120.666503,
              24.15309
              ]
              ],
              "range_type": "time",
              "range": [
              900
              ],
              "attributes": [
              "total_pop"
              ],
              "id": null
             }

These messages are timestamped, so you can make sure you get the right one. That'd be great to look at for your request, just so that we can have an idea of what is returned. If it's easier for you, screenshot works fine as well, just make sure you do your request and then scroll down completely so it actually shows the latest message :)

We are thoroughly puzzled where the url you pasted came from - could you share your config.yml or a screenshot from your providers, since you are not using the default one :)

Shamballa0301 commented 3 years ago

When you click Run in the Isochrones from Point-Algorithm, there should be an output in the Log Messages-Panel in the ORS Tools-Tab that looks something like this:

2021-06-16T13:34:44     INFO    url: https://api.openrouteservice.org/v2/isochrones/foot-hiking?
             Parameters: {
              "locations": [
              [
              120.666503,
              24.15309
              ]
              ],
              "range_type": "time",
              "range": [
              900
              ],
              "attributes": [
              "total_pop"
              ],
              "id": null
             }

These messages are timestamped, so you can make sure you get the right one. That'd be great to look at for your request, just so that we can have an idea of what is returned. If it's easier for you, screenshot works fine as well, just make sure you do your request and then scroll down completely so it actually shows the latest message :)

We are thoroughly puzzled where the url you pasted came from - could you share your config.yml or a screenshot from your providers, since you are not using the default one :)

This time I used the default one. 2021-06-16T20:15:16 INFO url: https://openrouteservice.org/dev/?fbclid=IwAR1T796-9wm6Rq3HZYsaBN5BVo6DypXxjpvV6NsGqWm7gRz9BDRenlTVhd4#/login/v2/isochrones/driving-car? Parameters: { "locations": [ [ 120.685793, 24.139846 ] ], "range_type": "time", "range": [ 300, 600 ], "attributes": [ "total_pop" ], "id": null }

koebi commented 3 years ago

Hey, could you share a screenshot from your provider settings, which you get from clicking on the cogwheel icon in the main ORS Tools window? It looks like your provider is wrong…

Shamballa0301 commented 3 years ago

Hey, could you share a screenshot from your provider settings, which you get from clicking on the cogwheel icon in the main ORS Tools window? It looks like your provider is wrong…

Holy crap, I did it. I don't know why i changed the base url as well when entering the api key. I reset it and finally succeed. Thank you so much, silly me, lol. Wish you a nice day.