16#ifndef QGSNETWORKSTRATERGY_H
17#define QGSNETWORKSTRATERGY_H
19#include "qgis_analysis.h"
46 sipType = sipType_QgsNetworkDistanceStrategy;
48 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.
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
QgsNetworkStrategy()=default
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)