davezhang

Find the intersect points between a polyline and and a circle

Discussion created by davezhang on Oct 18, 2011
Latest reply on Dec 5, 2011 by modybsystematics-co-il-esridist
Hi, everyone

I need to find the way to get the intersect points between a polyline and and a circle using ArcObjects 10,

my C# codes something like this:

ITopologicalOperator topo = (ITopologicalOperator)baseline;
IGeometry intersects = topo.Intersect(circle, esriGeometryDimension.esriGeometry0Dimension);
IMultipoint multipoint = (IMultipoint)intersects;
IPointCollection Pts = (IPointCollection)multipoint;

but the function Intersect clash all the time, it gave me error like this:

Err: Exception from HRESULT: 0x80040585

can anyone help? thank you very much.

Outcomes