mgaudin / Hy2roresO

QGIS Plugin that compute some stream hierarchisation system (Strahler, Horton, Shreve)
Other
5 stars 2 forks source link

order index error #4

Open aneefjes opened 9 months ago

aneefjes commented 9 months ago

Hi hi,

I finally found a tool which adresses loops in streams :) Thank you for that! Now I don't have to fix those in the networks. However, I came across an error when my network became larger. Namely:

IndexError: list index out of range Traceback (most recent call last): File "C:\Users/aneefjes/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Hy2roresO-master\hydroreso.py", line 191, in run self.run_process() File "C:\Users/aneefjes/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Hy2roresO-master\hydroreso.py", line 246, in run_process edges, nodes = create_edges_nodes(features, name_column, alt_init_column, alt_final_column) File "C:\Users/aneefjes/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Hy2roresO-master\hydroreso.py", line 538, in create_edges_nodes node1_geom = geom.asPolyline()[0] IndexError: list index out of range

What can I do about this? Is it something in my input data?

Many thanks Annabelle