laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 19, 2020 ArcGIS for Desktop
Bug-ID-Nummer BUG-000095702
EingereichtApril 12, 2016
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.3.1
BetriebssystemWindows OS
Betriebssystemversion7.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000095702

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln