Skip to content

Commit

Permalink
[BUG] Do not output lines with two identical points
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Ströbl authored and m-kuhn committed Mar 14, 2016
1 parent e3a2a1e commit 0c719d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/algs/qgis/SplitLinesWithLines.py
Expand Up @@ -130,9 +130,8 @@ def processAlgorithm(self, progress):




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


Expand Down

0 comments on commit 0c719d6

Please sign in to comment.