16#ifndef QGSNETWORKSTRATERGY_H
17#define QGSNETWORKSTRATERGY_H
22#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.
Defines strategy used for calculation of the edge cost in networks.
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)