Skip to content
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

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

rouault
Copy link
Contributor

@rouault rouault commented Sep 19, 2024

per OSGeo/gdal#10721

Not sure if this 3.40 or 3.42 material. I targetted the later for now

@github-actions github-actions bot added this to the 3.40.0 milestone Sep 19, 2024
Copy link

github-actions bot commented Sep 19, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 00013ba)

Copy link
Contributor

@troopa81 troopa81 left a 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" );
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@nyalldawson
Copy link
Collaborator

+1 to merging for 3.40

@rouault rouault force-pushed the update_RasterColorInterpretation branch from a109d23 to 00013ba Compare September 20, 2024 21:57
@rouault
Copy link
Contributor Author

rouault commented Sep 20, 2024

update to indicate since 3.40, and translate strings

@troopa81 troopa81 merged commit 588e8d4 into qgis:master Sep 23, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants