Skip to content
Permalink
Browse files

Merge pull request #4891 from nyalldawson/fix_heatmap_raster

Correctly create raster for heatmap output
  • Loading branch information
alexbruy committed Jul 20, 2017
2 parents 96fc3bd + 5241c74 commit 66245612196f788cb434f00d2beaeddb847a5a5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/raster/qgskde.cpp
@@ -227,7 +227,7 @@ int QgsKernelDensityEstimation::radiusSizeInPixels( double radius ) const

bool QgsKernelDensityEstimation::createEmptyLayer( GDALDriverH driver, const QgsRectangle &bounds, int rows, int columns ) const
{
double geoTransform[6] = { bounds.xMinimum(), mPixelSize, 0, bounds.yMinimum(), 0, mPixelSize };
double geoTransform[6] = { bounds.xMinimum(), mPixelSize, 0, bounds.yMaximum(), 0, -mPixelSize };
GDALDatasetH emptyDataset = GDALCreate( driver, mOutputFile.toUtf8(), columns, rows, 1, GDT_Float32, nullptr );
if ( !emptyDataset )
return false;

0 comments on commit 6624561

Please sign in to comment.
You can’t perform that action at this time.