Ask A Cartographer

Aligning Label to Page Layout

July 20 2010 | 0 comments
Categories: Labeling

I'm looking for a way to programmatically align labels to the edges of the data-frame. I was hoping that ArcPy would allow for something like this, but haven't had any luck finding an easy way to do this. The labels don't have to stay as labels, I'm fine with them being converted to annotation, I just need some way to automate this process. I'd like to be able to determine which side of the data-frame they will align to, and in which order, by their coordinates...


Mapping Center Answer:

It is not going to be possible with labels, but you can do it with annotation. Basically, this just involves moving annotation features to align along the data frame extent. Due to the limited nature of annotation feature handling in python, this cannot be done in python. It is fairly easy to do in ArcObjects for someone who has ArcObjects experience.

If you would like to post a comment, please login.

Contact Us | Legal | Privacy |