Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.