laptop and a wrench

不具合

The arcpy.MakeRasterLayer_management tool returns the following error, "ERROR 000670: output <value> is same as input <value>."

最後に公開された状態: August 19, 2020 ArcGIS for Desktop
不具合 ID 番号 BUG-000095702
送信されましたApril 12, 2016
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.3.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン7.0 64 Bit
ステータス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.

対処法

Specify a different name for the new raster layer. The layer can then be renamed, and the table of contents (TOC) can be updated using the following code:arcpy.MakeRasterLayer_management(in_raster="raster", out_rasterlayer="rasttmp") mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] for lyr in arcpy.mapping.ListLayers(mxd, "*", df): if (<a href="http://lyr.name" target="_blank">lyr.name</a> == "rasttmp"): <a href="http://lyr.name" target="_blank">lyr.name</a> = "raster" arcpy.RefreshTOC()This is a relatively inconvenient method to have a raster layer by the same name as the input.

再現の手順

不具合 ID: BUG-000095702

ソフトウェア:

  • ArcGIS for Desktop

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

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

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

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

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

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

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