Skip to main content
Solved

Syntax for RasterExpressionEvaluator with multiple clauses?


makt
Contributor
Forum|alt.badge.img+1
  • Contributor
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
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> 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+28
  • 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

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