I have used ITopologicalOperator for getting common Area of two polygons but the result is not correct. May anyone please tell me how to get the common area of two features.
//Make Topological operator of geometry here ITopologicalOperator pTopoOperator = (ITopologicalOperator)pGeometry; //intersect of the above topo operator with another geometry IGeometry pGeometry1 = pFeature1.Shape as IGeometry; IGeometry pGeomResult = pTopoOperator.Intersect(pGeometry1, esriGeometryDimension.esriGeometry2Dimension); //Typecasted to area viz. common area IArea pCommonArea = (IArea)pGeomResult; double dblCommonArea = pCommonArea.Area; The Area value in dblCommonArea is not coming correct.
أكثر...
//Make Topological operator of geometry here ITopologicalOperator pTopoOperator = (ITopologicalOperator)pGeometry; //intersect of the above topo operator with another geometry IGeometry pGeometry1 = pFeature1.Shape as IGeometry; IGeometry pGeomResult = pTopoOperator.Intersect(pGeometry1, esriGeometryDimension.esriGeometry2Dimension); //Typecasted to area viz. common area IArea pCommonArea = (IArea)pGeomResult; double dblCommonArea = pCommonArea.Area; The Area value in dblCommonArea is not coming correct.
أكثر...