Skip to main content
Solved

How to get values from a raster band and palette

  • June 27, 2017
  • 2 replies
  • 196 views

aaron
Contributor
Forum|alt.badge.img+12

I have a raster with text descriptions of vegetative classes that I wish to place on some points. I know the band and palette where the description resides (band 0, palette 2), which I have exposed using the RasterSelector. I can see the values correctly output in the Feature Information window of an Inspector but not in the Table View window of the Inspector. In other words, I can't find how to expose the values (text descriptions) as attributes. I've tried the ListExploder, ListIndexer, RasterPaletteExtractor, and Format Attributes of the Reader. I can see _band{}.palette{}.value listed as an attribute in the PointOnRasterValueExtractor so it seems all I need to do is expose _band{0}.palette{2}.value. The question is how? Hoping someone can point me in the right direction.

Thanks,

Aaron

Best answer by ebygomm

You can use an attributecreator (or an attribute manager) to create a new attribute with the value set to the value in the list

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • June 27, 2017

You can use an attributecreator (or an attribute manager) to create a new attribute with the value set to the value in the list


aaron
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • June 27, 2017

You can use an attributecreator (or an attribute manager) to create a new attribute with the value set to the value in the list

Thanks @egomm, that's exactly what I needed!