Class: QgsNetworkDistanceStrategy

class qgis.analysis.QgsNetworkDistanceStrategy

Bases: qgis._analysis.QgsNetworkStrategy

Strategy for calculating edge cost based on its length. Should be used for finding shortest path between two points.

New in version 3.0: Methods

cost

Signals

Attributes

cost(self, distance: float, a1: QgsFeature) → Any