Select to view content in your preferred language

Python Script to select features by location and export to individual feature class

3059
2
07-19-2010 07:28 AM
KevinCressy
Emerging Contributor
I have a polygon file GDB feature class and a polyline feature class.

I would like to select the line features that intersect with each of my polygon features and then export these features to a new polyline feature class with a unique name taken from the attributes of the polygon features.

What I am really trying to do is create tiles of my polyline feature class.

I am sure this can be easily done in Python however I am struggling to work this out.

Does anyone know of an existing script that can do this?

Any help would be appreciated.

regards,

Kevin
0 Kudos
2 Replies
CraigMalkmes
Deactivated User
Sorry, just wanted to bump this post because I am attempting nearly the exact same thing. Not sure how to handle this in Python.

Have you made any progress on this Kevin?  I've looked at looping gp.searchcursor with gp.selectbylocation/attribute, however it seems that a 3rd party library is needed for this task. I'm pretty sure that Select By Location isn't quite appropriate
0 Kudos
LoganPugh
Frequent Contributor
This is pretty much the same question as asked in this thread, with some good answers by "Snoop".
0 Kudos