Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUG] Do not output lines shorter than 0.00001
  • Loading branch information
Bernhard Ströbl authored and m-kuhn committed Mar 14, 2016
1 parent bbcacfb commit ffae112
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/algs/qgis/SplitLinesWithLines.py
Expand Up @@ -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))

Expand Down

0 comments on commit ffae112

Please sign in to comment.