AnsweredAssumed Answered

What can I expect from ArcPy Geometry .equals method?

Question asked by dazzasmith on Mar 12, 2019
Latest reply on Mar 24, 2019 by Dan_Patterson

My work flow is as follows:

  1. I extract the start and end point geometries from two polylines using the .firstPoint and .lastPoint properties of the ArcPy Geometry class.
  2. Then I compare these points (which should be snapped at one end) with each other using the .equals method in the ArcPy Geometry class, to try to determine which end of the lines are connected to one another.
  3. This works in most cases, but ocassionally fails to find a match.


My question is: what can I expect from using the .equals method, i.e. does attempt to handle floating point precision, or should I adopt an alternative approach?