| Numéro d’ID de bogue |
BUG-000095702 |
| Envoi | April 12, 2016 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS for Desktop |
| Version trouvée | 10.3.1 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 7.0 64 Bit |
| Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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.
Solution de contournement
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.
Étapes pour reproduire
ID de bogue: BUG-000095702
Logiciel: