Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure that rescaling runs with the correct data type
  • Loading branch information
wonder-sk committed Jun 29, 2015
1 parent dbb8cc2 commit bba1985
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/raster/qgsalignraster.cpp
Expand Up @@ -498,6 +498,8 @@ bool QgsAlignRaster::createAndWarp( const Item& raster )
psWarpOptions->pfnPostWarpChunkProcessor = rescalePostWarpChunkProcessor;
psWarpOptions->pPreWarpProcessorArg = rescaleArg;
psWarpOptions->pPostWarpProcessorArg = rescaleArg;
// force use of float32 data type as that is what our pre/post-processor uses
psWarpOptions->eWorkingDataType = GDT_Float32;
}

// Initialize and execute the warp operation.
Expand Down

0 comments on commit bba1985

Please sign in to comment.