Skip to content

Update RasterColorInterpretation enumeration with constants added in GDAL 3.10#58807

Merged
troopa81 merged 2 commits into
qgis:masterfrom
rouault:update_RasterColorInterpretation
Sep 23, 2024
Merged

Update RasterColorInterpretation enumeration with constants added in GDAL 3.10#58807
troopa81 merged 2 commits into
qgis:masterfrom
rouault:update_RasterColorInterpretation

Conversation

@rouault
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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