From c647af61fb8d8b8400d56808baab2093d32823be Mon Sep 17 00:00:00 2001 From: andresgciamtez <49898742+andresgciamtez@users.noreply.github.com> Date: Wed, 18 Sep 2019 22:20:18 +0200 Subject: [PATCH] fix line 277 (link.length2d) --- wnt_network_from_lines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wnt_network_from_lines.py b/wnt_network_from_lines.py index 00a5825..f2e767f 100644 --- a/wnt_network_from_lines.py +++ b/wnt_network_from_lines.py @@ -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)