Class: QgsNetworkDistanceStrategy¶
- class qgis.analysis.QgsNetworkDistanceStrategy¶
Bases:
QgsNetworkStrategy
Strategy for calculating edge cost based on its length. Should be used for finding shortest path between two points.
- cost(self, distance: float, a1: QgsFeature) Any ¶
- Parameters:
distance (float)
a1 (QgsFeature)
- Return type:
Any