Skip to main content
Solved

RasterExpressionEvaluator

  • November 11, 2020
  • 7 replies
  • 97 views

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

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

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.

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.

7 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • 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+37
  • Contributor
  • 2002 replies
  • November 11, 2020

Try it without the @ in your conditional statement.


oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 176 replies
  • November 11, 2020

Try it without the @ in your conditional statement.

thanks, I tried that it didnt work either


oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 176 replies
  • November 11, 2020

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+37
  • Contributor
  • 2002 replies
  • Best Answer
  • November 11, 2020

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+44
  • Influencer
  • 3427 replies
  • November 12, 2020

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+14
  • Author
  • Contributor
  • 176 replies
  • November 17, 2020

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