2

I've set up data driven pages to create a series of maps, but I'm running into a problem which seems like it would be quite common!

I've made some tables (as graphics) using ArcPy and the technique described an Answer to another Question: Adding Table to Layout View using ArcPy?.

However, with a series of maps, sometimes these graphics will cover my points layer.

Does anybody know how to (at least) flag when a point is hidden by my tables?

asked Jun 17, 2014 at 0:28
3
  • Does your layout have room outside the map window so you could put your table there? Commented Jun 17, 2014 at 1:02
  • @Fezter I want to put the tables on top of the map. Commented Jun 17, 2014 at 2:06
  • @PolyGeo Yes, your answer is the technique I've used. I'm using ArcGIS10.1 Commented Jun 17, 2014 at 2:11

1 Answer 1

2

The way I would approach this is:

  1. Get the corners of your table graphic in page units (perhaps call them tXmin,tYmin,tXmax,tYmax) - you should be able to get these from your script that adds your table as a graphic either straightaway or with a slight enhancement to it.
  2. Get the locations of any point features that you want to avoid in map units - perhaps use arcpy.da.SearchCursor to do this
  3. Use the technique from another Q&A (Convert point XY to page units XY using arcpy?) to convert these points in map units to page units.
  4. Test each point in page units to see whether it is within the corners of your table graphic rectangle (tXmin,tYmin,tXmax,tYmax)
answered Jun 17, 2014 at 2:39
2
  • @user3697700 Excellent! Be sure to upvote the asker and answerer of gis.stackexchange.com/questions/21514/… if you found that code useful Commented Jun 17, 2014 at 5:01
  • I will do when I get 15 reputation!! Commented Jun 17, 2014 at 5:30

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.