ait-energy / qgis-edge-bundling

GNU General Public License v2.0
63 stars 14 forks source link

Bundling fails on Multilinestring #14

Open patrickjoan opened 5 years ago

patrickjoan commented 5 years ago

I used a layer which contained 549 lines, none of which have length 0. Also every one of them is a linestring with two points,. When running with default settings and no clustering field i get an error. Traceback (most recent call last): File "C:/Users/Patu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_edgebundling\edgebundling.py", line 202, in processAlgorithm cl.force_directed_eb(feedback) File "C:/Users/Patu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_edgebundling\edgebundlingUtils.py", line 190, in force_directed_eb self.epm_x[e_idx, 0] = vertices[0].x() IndexError: list index out of range

How should i proceed?

anitagraser commented 5 years ago

Dear Patrick, can you provide a data sample to reproduce the issue?

patrickjoan commented 5 years ago

I have added a sample csv with the lines i used here. https://ufile.io/8p3md

anitagraser commented 5 years ago

I'm not sure what the data represents

kodu_vor | too_vor | liikuvus
223 | 235 | 10
132 | 147 | 10
212 | 128 | 10
patrickjoan commented 5 years ago

Sorry, i didnt look at the file properly, QGIS doesnt save geometry into csv automatically. the first two rows represent cells i have and the third one is a key variable. I have added the shapefiles for the lines here. https://ufile.io/jn2xy

anitagraser commented 5 years ago

Run Multipart to Singlepart before edge bundling