Skip to main content
Solved

Subtracting two unknown values from each other

  • July 20, 2017
  • 3 replies
  • 71 views

Forum|alt.badge.img

Hello there,

I'm having a difficult time with subtracting two unknown measurements of line features with each other.

In short, I'm calculating the lengths of two overlaying features (lay1 and Lay2), and I want to check for all values that when subtracted from each other, is smaller than 5.

Everything is working perfectly, except where I'm stuck, is in a tester transformer where I added the following (seemingly incorrect) info in:

@Value(Lay1_Length)-@Value(Lay2-Length) > 5

Is there a different way I should create this expression?

Kind Regards,

Best answer by ebygomm

Make sure you are in the Arithmetic editor not the text editor. Your left value in the tester should look something like this

@Evaluate(@Value(lay1_length)-@Value(lay2_length))

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • July 20, 2017

Make sure you are in the Arithmetic editor not the text editor. Your left value in the tester should look something like this

@Evaluate(@Value(lay1_length)-@Value(lay2_length))


takashi
Celebrity
  • July 20, 2017

Another check point. Does a single feature have both Lay1_Length and Lay2_Length attributes?


Forum|alt.badge.img

Hi @egomm

This did indeed solve my problem, thanks a lot!

Cheers,