Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Using the bit of code below adds the raster catalog footprint polygon layer.

mxd = arcpy.mapping.MapDocument("Current")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
addOrtho2011 = arcpy.mapping.Layer(r"P:\Mapping\Data\Orthos.gdb\Orthos_2011")
arcpy.mapping.AddLayer(df, addOrtho2011, "TOP")

enter image description here

I can't figure out what else I have to do to add the actual ortho part of the raster catalog. Any suggestions?

Cheers.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Your raster catalog is displaying as a wireframe due to a setting on the layer properties which is described here.

This setting does not appear to be accessible to ArcPy so as a workaround you could change the scale after adding it so that it is under the threshold set.

However, I think a better solution is to check the box on the layer properties so that wireframes do not show at all (which will be unwise if too many) and then Save As layer File so that you can add the layer from a layer file as per the code example here.

share|improve this answer
    
The Layer file solution worked. Thanks! –  dchaboya Feb 1 '13 at 22:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.