-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update RasterColorInterpretation enumeration with constants added in GDAL 3.10 #58807
Update RasterColorInterpretation enumeration with constants added in GDAL 3.10 #58807
Conversation
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.
Looks good to me
Not sure if this 3.40 or 3.42 material. I targetted the later for now
Would QGIS 3.40 be built depending on gdal 3.10? Maybe yes in the end, QGIS 3.40 being a LTR. So maybe it's better to have it in 3.40.
return QStringLiteral( "Undefined" ); | ||
|
||
case Qgis::RasterColorInterpretation::GrayIndex: | ||
return QStringLiteral( "Gray" ); |
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.
Is there any reason why these aren't translated?
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.
Is there any reason why these aren't translated?
I was wondering too. colorInterpretationName() doesn't appear to be much used, except in QgsRasterInterface::displayBandName(), so it might be save to translate it
+1 to merging for 3.40 |
a109d23
to
00013ba
Compare
update to indicate since 3.40, and translate strings |
per OSGeo/gdal#10721
Not sure if this 3.40 or 3.42 material. I targetted the later for now