+ Reply to Thread
Results 1 to 3 of 3

Thread: How to automatically export multiple maps with quantile symbology?

  1. #1
    Jacob Epstein
    Join Date
    Mar 2012
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default How to automatically export multiple maps with quantile symbology?

    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!

  2. #2
    Barbara Sieg
    Join Date
    Dec 2009
    Posts
    17
    Points
    9
    Answers Provided
    2


    0

    Default Re: How to automatically export multiple maps with quantile symbology?

    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/arcgisdesk...000003p000000/

    Exporting to JPG:
    http://help.arcgis.com/en/arcgisdesk...0000038000000/

    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.

  3. #3

    Join Date
    Apr 2012
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Mosaic to New raster using python

    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

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts