25#include <cpl_string.h>
27#include "qgis_analysis.h"
135 double calculateKernelValue(
double distance,
double bandwidth,
KernelShape shape,
OutputValues outputType )
const;
137 double uniformKernel(
double distance,
double bandwidth,
OutputValues outputType )
const;
139 double quarticKernel(
double distance,
double bandwidth,
OutputValues outputType )
const;
141 double triweightKernel(
double distance,
double bandwidth,
OutputValues outputType )
const;
143 double epanechnikovKernel(
double distance,
double bandwidth,
OutputValues outputType )
const;
145 double triangularKernel(
double distance,
double bandwidth,
OutputValues outputType )
const;
152 QString mOutputFormat;
167 GDALRasterBandH mRasterBandH;
170 bool createEmptyLayer( GDALDriverH driver,
const QgsRectangle &bounds,
int rows,
int columns )
const;
171 int radiusSizeInPixels(
double radius )
const;
An interface for objects which provide features via a getFeatures method.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Performs Kernel Density Estimation ("heatmap") calculations on a vector layer.
QgsKernelDensityEstimation(const QgsKernelDensityEstimation &other)=delete
Result
Result of operation.
@ DriverError
Could not open the driver for the specified format.
@ FileCreationError
Error creating output file.
@ RasterIoError
Error writing to raster.
@ Success
Operation completed successfully.
@ InvalidParameters
Input parameters were not valid.
QgsKernelDensityEstimation & operator=(const QgsKernelDensityEstimation &other)=delete
OutputValues
Output values type.
@ OutputScaled
Output mathematically correct scaled values.
KernelShape
Kernel shape type.
@ KernelTriweight
Triweight kernel.
@ KernelUniform
Uniform (flat) kernel.
@ KernelEpanechnikov
Epanechnikov kernel.
@ KernelTriangular
Triangular kernel.
A rectangle specified with double values.
std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
QgsKernelDensityEstimation::OutputValues outputValues
Type of output value.
QString radiusField
Field for radius, or empty if using a fixed radius.
double radius
Fixed radius, in map units.
double decayRatio
Decay ratio (Triangular kernels only)
QgsKernelDensityEstimation::KernelShape shape
Kernel shape.
QString weightField
Field name for weighting field, or empty if not using weights.
double pixelSize
Size of pixel in output file.