Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #40521 from elpaso/bugfix-gh40515-pgraster-regression
Fix PG raster after 787181a
  • Loading branch information
elpaso committed Dec 9, 2020
2 parents 41f0ff8 + ce02af6 commit d958dfe
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 d958dfe

Please sign in to comment.