This content has been marked as final. Show 2 replies
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:
Exporting to JPG:
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.
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 :
gp = arcgisscripting.create()
# 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")
# Print error message if an error occurs
Need some help for processing