root676 / QNEAT3

QNEAT3 - Qgis Network Analysis Toolbox 3
GNU General Public License v3.0
63 stars 12 forks source link

Iso-Areas algorithms always throw error when (from Layer) #18

Closed ghtmtt closed 4 years ago

ghtmtt commented 5 years ago

I'm testing the plugin, especially the Iso-Areas algorithms. Using always the same line layer.

Putting here some results:

Traceback (most recent call last):
File "/home/matteo/.local/share/QGIS/QGIS3/profiles/matteo/python/plugins/QNEAT3/algs/IsoAreaAsContoursFromLayer.py", line 255, in processAlgorithm
contour_featurelist = net.calcIsoContours(max_dist, interval, output_path)
File "/home/matteo/.local/share/QGIS/QGIS3/profiles/matteo/python/plugins/QNEAT3/Qneat3Framework.py", line 410, in calcIsoContours
band_in = ds_in.GetRasterBand(1)
AttributeError: 'NoneType' object has no attribute 'GetRasterBand'

Esecuzione fallita dopo 0.09 secondi

I don't know if I'm missing some concepts or if this is not the intended behavior,

Cheers and thanks for the plugin

root676 commented 5 years ago

Hi @ghtmtt, thanks for testing the QNEAT3 plugin! I just ran the two algorithms you mentioned on my windows machine: both tasks completed without errors. The error AttributeError: 'NoneType' object has no attribute 'GetRasterBand' usually pops up when you define very small iso area sizes so that no network nodes are reached and no interpolation can be performed. Which parameter values did you use?

Judging from the paths in your error report, you are using Linux - I will try to test it on my ubuntu machine too.

root676 commented 4 years ago

I tested the issue on my Linux machine but could not reproduce the error. I believe the error message is due to a small size value of the iso-area that has been chosen. I will take this as feedback to provide better feedback-messages for users in future releases.

ghtmtt commented 4 years ago

Thanks for taking care of this.