# intersection points of polygon and polilyne

604
4
05-07-2013 05:58 AM
by
New Contributor

How I can to get intersection points of polygon and polilyne?
I tried to use ITopologicalOperator.intersect and ITopologicalOperator2.IntersectMultidimension methods, but
the methods have returned points of ends of polilyne, but not  intersection points.
Tags (5)
4 Replies
Regular Contributor III
When you call the Intersect method, you must specify the type of intersection you want it to return.  The intersection of a polygon and a polyline will usually be a polyline so you should be passing in esriGeometry1Dimension as the 2nd parameter to the Intersect method.
by
New Contributor
When you call the Intersect method, you must specify the type of intersection you want it to return.  The intersection of a polygon and a polyline will usually be a polyline so you should be passing in esriGeometry1Dimension as the 2nd parameter to the Intersect method.

can we use the Intersect method to get the intersection of a polygon and a polyline? They have different dimensions.I failed when I
try to do this.
Occasional Contributor II
The intersection of a polygon and a polyline can be either a polyline (esriGeometry1Dimension) or a multipoint (esriGeometry0Dimension). depending on which one you pass in as the parameter.  In uvg's case, I think should be multipoint.  Can you provide the code and data so we can see why the output are the end points of the polyline?
by
New Contributor
The intersection of a polygon and a polyline can be either a polyline (esriGeometry1Dimension) or a multipoint (esriGeometry0Dimension). depending on which one you pass in as the parameter.  In uvg's case, I think should be multipoint.  Can you provide the code and data so we can see why the output are the end points of the polyline?

Thank you for your reply. I have solved the problem.Two geometries I use have different spatial references.