+ Reply to Thread
Results 1 to 7 of 7

Thread: how to crop (cut) a map using ArcObjects???

  1. #1
    Abdulrahman Alqasim
    Join Date
    May 2010
    Posts
    30
    Points
    0
    Answers Provided
    0


    0

    Default how to crop (cut) a map using ArcObjects???

    hello everyone
    im new to the field of Arcobjects.
    i need to create a tool for clipping (crop) a map with predefined dimensions. the user has to select only where to crop.
    1- the user press button
    2- rectangle is drawn over the map with specific dimension
    3- the user can move the rectangle and then press OK
    4- a new layer contains the cropped map is added

    please guys i need a hand on this issue. at least give guide lines
    thank you

  2. #2
    Abdulrahman Alqasim
    Join Date
    May 2010
    Posts
    30
    Points
    0
    Answers Provided
    0


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    guys, any clue, hint or link is much appreciated

  3. #3
    James Crandall
    Join Date
    Apr 2010
    Posts
    770
    Points
    179
    Answers Provided
    42


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    Quote Originally Posted by abudahim View Post
    guys, any clue, hint or link is much appreciated
    What is the application type (ArcEngine, ArcServer, ArcMap)?

    I can probably give some help regarding numbers 1-3, but I don't understand what you want to do with #4 at all.

  4. #4
    Abdulrahman Alqasim
    Join Date
    May 2010
    Posts
    30
    Points
    0
    Answers Provided
    0


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    hi jamesfreddyc
    im using Arcmap
    i want to add new layer or save the new map as a tiff file. it doesnt matter. the important thing is that i want to give the user the ability to crop the map and save it as a file.

    i really appreciate ur help
    thank you

  5. #5
    James Crandall
    Join Date
    Apr 2010
    Posts
    770
    Points
    179
    Answers Provided
    42


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    Quote Originally Posted by abudahim View Post
    hi jamesfreddyc
    im using Arcmap
    i want to add new layer or save the new map as a tiff file. it doesnt matter. the important thing is that i want to give the user the ability to crop the map and save it as a file.

    i really appreciate ur help
    thank you
    I have not attempted to implement this functionality, but here's a sample from ArcGIS v9.0 that would probably work for you...

    http://edndoc.esri.com/arcobjects/9....CD127F83B8.htm

  6. #6
    Alexander Gray
    Join Date
    Apr 2010
    Posts
    685
    Points
    201
    Answers Provided
    32


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    Putting a map object inside a layer object is not really possible (for a number of reasons.) I suggest you look at the IExport interface. There is a sample on how to create a jpeg from activeView (a lot of the same methods would be required for tiff.) There are methods for specifying the rectangle (extent) of the active view.

  7. #7
    Abdulrahman Alqasim
    Join Date
    May 2010
    Posts
    30
    Points
    0
    Answers Provided
    0


    0

    Default Re: how to crop (cut) a map using ArcObjects???

    jamesfreddyc thank you for the link.. i will try it


    agray1: yes u r right, but i mean to add tiff image as layer ( not map) . sorry im still beginner

+ Reply to 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