16 #ifndef QGSNETWORKDISTANCESTRATEGY_H 17 #define QGSNETWORKDISTANCESTRATEGY_H 20 #include "qgis_analysis.h" 32 QVariant
cost(
double distance,
const QgsFeature & )
const override;
35 #endif // QGSNETWORKDISTANCESTRATEGY_H QgsNetworkStrategy defines strategy used for calculation of the edge cost.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
Strategy for calculating edge cost based on its length.