I have over 1500 NITF files that I need to be able to modify the layer display and symbology of programmatically from within ArcMap. I need to set the properties outlined in red below:

enter image description here enter image description here

I've looked through the arcpy docs and it doesn't look like these properties are exposed - honestly, I didn't expect them to be. I have a feeling I can get to them through ArcObjects. Anyone had any experience/luck modifying these properties programmatically?

2 Answers 2


I believe stretched raster symbology is rendered via RasterStretchColorRampRenderer, so interfaces implemented by this class are a good start. The renderer is assigned to your raster layer through IRasterLayer.Renderer.

  1. Stretch type: IRasterStretch.StretchType
  2. High/low stretch values: IRasterStretchMinMax

Orthorectification is controlled by a different set of interfaces, pertaining to the raster data source itself. IRaster2.GeodataXform can point to a geodata transformation class implementing ISensorXform which contains the orthorectification properties you see in the layer's property page.


If you need to apply the same symbology to every image, you can setup one layer with the appropriate symbology, save it to a layer file, and then invoke the arcpy.ApplySymbologyFromLayer_management to apply the symbology.

However, if you are really trying to deal with 1500 NITF files, you may consider using a Mosaic Dataset. You can apply an appropriate "stretch" to each NITF in the Mosaic Dataset and apply ortho rectification across all the images.

  • Nice James, that gets me about halfway there and changes the Symbology...but what about the Display properties...looking now to see if arcpy lets me get to those, and I will also investigate the Mosaic Dataset. Thanks! Commented Apr 21, 2011 at 17:47
  • The Mosaic Dataset is designed to apply ortho rectification (i.e. the display properties) en masse. At ArcGIS 10.1, you will be able to apply an ortho-on-the-fly raster function using a GP tool. I don't know of anything for 10.0 off the top of my head. Commented Apr 25, 2011 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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