laptop and a wrench

不具合

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

最後に公開された状態: March 27, 2015 ArcGIS for Desktop
不具合 ID 番号 NIM084408
送信されましたSeptember 5, 2012
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
プログラム言語C#
オペレーティング システムWindows OS
オペレーティング システムのバージョン7
ステータスWill Not Be Addressed

参考情報

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.

対処法

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.

再現の手順

不具合 ID: NIM084408

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動