Skip to content
Permalink
Browse files

[BUG] Do not output lines shorter than 0.00001

  • Loading branch information
bstroebl authored and m-kuhn committed Mar 14, 2016
1 parent bbcacfb commit ffae112ece2746989676f87e5cefb7c32374bc44
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/algs/qgis/SplitLinesWithLines.py
@@ -128,9 +128,13 @@ def processAlgorithm(self, progress):

inLines = outLines


for aLine in inLines:
outFeat.setGeometry(aLine)
writer.addFeature(outFeat)
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
outFeat.setGeometry(aLine)
writer.addFeature(outFeat)

progress.setPercentage(int(current * total))

0 comments on commit ffae112

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