europlanet-gmap / mappy

qgis plugin for creating geological maps from limits and points
GNU General Public License v3.0
5 stars 0 forks source link

Remove Duplicates tool in Fixies: "ValueError: too many values to unpack (expected 2)" #3

Open afrigeri opened 3 years ago

afrigeri commented 3 years ago

Seems that seg1.vertices() returns too many values.

Remove Duplicates fails with this error:

QGIS version: 3.18.3-Zürich QGIS code revision: 735cc85be9 Qt version: 5.14.2 GDAL version: 3.2.1 GEOS version: 3.9.1-CAPI-1.14.2 PROJ version: Rel. 6.3.2, May 1st, 2020 PDAL version: 2.2.0 (git-version: Release) Processing algorithm… Algorithm 'Remove Duplicated Segments' starting… Input parameters: { 'IN_SEGMENTS' : '/Users/alf/Downloads/cleaned.shp|layername=cleaned', 'OUTPUT' : 'TEMPORARY_OUTPUT', 'THRESHOLD' : 1e-06 }

Traceback (most recent call last): File "/Users/alf/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/mappy/providers/remove_duplicate_segments.py", line 117, in processAlgorithm are_equal = self.equal_segments(ln1, ln2, t) File "/Users/alf/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/mappy/providers/remove_duplicate_segments.py", line 82, in equal_segments s1_s, s1_e = seg1.vertices() ValueError: too many values to unpack (expected 2)

Execution failed after 0.08 seconds

Loading resulting layers Algorithm 'Remove Duplicated Segments' finished`