Skip to main content

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,

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))


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


Hi @egomm

This did indeed solve my problem, thanks a lot!

Cheers,


Reply