ait-energy / qgis-edge-bundling

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

Error in "cluster lines kmeans with ideal number of clusters" when not WGS84 #9

Closed spatialsparks closed 5 years ago

spatialsparks commented 6 years ago

When using the "cluster lines kmeans with ideal number of clusters" script it works just fine for EPSG:4326 but it does not work for EPSG:2056 for example.

I tried with different clustersizes, did not make a difference:

screenshot 2017-12-12 11 07 18

And the error is [Errno 9] Bad file descriptor See log for more details:

screenshot 2017-12-12 11 07 25

anitagraser commented 6 years ago

Please provide log output. Probably also related to either zero-length lines or lines with more than 2 nodes.

spatialsparks commented 6 years ago

So I checked and all lines are not zero length (all lines have length > 0) and no line has > 2 nodes. The error is:

2017-12-12T17:12:48 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 378, in processAlgorithm
                exec((script), ns)
              File "<string>", line 98, in <module>
            IOError: [Errno 9] Bad file descriptor

The weird thing is: now with the lins split into individual segments, even EPSG:4326 doesnt work...