+ Reply to Thread
Results 1 to 7 of 7

Thread: Merge Selected Features

  1. #1
    eddixon castillo
    Join Date
    Jun 2011
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Default Merge Selected Features

    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 )

  2. #2
    Leo Donahue
    Join Date
    Apr 2010
    Posts
    959
    Points
    232
    Answers Provided
    30


    0

    Default Re: Merge Selected Features

    The keyword you wanted was "union".

    http://help.arcgis.com/en/sdk/10.0/a...009t000000.htm

  3. #3
    eddixon castillo
    Join Date
    Jun 2011
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Default Re: Merge Selected Features

    Union create a new feature but not replacing it the original features

  4. #4
    Leo Donahue
    Join Date
    Apr 2010
    Posts
    959
    Points
    232
    Answers Provided
    30


    0

    Default Re: Merge Selected Features

    You're right.

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

    http://help.arcgis.com/en/sdk/10.0/a...01mp000000.htm

  5. #5
    eddixon castillo
    Join Date
    Jun 2011
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Default Re: Merge Selected Features

    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)
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	merge.png‎
Views:	77
Size:	75.7 KB
ID:	7195  

  6. #6
    Leo Donahue
    Join Date
    Apr 2010
    Posts
    959
    Points
    232
    Answers Provided
    30


    0

    Default Re: Merge Selected Features

    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/a...02rs000000.htm
    "Updating Individual Features"
    Last edited by ldonahue; 06-07-2011 at 09:25 AM.

  7. #7
    eddixon castillo
    Join Date
    Jun 2011
    Posts
    10
    Points
    0
    Answers Provided
    0


    0

    Default Re: Merge Selected Features

    combining union & cursors maybe works.
    Thanks....

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts