Definition Query Loop for One Layer

1093
0
07-10-2014 08:19 AM
AndrewKeith1
New Contributor

I am trying to set multiple definition queries for one layer based on one field using python.  ie.  I have a City layer with a field that holds the city name.  I want a copy of the layer in an MXD with the Definition query set for each value in the City field.  So essentially, I have one source layer, with a copy of the layer as many times as there are values in the City field.  The query would look like this: CITY = 'Atlanta'  Any help is appreciated.  Thanks.

0 Kudos
0 Replies