Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Raster toolset > Tools

Build Raster Attribute Table (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

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

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.

  • NONE — Existing raster attribute tables will not be overwritten. This is the default.
  • Overwrite — Existing raster attribute tables will be overwritten.

Boolean
Data types for geoprocessing tool parameters


Command line example

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.

  • NONE — Existing raster attribute tables will not be overwritten. This is the default.
  • Overwrite — Existing raster attribute tables will be overwritten.

Boolean

Data types for geoprocessing tool parameters


Script example

# Create the geoprocessing object
import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/redlands_data"
gp.BuildRasterAttributeTable_management("redlands.tif","#")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.