Subgroup: Network
Class: QgsNetworkDistanceStrategy¶
-
class
qgis.analysis.
QgsNetworkDistanceStrategy
¶ Bases:
qgis._analysis.QgsNetworkStrategy
New in version 3.0: Strategy for caclulating edge cost based on its length. Should be
used for finding shortest path between two points.
Methods
cost
requiredAttributes
Returns a list of the source layer attributes needed for cost calculation. Attributes
-
cost
(self, distance: float, a1: QgsFeature) → Any¶
-