mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[BUG] Do not output lines with two identical points
This commit is contained in:
parent
e3a2a1e5db
commit
0c719d6c0e
@ -130,9 +130,8 @@ class SplitLinesWithLines(GeoAlgorithm):
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user