Skip to content

Commit

Permalink
Merge pull request #4891 from nyalldawson/fix_heatmap_raster
Browse files Browse the repository at this point in the history
Correctly create raster for heatmap output
  • Loading branch information
alexbruy authored Jul 20, 2017
2 parents 96fc3bd + 5241c74 commit 6624561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/raster/qgskde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6624561

Please sign in to comment.