Skip to main content
Solved

RasterExpressionEvaluator

  • November 11, 2020
  • 7 replies
  • 74 views

oliver.morris
Contributor
Forum|alt.badge.img+12

Hi, I am trying to essentially take one raster over another to produce one merged raster. With some simple logic if cell is present in raster B choose raster cell B otherwise A. When I do this the transformer just outputs and empty map. what am I doing wrong? Thank you

Capture

Best answer by jdh

oliver.morris wrote:

thanks, I tried that it didnt work either

The rasterExpressionEvaluator can be quirky if a NoData value is set. Try removing the nodata then adding it back in after the transformer.

View original
Did this help you find an answer to your question?

7 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • November 11, 2020

Have you inspected the rasters going into the RasterExpressionEvaluator? Do they still look as you expect at this stage?


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • November 11, 2020

Try it without the @ in your conditional statement.


oliver.morris
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 11, 2020
jdh wrote:

Try it without the @ in your conditional statement.

thanks, I tried that it didnt work either


oliver.morris
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 11, 2020
ebygomm wrote:

Have you inspected the rasters going into the RasterExpressionEvaluator? Do they still look as you expect at this stage?

yes both look fine:

b1a1


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • November 11, 2020
oliver.morris wrote:

thanks, I tried that it didnt work either

The rasterExpressionEvaluator can be quirky if a NoData value is set. Try removing the nodata then adding it back in after the transformer.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • November 12, 2020
oliver.morris wrote:

thanks, I tried that it didnt work either

I think @jdh has it, i can recreate. Adding RasterBandNodataSetters into a workflow before the RasterExpressionEvaluator results in an empty map (everything set to no data basically)


oliver.morris
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 17, 2020
oliver.morris wrote:

thanks, I tried that it didnt work either

apologies for the delay in replying, it has been quite a frantic few days. Removingt the nodatasetters doesnt seem to have an effect, one of the inputs has 0 already defined as no data. So I used a RasterBandNodataRemover on both data sets and now it works. Thank you @ebygomm​  and @jdh​ 234


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