Merge Selected Features

3895
6
06-03-2011 03:00 PM
eddixoncastillo
New Contributor
Hello:

I'm writing a application in C#; i can select features from the map (one layer loaded). but i don't know merging it into a same layer as i perform on ArcMap.
I've read about IEngineEdit, but  i don't know how to use this interface properly.

Also, i saw the "CutPolygonsWithoutSelection" sample, but i don't find how to associate the merge function.

I hope some guidance with this issue.

Thank you for your attention.


(PS: i'm from colombia and i'm still learning english,I apologize for any error in writing )
0 Kudos
6 Replies
LeoDonahue
Occasional Contributor III
0 Kudos
eddixoncastillo
New Contributor
Union  create a new feature but not replacing it the original features
0 Kudos
LeoDonahue
Occasional Contributor III
You're right.

You could look at IConstructMerge and the Shape property of IFeature. 

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/0001/0001000001mp000000.htm
0 Kudos
eddixoncastillo
New Contributor
IConstructMerge  provide "Methods for doing a 3-way merge using two modified versions of a geometry along with the original"

i want with C# implement this (see attachment) ArcMap tool (merge)
0 Kudos
LeoDonahue
Occasional Contributor III
Ok, maybe my hints are too vague.

You didn't see anything in the API related to IFeature that sets the Shape of a feature to something else?

Aside from using the Geoprocessing "merge" tool, how do you think ESRI performs a feature merge behind the scenes using ArcObjects?  Just because there is a tool called "merge" doesn't mean there is an API method called "merge".

Your last hope: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/0001/0001000002rs000000.htm
"Updating Individual Features"
0 Kudos
eddixoncastillo
New Contributor
combining union & cursors maybe works.
Thanks....
0 Kudos