jnunnali

Trying to run SelectByAttributes in python for a list of fields

Discussion created by jnunnali on Feb 29, 2012
Latest reply on Mar 1, 2012 by jnunnali
I am having problems attempting to run the SelectByAttributes function for multiple fields automatically.  In my shapefile I have multiple columns which I am attempting to select the same values from individually and then exporting a jpeg with the selected values from each of the separate columns as a jpeg.  The script is functioning for a single column but I want to code the list of columns into the SelectByAttributes function and then name the exported jpeg with the current column name.  I am trying to avoid having to create individual shapefiles as I don't need the shapefiles.

Any suggestions are greatly appreciated.

Outcomes