Skip to content
Permalink
Browse files

[BUG] Do not output lines with two identical points

  • Loading branch information
bstroebl authored and m-kuhn committed Mar 14, 2016
1 parent e3a2a1e commit 0c719d6c0ed533bc67b475bdd63acc305d9ce7bd
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/qgis/SplitLinesWithLines.py
@@ -130,9 +130,8 @@ def processAlgorithm(self, progress):


for aLine in inLines:
if round(aLine.length(), 6) > 0:
# sometimes splitting results in lines of almost zero lenght,
# we filter out anything with a lenght of less than 0.00001
if len(aLine.asPolyline()) > 2 or aLine.asPolyline()[0] != aLine.asPolyline()[1]:
# sometimes splitting results in lines of zero length
outFeat.setGeometry(aLine)
writer.addFeature(outFeat)

0 comments on commit 0c719d6

Please sign in to comment.
You can’t perform that action at this time.