laptop and a wrench

Error

The Python script "arcpy.BuildRasterAttributeTable_management" does not work with intermediate rasters.

Última publicación: June 7, 2019 ArcGIS for Desktop
Número de ID del error BUG-000122177
EnviadoMay 6, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS for Desktop
Versión encontrada10.6.1
EstadoKnown Limit

Información adicional

The input raster is the result of the Int function. The Int function generates a function raster dataset, not in memory raster dataset. The Python script "arcpy.BuildRasterAttributeTable_managementI()" does not take function raster dataset as input. The function raster dataset needs to save to a physical raster dataset or a in memory raster dataset to be used in the Python script "arcpy.BuildRasterAttributeTable_managementI()".

Solución alternativa

To create an in_memory copy of the raster :

int_rast.save("in_memory/tempfile.tif")

 

or

 

print(int_rast)

arcpy.BuildRasterAttributeTable_management(int_rast)

As well as providing printed output to the console, the print statement has the effect of creating a TIF file in the subject workspace.

 

 

Attached are example workarounds in ArcMap 10.6.1 (python 2.x)and ArcGIS Pro (python 3.x).

Pasos para reproducir

ID del error: BUG-000122177

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga