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

use value from Raster Attribute Table as defined in .lyr #167

Open
pvgenuchten opened this issue Apr 16, 2024 · 2 comments
Open

use value from Raster Attribute Table as defined in .lyr #167

pvgenuchten opened this issue Apr 16, 2024 · 2 comments

Comments

@pvgenuchten
Copy link

Describe the solution you'd like

Since 3.30 QGIS supports Raster Attribute Tables, however when you load a .lyr file with a style based on an attribute, slyr does not pick up the value and uses the band value instead, which causes wrong colors for the pixels

notice the africa_labeledecosystems_90m.zip tif dataset, which includes a rat and a lyr file. the lyr file references an attribute from RAT, however slyr does not set it up at qgis side

Describe alternatives you've considered
map the attribute table values to tiff values

Additional context
requires qgis 3.30+ (or the RAT plugin)

@nyalldawson
Copy link
Collaborator

There's a missing part in qgis still - you can't define raster styling using the text values from the RAT. It still requires hardcoded numeric values. That needs to be fixed before we can fully support these lyr files.

@pvgenuchten
Copy link
Author

@nyalldawson should i create an issue for this on qgis? or is there already an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants