Skip to main content
Open

RasterExpressionEvaluator should have math functions like @max and @min

Related products:Transformers
  • Jun 10, 2020 12:00 AM UTC
  • 5 replies
  • 149 views

jdh
Contributor
Forum|alt.badge.img+41

It would be nice if the RasterExpressionEvaluator would include math functions like @max(A[0],A[1],A[2]) similar to the expressionEvaluator

5 replies

jkr_wrk
Influencer
Forum|alt.badge.img+37
  • Sep 14, 2020 9:55 AM UTC

I would also like to have a @round function. Now I use @int32(A[0]*1000)/1000 but @round(A[0],3) would be better.


jkr_wrk
Influencer
Forum|alt.badge.img+37
  • Sep 14, 2020 10:01 AM UTC

There is also a bug here. When you choose @floor it puts in @floor(<float>,<precision>) but giving a precision gives an error, that @floor only takes one parameter. Also: (The 'ceil' function requires 1 argument(s), but was provided with 2 argument(s))


jdh
Contributor
Forum|alt.badge.img+41
  • Author
  • Contributor
  • Feb 10, 2021 6:36 PM UTC

I just hit a requirement for rounding in the RasterExpressionEvaluator. Thanks @jkr_da for your workaround.


LizAtSafe
Safer
Forum|alt.badge.img+26
  • Safer
  • Feb 10, 2024 4:35 AM UTC
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

jdh
Contributor
Forum|alt.badge.img+41
  • Author
  • Contributor
  • Dec 10, 2025 7:04 PM UTC

5 years later I’m still running into needing a round and max function in the RasterExpressionEvaluator.