25 #include <cpl_string.h> 27 #include "qgis_analysis.h" 140 double calculateKernelValue(
const double distance,
const double bandwidth,
const KernelShape shape,
const OutputValues outputType )
const;
142 double uniformKernel(
const double distance,
const double bandwidth,
const OutputValues outputType )
const;
144 double quarticKernel(
const double distance,
const double bandwidth,
const OutputValues outputType )
const;
146 double triweightKernel(
const double distance,
const double bandwidth,
const OutputValues outputType )
const;
148 double epanechnikovKernel(
const double distance,
const double bandwidth,
const OutputValues outputType )
const;
150 double triangularKernel(
const double distance,
const double bandwidth,
const OutputValues outputType )
const;
157 QString mOutputFormat;
172 GDALRasterBandH mRasterBandH;
175 bool createEmptyLayer( GDALDriverH driver,
const QgsRectangle &bounds,
int rows,
int columns )
const;
176 int radiusSizeInPixels(
double radius )
const;
A rectangle specified with double values.
QString weightField
Field name for weighting field, or empty if not using weights.
double pixelSize
Size of pixel in output file.
Performs Kernel Density Estimation ("heatmap") calculations on a vector layer.
QgsKernelDensityEstimation::KernelShape shape
Kernel shape.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
KernelShape
Kernel shape type.
OutputValues
Output values type.
Input parameters were not valid.
Could not open the driver for the specified format.
Output mathematically correct scaled values.
std::unique_ptr< void, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
double radius
Fixed radius, in map units.
Operation completed successfully.
An interface for objects which provide features via a getFeatures method.
QString radiusField
Field for radius, or empty if using a fixed radius.
double decayRatio
Decay ratio (Triangular kernels only)
Result
Result of operation.
Error creating output file.
QgsKernelDensityEstimation::OutputValues outputValues
Type of output value.