Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Lyr to Group Lyr automation

$
0
0
Hi All,

I have hundreds of .lyr files in "sets of two" within the same folder. Within each of these sets is a polygon layer of a district boundary and a points layer containing relevant locations within that boundary. The naming convention is AK01_District.lyr and AK01_Points.lyr, with each "set" having a unique first 4 characters followed by _District or _Points.

Is there a way automate the grouping of the sets into a group layer based on the layer names?

Thanks for the help!

Relli

Viewing all articles
Browse latest Browse all 2485

Trending Articles