I have two polylines and would like to find the intersection(s) using ArcObjects / VB.NET.
I'm using the following code:
Dim topoOp As ITopologicalOperator = TryCast(pTestPoly2, ITopologicalOperator)
topoOp.Intersect(TryCast(pTestPoly1, IGeometry), ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry0Dimension)
Dim pOutPointCol As IPointCollection = TryCast(topoOp, IPointCollection)
In the resulting IPointCollection I get all the vertices of the input pTestPoly2, although there should be one intersection of the two polylines. What's wrong with this approach?
Any help or sample code would be appreciated.