Make Image Server Layer: output goes where? MakeImageServerLayer_management

658
0
12-01-2010 05:35 PM
JerryGarcia
Occasional Contributor II
The following script runs successfully, but no output is added to arcmap or arcgis explorer desktop. 

Any suggestions?

Can I save the output to a layer file via code or script?

##====================================
####Usage: MakeImageServerLayer_management in_image_service out_imageserver_layer 
##                                       {template} {ID;ID...} {mosaic_method} 
##                                       {order_field} {order_base_value} {lock_rasterid}
    
try:
    import arcpy
    
    arcpy.env.workspace = r"C:/workspace"
    input1 = "http://splitboard/ArcGIS/services/imageryData_Mosaic/ImageServer"
    
    arcpy.MakeImageServerLayer_management(input1, "mdlayer", "431778.367783651 4583563.68601919 432331.485840777 4583563.68601919", "1;2;3;4",\
                                          "LockRaster", "#", "#", "1")

    print arcpy.GetMessages()
    
except:
    print "Make Image Server Layer example failed."
    print arcpy.GetMessages()
0 Kudos
0 Replies