How to automatically export multiple maps with quantile symbology?

1373
2
03-20-2012 10:40 AM
JacobEpstein
New Contributor
Hello, I am a relatively new ArcGIS user and I have a question about automating a tedious join/symbology classification/export operation. I have a very simple shapefile to which I join a bunch of fields. I then need to have these new fields symbolized with a specific color ramp using a five quantile classification and then exported to a JPG at a certain resolution with a specific filename.

First of all, is this even possible? If so, is it possible to sort of "preload" the software manually with the layers and page layout I want and then have it loop in such a way that it merely changes the symbology field value and exports, over and over? There is a legend but since the labels will remain the same (quantile 1, quantile 2, etc) I can just leave that as a hardcoded graphic.

I'm envisioning something like this: I add my two layers (one is a fill-free layer of US states to serve as an outline for the other layer) and then join one big file to the layer that needs symbology. This program I don't know how to write would then loop through and change the symbology field value to the next column I've added, and changes the classification back to a 5-class quantile (it always reverts to Jenks for some reason). Then since the legend is hardcoded it just needs to save this new map of field Beta1 as a jpg and then switch to Beta2, Beta3, etc.

Does this make sense? Is it possible? Is it really complicated? Thanks for your help!
0 Kudos
2 Replies
BarbaraSieg
Esri Contributor
You can update layer properties with python scripting, but only as a blanket override of all layer properties at once. This means you will need a layer file on disk or another layer in a map (could be the same map or a different map) with the desired symbology to be applied to the target layer. First try it out manually to see if you get the desired results in the layer properties > symbology > Import command before writing a script. See the Help docs for the Python syntax and examples:
  http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/UpdateLayer/00s30000003p000000/

Exporting to JPG:
  http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ExportToJPEG/00s300000038000000/

If applying a layer file to the existing layer doesn't do what you need, then you won't be able to do it with Python scripting, but you can always do it with ArcObjects code.
0 Kudos
ayoubabod
New Contributor
Hello!!
I am trying to mosaic several aster gdem file using python in arcgis 10.
i was found a script to do that for two aster but i have got more than 10 files to merge.
the script i used is :


import arcgisscripting
gp = arcgisscripting.create()

try:
    # Set local variables
      InRaster = "C:/Users/mycomputer/Desktop/dem/ASTGTM2_N27W001_dem.tif;C:/Users/LASHSIG1/Desktop/dem/ASTGTM2_N27W002_dem.tif"
      OutWorkspace = "C:/Users/mycomputer/Desktop"

    # Process: MosaicToNew

      gp.MosaicToNewRaster_management(Inraster, OutWorkspace, "all_raster.tif", "#", "16_BIT_UNSIGNED", "#","1", "BLEND", "MATCH")

except:
    # Print error message if an error occurs
    gp.GetMessages()

Need some help for processing
0 Kudos