Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to get the real extent of a rotated data frame in map units from the Layout View using ArcObjects. I've checked previous discussions on the subject:

How do I obtain the envelope of a data frame in Layout?

How can I transform layout page units to map units?

but it seems there was no final answer on how to get corner coordinates for a rotated data frame. Also, the tool provided in the above post does not recognize rotated data frames. It is a bit confusing as even if you rotate the data frame in ArcGIS, the extent, indicated in the Data Frame Properties, remains unchanged.

Is there a simple way to get the real extent directly from ArcObject, or do I need to calculate these coordinates using map scale, size of the data frame etc..? Any help would be appreciated.

share|improve this question

2 Answers 2

Doesn't ArcMap.Document.ActiveView.Extent gives the extent of the data frame? Maybe you can go through IActiveView.Extent Property.

share|improve this answer
    
Both return the unrotated envelope (i.e. same values regardless the rotation). –  jan_b Jan 15 '13 at 10:52
    
Maybe you are trying to get a layer's extent, that is rotated. In that way, you can go through with : help.arcgis.com/en/sdk/10.0/ArcObjects_NET/ComponentHelp/… –  Emi Jan 15 '13 at 10:58

Ok, the question has already been asked: ArcGIS 10 creating a shape file from current dataframe extents in layout view and has been answered by npeihl and Kirk Kuykendall. My fault I have missed it in my initial search, credits go to npeihl and Kirk.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.