Build Raster Attribute Table (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Adds a raster attribute table to a raster dataset or updates an existing one. Raster attribute tables can only be built for single band raster datasets that have a pixel type of integer. It is not possible to build a raster attribute table for a raster dataset that has a pixel type of 32-bit floating point.
Usage tips
This tool will add a raster attribute table to a raster dataset or update the existing one.
If you want to delete an existing table and create a new one, check the overwrite check box. A new raster attribute table will be created.
If you have an existing table and you do not check the overwrite check box, the table will be updated. No fields will be deleted, but the values in the table will be up to date.
It is not possible to build a Raster Attribute Table for a raster dataset that is a pixel type of 32 bit floating point.
The following environment setting affects this tool: current workspace.
Command line syntax
An overview of the Command Line window
BuildRasterAttributeTable_management <in_raster> {NONE | OVERWRITE}
Parameter | Explanation | Data Type |
<in_raster> |
The input raster dataset.This must be a raster dataset with only a single band. It is not possible to build a raster attribute table for a raster dataset that has a pixel type of 32-bit floating point. |
Raster Layer |
{NONE | OVERWRITE} |
This allows you to overwrite any existing raster attribute table that might exist.
|
Boolean |
BuildRasterAttributeTable c:/Redlands_data/Redlands.tif
Scripting syntax
About getting started with writing geoprocessing scripts
BuildRasterAttributeTable_management (in_raster, overwrite)
Parameter | Explanation | Data Type |
in_raster (Required) |
The input raster dataset.This must be a raster dataset with only a single band. It is not possible to build a raster attribute table for a raster dataset that has a pixel type of 32-bit floating point. |
Raster Layer |
overwrite (Optional) |
This allows you to overwrite any existing raster attribute table that might exist.
|
Boolean |
# Create the geoprocessing object import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:/redlands_data" gp.BuildRasterAttributeTable_management("redlands.tif","#")