Change Raster rendering to "composite RGB"

440
1
07-21-2011 05:29 AM
GuillaumeMOCCAND
New Contributor III
Dear all,

i need to load a Raster (jp2) in a mxd but without using lyr files.
here is my code (it works fine)

mxd2 = arcpy.mapping.MapDocument(mxdTemplate)
...
df2 = arcpy.mapping.ListDataFrames(mxd2)[0]
...
addlayer = arcpy.mapping.Layer("c:\toto.jp2")
arcpy.mapping.AddLayer(df2, addlayer, "BOTTOM")
rasterExtent = addlayer.getExtent()
df2.extent = rasterExtent
...
mxd2.saveACopy (nouveauMXD)

but the Raster is rendered "streched" ... i need to get it as it should : in composite RGB.

Any idea about doing this in arcpy ?

Thanks in advance

Guillaume
Tags (2)
0 Kudos
1 Reply
GraceCHUNG
New Contributor
Hi,
Have you found out the solution? I am having the same problem.
I want to add a "tif" with "RGB Composite", not single band image.
Any help will be appreciated.
0 Kudos