Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't recall every having an issue with this method, but I am now. As I understand IRelationalOperator.Equals, vertex orientation shouldn't affect equality and if I take a polyline and reverse orientation, IRelationalOperator.Equals should still return true.

However, I am not usually seeing this: IRelationalOperator.Equals usually returns false although occasionally it will return true after a ReverseOrientation() (very strange--I'm seeing this maybe 1 out of 20 calls).

Is my understanding of this method correct? If so, is this a bug or is there something wrong with my implementation?

IPolyline polyline1; 
IPolyline polyline2; 

//...other code

IRelationalOperator relop = polyline1 as IRelationalOperator;
Trace.WriteLine(relop.Equals(polyline2 as IGeometry));
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.