mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Merge pull request #3372 from anitagraser/patch-1
[processing] fixed failure to insert only one point in Densify geometries alg
This commit is contained in:
commit
915afcf8fa
@ -112,10 +112,7 @@ class DensifyGeometries(GeoAlgorithm):
|
||||
|
||||
def densify(self, polyline, pointsNumber):
|
||||
output = []
|
||||
if pointsNumber != 1:
|
||||
multiplier = 1.0 / float(pointsNumber + 1)
|
||||
else:
|
||||
multiplier = 1
|
||||
multiplier = 1.0 / float(pointsNumber + 1)
|
||||
for i in xrange(len(polyline) - 1):
|
||||
p1 = polyline[i]
|
||||
p2 = polyline[i + 1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user