laptop and a wrench

Erro

Labels in stretch renderer are not applied correctly when setting the renderer of a raster layer using a LYR file.

Última Publicação: March 27, 2015 ArcGIS for Desktop
Número de ID do Erro NIM084408
EnviadoSeptember 5, 2012
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS for Desktop
Versão encontrada10.0
Idioma do programaC#
Sistema OperacionalWindows OS
Versão do Sistema Operacional7
StatusWill Not Be Addressed

Informações Adicionais

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solução Provisória

After setting IRasterLayer::Renderer property with the IRasterRenderer reference obtained from the LYR file,e.g.rasterLayer.Renderer = rasterRenderer;... cast the IRasterRenderer reference returned by IRasterLayer::Renderer to IRasterStretchColorRampRenderer to adjust the labels of the raster renderer using the LabelHigh and LabelLow properties of IRasterStretchColorRampRenderer:e.g.rasterRenderer = rasterLayer.Renderer; //see note belowrasterStretchColorRampRenderer = rasterRenderer as IRasterStretchColorRampRenderer;rasterStretchColorRampRenderer.LabelHigh = rasterStretchColorRampRenderer.LabelHigh + "ft";rasterStretchColorRampRenderer.LabelLow = rasterStretchColorRampRenderer.LabelLow + "ft";Note: The user must first assign the renderer to the RasterLayer to get a new reference to IRasterRenderer from rasterLayer.Renderer before applying this change. The first reference to IRasterRenderer obtained from the LYR file is correct and does not need any adjustments. It is not until the first reference to IRasterRenderer is assigned to the RasterLayer that the renderer breaks and needs the adjustments.

Etapas para Reproduzir

ID do Erro: NIM084408

Software:

  • ArcGIS for Desktop

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download