i wonder how i can add a raster layer to a remote (not the current) mxd file with arcpy. I need to not use a lyr file for that.
For vector Layer i have the following lines working fine :
mxdPath = "D:\FormationSpecialisee\IGN_IFI\doc1.mxd" mxd = arcpy.mapping.MapDocument(mxdPath) layer = arcpy.mapping.Layer(fcADD) arcpy.mapping.AddLayer(df, layer , "AUTO_ARRANGE")
but it seems to not work for Raster Layer.
Thanks in advance.