QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
src
analysis
network
qgsnetworkdistancestrategy.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdistancestrategy.h
3
--------------------------------------
4
Date : 2011-04-01
5
Copyright : (C) 2010 by Yakushev Sergey
6
Email : YakushevS <at> list.ru
7
****************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsnetworkdistancestrategy.h
"
17
18
QVariant
QgsNetworkDistanceStrategy::cost
(
double
distance,
const
QgsFeature
&f )
const
19
{
20
Q_UNUSED( f )
21
return
QVariant( distance );
22
}
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition
qgsfeature.h:56
QgsNetworkDistanceStrategy::cost
QVariant cost(double distance, const QgsFeature &) const override
Returns edge cost.
Definition
qgsnetworkdistancestrategy.cpp:18
qgsnetworkdistancestrategy.h
Generated on Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8