Skip to content

Commit

Permalink
fix line 277 (link.length2d)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgciamtez authored Sep 18, 2019
1 parent 5efb4f6 commit c647af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wnt_network_from_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def processAlgorithm(self, parameters, context, feedback):
lcnt += 1
f = QgsFeature()
f.setGeometry(QgsGeometry.fromWkt(link.get_wkt()))
length = link.get_length2d()
length = link.length2d()
f.setAttributes([link.linkid, link.start, link.end, 'PIPE', length])
links_sink.addFeature(f, QgsFeatureSink.FastInsert)

Expand Down

0 comments on commit c647af6

Please sign in to comment.