Skip to main content
Question

Help with PointOnRasterValueExtractor : Getting band names


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)

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 20, 2020

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
  • January 21, 2020
jdh wrote:

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
Influencer
Forum|alt.badge.img+39
  • Influencer
  • January 21, 2020

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)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings