QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSNETWORKSTRATERGY_H
17 #define QGSNETWORKSTRATERGY_H
23 #include "qgis_analysis.h"
48 sipType = sipType_QgsNetworkDistanceStrategy;
50 sipType = sipType_QgsNetworkSpeedStrategy;
77 #endif // QGSNETWORKSTRATERGY_H
Strategy for calculating edge cost based on travel time.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual ~QgsNetworkStrategy()=default
QgsNetworkStrategy()=default
Default constructor.
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Strategy for calculating edge cost based on its length.
virtual QSet< int > requiredAttributes() const
Returns a list of the source layer attributes needed for cost calculation.
QgsNetworkStrategy defines strategy used for calculation of the edge cost.