Sunday, 25 October 2015

polygon Self intersection find in arcobjects


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");
}
}



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...