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.

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?

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
    
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! –  Chad Cooper Apr 21 '11 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. –  James Schek Apr 25 '11 at 16:07
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.