Skip to main content
Released

New transformer: RasterCellValueRangeMapper

Related products:Transformers
  • September 12, 2021
  • 2 replies
  • 58 views

takashi
Celebrity

Currently you can use RasterExpressionEvaluator to map ranges to values with @if function, e.g.

@if(@isnodata(A[0]), 0, @if(A[0]<-20, 1, @if(A[0]<-10, 2, @if(A[0]<-5, 3, @if(A[0]<-3, 4, @if(A[0]<-1, 5, @if(A[0]<-0.1, 6, @if(A[0]<0.1, 7, @if(A[0]<1, 8, @if(A[0]<3, 9, @if(A[0]<5, 10, @if(A[0]<10, 11, @if(A[0]<20, 12, 13)))))))))))))


It would be convenient if you could get the same result with a transformer having more user-friendly interface like AttributeRangemapper.



2 replies

LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • April 5, 2025
OpenReleased

LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • April 5, 2025
In FME 2022 and newer, the RasterCellValueReplacer was updated to allow for multiple ranges which will help with what you're trying to achieve