I use this code to find intersect of 2 polygon
void CreatePolylineFromExistingGeometries(ESRI.ArcGIS.Geometry.IPolygon pPolygon1,
ESRI.ArcGIS.Geometry.IPolygon pPolygon2)
{
//Build a new polyline by intersecting two existing polygons.
ESRI.ArcGIS.Geometry.ITopologicalOperator2 pTopoOp2 = pPolygon1 as
ITopologicalOperator2;
//Simplify.
pTopoOp2.IsKnownSimple_2 = false;
pTopoOp2.Simplify();
ESRI.ArcGIS.Geometry.IPolyline pPoly = pTopoOp2.Intersect(pPolygon2,
ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry1Dimension) as
IPolyline;
//pPoly is the new generated polyline.
}
but when i check pPoly ( new polyline generated) then the properties IsEmpty of pPoly is true so i can't show pPoly in map.When i change esriGeometry1Dimension to esriGeometry2Dimension and return IPolygon then i can show Polygon intersect of 2 polygon. But i want to use polyline more than polygon intersect. So how to fix this problem?