Testing identical/equal geometries

Hello,

Is there any node to test if two geometries are geometrically identical/equal, although not necessarily the same instance?

In the screenshot below, I am comparing two points with the same coordinates. The == node returns false, while the Equals node returns true. On the other hand, both nodes return false when checking two identical lines. I am looking for a node which will always return true given each of these input pairs.

There is a similar thread here, which is specific for points, but the idea here is to extend it to any geometry.

Many thanks,
John

Try the “Geometry.IsAlmostEqual” node, it’s intended for just that scenario.

1 Like

Thank you Dimitar, that seems to work. I wonder why it is called “Almost” Equal, perhaps to handle precision issues?

John