how to get self intersection polygons in arcobjects could you please tell me how to get already i got self intersection for polyline features as per below code but it is not working on polygon features
if (intF.Shape.GeometryType == esriGeometryType.esriGeometryPolyline) { IPolyline pline = intF.Shape as IPolyline; ITopologicalOperator3 ptopo = pline as ITopologicalOperator3; esriNonSimpleReasonEnum reasen = esriNonSimpleReasonEnum.esriNonSimpleSelfIntersections; ptopo.IsKnownSimple_2 = false; if (!ptopo.get_IsSimpleEx(out reasen)) { if (reasen == esriNonSimpleReasonEnum.esriNonSimpleSelfIntersections) { selfinterfind = true; } } if (selfinterfind == true) { dt.Rows.Add(intF.OID, intF.Class.AliasName, "", "Self Intersection Found"); } }
أكثر...
if (intF.Shape.GeometryType == esriGeometryType.esriGeometryPolyline) { IPolyline pline = intF.Shape as IPolyline; ITopologicalOperator3 ptopo = pline as ITopologicalOperator3; esriNonSimpleReasonEnum reasen = esriNonSimpleReasonEnum.esriNonSimpleSelfIntersections; ptopo.IsKnownSimple_2 = false; if (!ptopo.get_IsSimpleEx(out reasen)) { if (reasen == esriNonSimpleReasonEnum.esriNonSimpleSelfIntersections) { selfinterfind = true; } } if (selfinterfind == true) { dt.Rows.Add(intF.OID, intF.Class.AliasName, "", "Self Intersection Found"); } }
أكثر...