Skip to content

Commit

Permalink
[backport] Fix PG raster after 787181a
Browse files Browse the repository at this point in the history
Fixes #40515

Manual backport of #40521
  • Loading branch information
elpaso committed Dec 9, 2020
1 parent da5da6f commit ad0a3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsgdalutils.cpp
Expand Up @@ -177,7 +177,7 @@ bool QgsGdalUtils::resampleSingleBandRaster( GDALDatasetH hSrcDS, GDALDatasetH h
GDALWarpOperation oOperation;
oOperation.Initialize( psWarpOptions.get() );

const bool retVal { oOperation.ChunkAndWarpImage( 0, 0, GDALGetRasterXSize( hDstDS ), GDALGetRasterYSize( hDstDS ) ) != CE_None };
const bool retVal { oOperation.ChunkAndWarpImage( 0, 0, GDALGetRasterXSize( hDstDS ), GDALGetRasterYSize( hDstDS ) ) == CE_None };
GDALDestroyGenImgProjTransformer( psWarpOptions->pTransformerArg );
return retVal;
}
Expand Down

0 comments on commit ad0a3bd

Please sign in to comment.