Python: Determine feature classes within geographic boundary and copy to geodatabase

342
1
04-11-2017 03:12 PM
ErikBrawner
New Contributor

I have a geodatabase with hundreds of feature classes (contours) that are broken into individual feature classes forming a grid over a county wide area. I am wondering if there is a method (python script) to list the feature classes within the database that intersect/are within a defined geographic boundary (specific municipality boundaries)? Which I would then have copied to a new geodatabase. 

0 Kudos
1 Reply
DarrenWiens2
MVP Honored Contributor

Quick and dirty, you can compare Extent objects returned by Describe.

More detailed, you'd have to run an intersect or selection and check if it returned anything.

Of course, the easy answer is to find the grid layer and use that.

0 Kudos