Classify

Available with Image Analyst license.

Available with Spatial Analyst license.

Summary

Classifies a raster dataset based on an Esriclassifier definition file (.ecd) and raster dataset inputs.

Discussion

For more information about how this function works, see the Classify raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

Syntax

Classify (raster1, {raster2}, classifier_definition)
ParameterExplanationData Type
raster1

The input raster to be classified.

Raster
raster2

An optional raster dataset to incorporate into the classifier, such as a segmented image, multispectral image, or elevation data, used to generate a more robust classification definition for your dataset.

The raster dataset for this parameter must match the one used to create the input Esri Classifier Definition file.

Raster
classifier_definition

The path to the Esri Classifier Definition file (.ecd) that contains the statistics and other classification information for the specific dataset, classifier, and chosen attributes.

(The default value is None)

String
Return Value
Data TypeExplanation
Raster

The classified raster object.


In this topic