pierluigiderosa / RiverMetrics

2 stars 0 forks source link

Issue with adding breaks #3

Open ZitoVentu opened 6 years ago

ZitoVentu commented 6 years ago

Hi, the script rise an error at 7th step When I press stop-breaks to create a new layer split following the breaks an error occur :

Traceback (most recent call last): File "C:/Users/USER/.qgis2/python/plugins\RiverMetrics\river_metrics_dockwidget.py", line 219, in addBreaks self.final() File "C:/Users/USER/.qgis2/python/plugins\RiverMetrics\river_metrics_dockwidget.py", line 233, in final ll1 = createMemLayer(the_geom, self.breaks) File "C:/Users/USER/.qgis2/python/plugins\RiverMetrics\tools.py", line 115, in createMemLayer reach = splitLine(line,ptInt,ptFin) File "C:/Users/USER/.qgis2/python/plugins\RiverMetrics\tools.py", line 89, in splitLine newPoints.append(pline[iter]) IndexError: list index out of range

Do you have similar problems in the past. Do you now how to fix this? Best regards, Enzo