16 #ifndef QGSNETWORKSTRATERGY_H
17 #define QGSNETWORKSTRATERGY_H
23 #include "qgis_analysis.h"
48 sipType = sipType_QgsNetworkDistanceStrategy;
50 sipType = sipType_QgsNetworkSpeedStrategy;
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Strategy for calculating edge cost based on its length.
Strategy for calculating edge cost based on travel time.
QgsNetworkStrategy defines strategy used for calculation of the edge cost.
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
QgsNetworkStrategy()=default
Default constructor.
virtual ~QgsNetworkStrategy()=default
virtual QSet< int > requiredAttributes() const
Returns a list of the source layer attributes needed for cost calculation.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)