Skip to main content
Solved

Syntax for RasterExpressionEvaluator with multiple clauses?

  • November 6, 2014
  • 2 replies
  • 27 views

makt
Contributor
Forum|alt.badge.img+1
I have a raster (double) that has positive and negative values and want to query it - but have been unable to find the correct syntax when using the RasterExpressionEvaluator with multiple clauses.

 

 

When I want just the cells that are positive, I only have one clause (line), which works fine:

 

 

 

However, if I only want the cells between zero and, say, 0.1, I need two clauses (lines), and the following does not work. It actually gives the same answer as the first picture above - as if the second clause made no impact at all:

 

 

What am I missing? I am using the latest FME Beta (Build 15208)

 

 

Best answer by jdh

The example you showed should actually produce two bands, one with the first clause, and the other with the second clause.

 

 

You need both clauses in one line:  A[0]>0.0 && A[0]<0.1
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.

2 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • November 6, 2014
The example you showed should actually produce two bands, one with the first clause, and the other with the second clause.

 

 

You need both clauses in one line:  A[0]>0.0 && A[0]<0.1

makt
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • November 6, 2014
perfect! thanks