Hello
I'd like to add several raster files (format: .ecw) from one folder with several subfolders to my mxd-file. It works fine with the following code:
workspace = r"C:\Workspace" #Workspace
...
...
... #Code
... import arcpy, os
...
... mxd = arcpy.mapping.MapDocument("CURRENT")
... df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
...
... walk = arcpy.da.Walk(workspace)
...
... for dirpath, dirnames, filenames in walk:
... for filename in filenames:
... arcpy.mapping.AddLayer(df, arcpy.mapping.Layer(os.path.join(dirpath, filename)))The Problem is, that after adding them like this, they appear with a symbology "stretched values along a color ramp" but they should be drawn as "RGB composite".
Can someone help me?