Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible in python to create a selection set based on the extent from a Data Driven Page (DDP)? I have a layout view with a map and a graph. The graph is set to only plot the selected set of features. Right now I am paging through the DDP and drawing the selection box manually. I would like to add code to have the DDP also select point FC within the feature extent.

share|improve this question
What type of data are you using to define the data driven pages? If you are using polygons, you should be able to iterate through each feature and use that as a basis for select by location. – Jay Guarneri Feb 27 '13 at 19:51
No I am not using polygons but I could and then the select by location would be simple to implement. – Jenny Mar 5 '13 at 20:51

If your layers have a field that matches a ddp name or page number you can set a definition query on your feature class to include or exclude features that match the ddp

share|improve this answer
I have a field in the point FC that I believe might work with this recommendation. Thanks. – Jenny Mar 5 '13 at 20:50

Your Answer


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.