Skip To Content

Essential Map Algebra vocabulary

Available with Spatial Analyst license.

Understanding the following list of terms is essential for gaining a complete understanding of Map Algebra. The definitions below will help you when reading the Map Algebra topics.

TermDescription

Map Algebra

Map Algebra is a simple and powerful algebra with which you can execute all Spatial Analyst tools, operators, and functions to perform geographic analysis.

The power of Map Algebra lies in the ability to combine several tools into a single statement to represent complex interactions. For example, outRas = Slice(EucDistance(ExtractByAttributes("inlanduse" == 5)), 10)).

Map Algebra tool syntax

Any Spatial Analyst tool that outputs a raster takes on an algebraic form. For example, outRas = Slope("indem").

The few tools in the extension that do not output rasters require the output to be specified within the tool in the parentheses. For example, Contour("indem", "outcontours").

Operators

Operators allow mathematical operations to be performed on rasters and scalars. Map Algebra operators also exist in Python. Numbers can be directly input and a number is returned. For example, outVar = 5 + 6.

When processing rasters, the rasters are cast as raster objects and a raster object is returned. For example, outRas = Raster("input1") + Raster("input2").

Spatial Analyst classes

Classes in Map Algebra are used for defining certain input parameters for specific tools. Classes are used when the input parameter has more than one argument. Using classes for parameters allows you full access to the individual arguments to query, alter, and add to the parameter.

Raster object

A Raster object references a raster. A raster object is either created by casting a raster dataset or returned from executing a Spatial Analyst Map Algebra expression. The raster object has properties and methods that can be used for further analysis.

Related topics