What is 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. Map Algebra is available through the Spatial Analyst module; an extension of the ArcPy Python site package. As Map Algebra has been integrated in Python, all the functionality of Python and ArcPy and its extensions (modules, classes, functions, and properties) is available to you.

Spatial Analyst tools are accessed through an algebraic format. That is, an object whose name is identified to the left of an equal sign is created based on a tool or operator stated to the right of the equal sign.

from arcpy.sa import *
outRas = Slope("indem")

The above statement calculates the slope for each cell in the indem dataset and creates a Raster object called outRas to store the results. Specific information on importing Spatial Analyst module to utilize Map Algebra can be found at Importing the Spatial Analyst module.

Map Algebra within Python is composed of tools, operators, functions, and classes. For more information on the syntax rules of Map Algebra, refer to the following resources:

Overview of the rules for Map AlgebraWorking with raster objectsThe Raster objectAn overview of Spatial Analyst classesBuilding complex statements
Ältere VersionenÄltere Versionen:

Map Algebra in ArcGIS 10 is very similar in use and syntax to Map Algebra used in prior releases of ArcGIS. Any differences are to take advantage of the integrated Python environment, providing a more powerful modeling experience.

Verwandte Themen


7/10/2012