Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GDAL provider] in create(), use newly create dataset handle to insta…
…nciate the provider (fix #17103) Previously we created an empty file, close it and re-opened it immediately in open mode. However for GeoPackage, if you create for example a 1 band or 3 band dataset, upon reopening you get a 4 band RGBA dataset, due to the fact that GeoPackage doesn't explicitly store the number of bands. Thus the 4th band (alpha) was never written by the QgsRasterFileWriter logic.
- Loading branch information
Showing
3 changed files
with
68 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters