Select to view content in your preferred language

Cut Geometry method causing multipart feature

1961
10
08-27-2012 11:38 AM
JeffGiesler
Deactivated User
Hey Everyone,
I am trying to use the cut geometry method using the geometry engine. If I cross the feature once with the cutting geometry I get to different features as expected but if I cross the feature twice then I still only get two feature with the one being a multipart feature.  Does anyone know how to fix this or prevent it from happening?  If I am not clear in my explaination let me know and I will draw something to explain it better.
Cheers,
Jeff
0 Kudos
10 Replies
JeffGiesler
Deactivated User
Giri,
I am not sure I understand your question clearly.  ItopologicalOperator is ArcObjects and this is an IOS forum but I will see if I can help you anyway.  I have limited use of this operation but I think this is how it works and this is I have worked with other Itopologicaloperator operations.  First create your topologicaloperator, create an IGoemetry for both you left and right geometry, then run the operation.  I think it should look something like this (not tested) and I haven't worked in ArcObjects in awhile.

IPolyline CuttingLine = (IPolyline)CuttingFeature.Shape:ITopologicalOperator topo = ITopologicalOperator)shape; // IPolygon or IPolygon of the feature you want to cut
IGeometry LeftGeo = null;
IGeometry RightGeo = null;
topo.cut(CuttingLine, ref LeftGeo, ref RightGeo);

Here is the link to the to the API Reference for the operation http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/Cut_Method/002m000003vq....  It can help explain further if you need it.

Hope this helps or you have found your answer.

Cheers,
Jeff
0 Kudos