Hi Folks,
The following arcpy script adds a raster image to the TOC:
It adds images successfully but defaults them all to an unacceptable symbology.
Attachment 23085
Attachment 23086
Any suggestions on how to get the images to load with appropriate colors, i.e. grey scale or rgb?
Thanks,
Scott
The following arcpy script adds a raster image to the TOC:
Code:
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
r = arcpy.mapping.Layer('C:/myimage.sid')
arcpy.mapping.AddLayer(df, r, "TOP")
Attachment 23085
Attachment 23086
Any suggestions on how to get the images to load with appropriate colors, i.e. grey scale or rgb?
Thanks,
Scott