I have a multipart feature and I need to convert it to a singlepart feature.
Couldn't find any code sample.
I wonder if i could get some help from you?
I'm working with ArcGIS 10 and c#.
I have a multipart feature and I need to convert it to a singlepart feature.
Couldn't find any code sample.
I wonder if i could get some help from you?
I'm working with ArcGIS 10 and c#.
ArcGIS has a tool: "Multipart to SinglePart".
This can be called with Python or JScript:
import arcgisscripting //not needed for JScript
gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx")
gp.MultipartToSinglepart_management("", Output_Feature_Class)
Alternately VBScript:
gp.AddToolbox "C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx"
gp.MultipartToSinglepart_management "", Output_Feature_Class
Not sure how to do it with C#, but I guess you could call one of those languages with it.
You can use Geoprocessor object to access geoprocessing tools (in this case MultipartToSinglepart).
Here's a Getting started article about using Geoprocessor.