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)