Bogue
| Numéro d’ID de bogue | BUG-000160654 |
|---|---|
| Envoi | August 15, 2023 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 2.9 |
| Système d’exploitation | N/A |
| Version du système d’exploitation | N/A |
| Statut | Will Not Be Addressed |
The Raster Calculator tool is not intended for use in Python. The Raster Calculator tool is used to perform Map Algebra using Python in the User Interface, ie ModelBuilder. Map Algebra in Python can be performed natively. Map Algebra does not need to be wrapped inside a geoprocessing tool like the Raster Calculator tool.
Perform Map Algebra like this:
from arcpy.sa import *
arcpy.env.mask ="C:\\temp\\BUG-000160654\\repro\\ManalData\\blkgrp.shp"
ras1 = arcpy.Raster('usgsdem')
ras2 = arcpy.Raster('gfchot')
myras = ras1*ras2
ID de bogue: BUG-000160654
Logiciel:
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support