#Script to create distribution maps for wetland species #Import arcpy and set workspace import arcpy import arcpy.mapping arcpy.env.workspace = r"P:\CoWetlandTools\maps\distribution_maps_Johns_pytest" import arcpy.sa #generate a list speciesList =("Achillea_millefolium", "Acroptilon_repens", "Actinea_osterhoutii") #Create Loop and List to run processing for for species in speciesList: #select counties each species is known to occur arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", "'Achillea_milefolium' > '0'") #Export selected to jpeg mxd = arcpy.mapping.MapDocument(r"CURRENT") arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\Achillea_milefolium.jpg") #clear selected attributes arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "CLEAR_SELECTION") #finished print "Finished"
for species in speciesList: #select counties each species is known to occur arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", " ' " + species + " ' > '0'")
arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\" + species + ".jpg")
#Script to create distribution maps for wetland species #Import arcpy and set workspace import arcpy import arcpy.mapping arcpy.env.workspace = r"P:\CoWetlandTools\maps\distribution_maps_Johns_pytest" import arcpy.sa #generate a list speciesList =("Achillea_millefolium", "Acroptilon_repens", "Actinea_osterhoutii") #Create Loop and List to run processing for for species in speciesList: #select counties each species is known to occur arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", " ' " + species + " ' > '0'") #Export selected to jpeg mxd = arcpy.mapping.MapDocument(r"CURRENT") arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\" + species " + ".jpg") #clear selected attributes arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "CLEAR_SELECTION") #finished print "Finished"
arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", ' " ' + species + ' " > 0')
arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\" + species + ".jpg")
#Script to create distribution maps for wetland species #Import arcpy and set workspace import arcpy import arcpy.mapping arcpy.env.workspace = r"P:\CoWetlandTools\maps\distribution_maps_Johns_pytest" import arcpy.sa #generate a list speciesList =("Achillea_millefolium", "Acroptilon_repens", "Actinea_osterhoutii") #Create Loop and List to run processing for for species in speciesList: #select counties each species is known to occur arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", ' " ' + species + ' " > 0') #Export selected to jpeg mxd = arcpy.mapping.MapDocument(r"CURRENT") arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\' + species + '.jpg") #clear selected attributes arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "CLEAR_SELECTION") #finished print "Finished"
arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", ' " ' + speciesList + ' " > 0')
#Script to create distribution maps for wetland species #Import arcpy and set workspace import arcpy import arcpy.mapping arcpy.env.workspace = r"P:\CoWetlandTools\maps\distribution_maps_Johns_pytest.mxd" import arcpy.sa #generate a list speciesList =("Achillea_millefolium", "Acroptilon_repens", "Actinea_osterhoutii") species = ' ' in speciesList #Create Loop and List to run processing for for species in speciesList: print species #select counties each species is known to occur arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "NEW_SELECTION", ' " ' + species + ' " > 0') #Export selected to jpeg mxd = arcpy.mapping.MapDocument(r"CURRENT") arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\' + speciesList + '.jpg") #clear selected attributes arcpy.SelectLayerByAttribute_management ("counties_edited_datamergetest", "CLEAR_SELECTION") #finished print "Finished"
arcpy.mapping.ExportToJPEG(mxd, r"P:\CoWetlandTools\maps\" + species + ".jpg")