If I have a polyline, how do I figure out whether it is self-intersecting? I tried to use ITopologicalOperator.IsSimple Property, but it always returns true.
Are there any ways of doing these kind of topological checks over individual geometries?
|
If I have a polyline, how do I figure out whether it is self-intersecting? I tried to use ITopologicalOperator.IsSimple Property, but it always returns true. Are there any ways of doing these kind of topological checks over individual geometries? |
|||
|
|
I think you can do with with the ITopologicalOperator2 interface:
|
|||||
|
|
The Polyline should be converted to a Polygon, and then the ITopologicalOperator3:get_IsSimpleEx() method can be used Here is the sample code
|
||||
|
|