-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QgsRasterFileWriter::driverForExtension(): make sure querying the tif… #59122
Conversation
…/tiff extension returns the GTiff driver Not strictly necessary since has been adressed on GDAL side per OSGeo/gdal#11037 but might be prudent for future similar situations. Fixes qgis#59122
6f68fc6
to
796054f
Compare
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
@@ -1072,6 +1072,15 @@ QString QgsRasterFileWriter::driverForExtension( const QString &extension ) | |||
if ( ext.startsWith( '.' ) ) | |||
ext.remove( 0, 1 ); | |||
|
|||
if ( ext == QLatin1String( "tif" ) || ext == QLatin1String( "tiff" ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the comparison be case insensitive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed. Fixed. Thanks for the review
…/tiff extension returns the GTiff driver Not strictly necessary since has been adressed on GDAL side per OSGeo/gdal#11037 but might be prudent for future similar situations. Fixes qgis#59112
…/tiff extension returns the GTiff driver
Not strictly necessary since has been adressed on GDAL side per OSGeo/gdal#11037 but might be prudent for future similar situations.
Fixes #59112
Already tested per
QGIS/tests/src/python/test_qgsrasterfilewriter.py
Line 108 in 94411b5