Skip to main content
Question

Help with PointOnRasterValueExtractor : Getting band names

  • Jan 20, 2020 3:49 PM UTC
  • 3 replies
  • 95 views

yaze

Hello,

I am overlapping a set of points on a combined raster from 200 previous ones and then exposing obtained values as attributes. However I want to get the attribute names as FME_Basenames (fig 2) and not as shown in (fig 1). Is there somehow how to to do ? Thank you very much

(fig.1)

(fig.2)

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.

3 replies

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Jan 20, 2020 4:05 PM UTC

You could probably use the RasterBandPropertExtractor to get a list of band names and then rename the attributes so that _band{n}.value becomes @Value(_band{n}.band_name).

 

 

However exposing the attributes so they are present on the canvas can't be done dynamically.

yaze
  • Author
  • Jan 21, 2020 11:03 AM UTC

You could probably use the RasterBandPropertExtractor to get a list of band names and then rename the attributes so that _band{n}.value becomes @Value(_band{n}.band_name).

 

 

However exposing the attributes so they are present on the canvas can't be done dynamically.

Tried to do that but couldn't figure exactly how to. Can you explain more ?


ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jan 21, 2020 12:31 PM UTC

I'd resort to python for the renaming step (you could explode, create an attribute from the band name and set it to the band value and then re-aggregate)