laptop and a wrench

Bogue

An error occurs when attempting to save the output from a Spatial Analyst Math tool if it is executed after the Zonal Statistics tool in a Python script.

Dernière publication: November 13, 2014 ArcGIS for Desktop
Numéro d’ID de bogue BUG-000082964
EnvoiNovember 3, 2014
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.2.2
Système d’exploitationWindows OS
Version du système d’exploitation7
StatutNon-Reproducible

Informations supplémentaires

The script has some errors. The line for setting overwrite output data should be: env.overwriteOutput = True

Solution de contournement

Use the syntax exported by Mode lBuilder. The syntax includes an additional parameter for the output raster (out_raster). For example:<a href="http://arcpy.gp" target="_blank">arcpy.gp</a>.ZonalStatistics_sa(in_zone_data, zone_field, in_value_raster, out_raster, {statistics_type}, {ignore_nodata})<a href="http://arcpy.gp" target="_blank">arcpy.gp</a>.Minus_sa(in_raster_or_constant1, in_raster_or_constant2, out_raster)

Étapes pour reproduire

ID de bogue: BUG-000082964

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement