UNITED WAY STL ACADEMY
  • Courses
  • Log In
  • Join Free
  • Home
  • Courses
  • GIS Essentials

Analyzing Geographic Patterns

Curriculum

  • 6 Sections
  • 25 Lessons
  • Lifetime
Expand all sectionsCollapse all sections
  • Measuring Distance
    3
    • 1.1
      Taking Absolute Measurement
      10 mins
    • 1.2
      Establishing Relative Measurements
      10 mins
    • 1.3
      Measuring Functional Distance
      10 mins
  • Working with Statistical Surfaces
    3
    • 2.1
      Examining the Character of Statistical Surfaces
      10 mins
    • 2.2
      Working with Surface Data
      10 mins
    • 2.3
      Predicting Values with Interpolation
      10 mins
  • Exploring Topographic Surfaces
    4
    • 3.1
      Modeling Visibility with Viewsheds
      10 mins
    • 3.2
      Mapping Watersheds and Basins
      10 mins
    • 3.3
      Characterizing Water Flow
      10 mins
    • 3.4
      Defining Streams
      10 mins
  • Working with Networks
    7
    • 4.1
      Measuring Connectivity
      10 mins
    • 4.2
      Working with Impedance Values
      10 mins
    • 4.3
      Navigating One-Way Paths
      10 mins
    • 4.4
      Defining Circuitry
      10 mins
    • 4.5
      Working with Turns and Intersections
      10 mins
    • 4.6
      Directing Traffic and Exploiting Networks
      10 mins
    • 4.7
      Working with Networks in GIS
      10 mins
  • Exploring Map Overlay
    3
    • 5.1
      Exploring Basic Overlay Methods
      10 mins
    • 5.2
      Using Advanced Overlay Techniques
      10 mins
    • 5.3
      Understanding Raster Overlay
      10 mins
  • Mastering Map Algebra and Cartographic Models
    5
    • 6.1
      Creating Cartographic Models
      10 mins
    • 6.2
      Understanding Map Algebra
      10 mins
    • 6.3
      Performing Map Algebra Functions
      10 mins
    • 6.4
      Building a Model
      10 mins
    • 6.5
      Testing a Model
      10 mins

Performing Map Algebra Functions

Analyzing Geographic Patterns

Performing Map Algebra Functions

🕐 12 min read
The Big Question

How can you use map algebra to transform raw spatial data into meaningful insights and actionable maps?

Imagine being able to calculate fire risk, map potential flood zones, or identify ideal hiking trails—all by applying mathematical logic to your maps. That’s the power of map algebra: a toolset that turns raw geographic data into answers to real-world questions.

💡 Did You Know?

The term “map algebra” was coined by Dr. Dana Tomlin in the 1980s and revolutionized raster-based spatial analysis in GIS.

Performing Map Algebra Functions

Map algebra powers a lot of the geospatial analyses in GIS, from simple calculations to more involved workflows. It helps you combine raster layers, apply mathematical operations, and create new spatial insights. Whether you’re identifying areas suitable for a hiking trail or mapping flood risks, map algebra can help you turn raw data into maps, reports, and data dashboards that provide valuable insights.

How might combining different layers of spatial data help you answer a real-world question in your community?

Exercising control in cartographic modeling

Modern GIS platforms like ArcGIS Pro and QGIS make map algebra much more accessible than in the early days of GIS, when it required tedious command-line operations or custom programming. Ready-to-use tools like the Raster Calculator walk you through the process, allowing you to:

  • Choose inputs: You can add raster data layers, tables, or constants.
  • Define operations: You use math operators (+, −, *, /) and logical expressions (<,>, AND, OR) to combine data.
  • Visualize results: You can see the output of your operations as you perform them.

As an example of using map algebra, here are steps you might take to map fire risk for an area:

  1. Add rasters for slope and vegetation density.
  2. Use this formula: (Slope > 15) AND (Vegetation > 70).

    The output highlights steep slopes and dense vegetation, which are important factors in assessing fire risk and planning mitigation efforts.

Tip icon
TIP

The use of logical operators, like the ones that appear in the preceding Step 2, simplifies complex queries. When you need to focus on specific conditions such as finding areas with a steep slope AND dense vegetation, logical expressions work great.

What kinds of questions could you answer by combining raster data using logical expressions?

Using local functions

Local functions are the simplest type of map algebra because they work on individual cells without considering neighboring ones. Each cell in the output is calculated independently based on one or more input layers.

Figure 16-2 shows an example of how a local function works, which is by adding two rasters together, cell by cell. Notice how each cell in the output is the sum of corresponding cells from the input rasters; for example:

  • The top leftmost cell in the first raster is 8, and the top leftmost cell in the second raster is 1. Adding the two cells together, the output cell in the top leftmost position becomes 9.
  • This operation is repeated independently for each of the corresponding cells in the raster grids.
A visual representation of raster addition using three grids of numbers. The image shows three grids of numbers arranged horizontally, demonstrating a raster addition operation. The left grid has numbers from 1 to 8, the middle grid has numbers from 1 to 4, and the right grid shows the sum. Highlighted cells show how 8 + 1 = 9.
An example of a local function, with two rasters being added together on a cell-by-cell basis. © John Wiley & Sons, Inc.
Technical Stuff icon
TECHNICAL STUFF

Table 16-1 lists some common types of local functions and what you do with them. The functions listed in the table are primarily for ArcGIS Pro’s Raster Calculator and Map Algebra. Many of the functions also work in QGIS, but QGIS often relies on simpler mathematical expressions instead of named functions.

Want to go deeper? The science behind local, focal, and zonal functions

While local functions operate on single cells, map algebra also includes focal functions (which consider a cell’s neighbors—useful for smoothing or edge detection) and zonal functions (which consider all cells within a defined region or “zone”—helpful for aggregation). Understanding the differences helps you select the right tool for your analysis.

TABLE 16-1 Common Types of Local Functions

Type of Function

Functions

Use

Example

Selection

Con(), SetNull()

Use logical conditions to extract specific values.

Find all cells where land use equals “forest” and elevation > 500 meters.

Trigonometric

Sin(), Cos(), Tan(), Atan()

Perform calculations like sine and cosine.

Useful for advanced mathematical or terrain analysis like modeling solar radiation.

Exponential and logarithmic

Exp(), Log(), Sqrt(), Power()

Handle transformations like squares, cubes, and log base 10.

Often used in scaling or normalizing data.

Reclassification

Reclassify(), Remap()

Change cell values based on rules.

Group elevation ranges into categories like “low,” “medium,” and “high.”

Statistical

Mean(), Median()

Compute mean, median, or other statistics across layers.

Find the average value across several datasets for each cell.

Map Algebra

A set of operations that enables mathematical and logical manipulation of raster data to create new spatial layers and insights.

Local Function

An operation in map algebra where each output cell value is computed independently based on the corresponding value(s) from the input raster(s).

Urban planners use map algebra to identify potential locations for new parks by overlaying population density, land cost, and proximity to green space.

❌ Common Misconception

Map algebra is only for advanced programmers or GIS experts.

✅ The Reality

Modern GIS platforms provide user-friendly tools like Raster Calculator, making map algebra accessible to anyone with basic GIS skills.

How does understanding the difference between local, focal, and zonal functions help you choose the right analysis tool for your project?

  • Map algebra combines mathematical and logical operations with spatial data for powerful analysis.
  • Local functions process each cell independently, enabling fast and flexible data transformation.
⏱ 5 minutes
Activity: Add Two Raster Layers

Practice using a local function to combine two raster datasets in your GIS software.

  1. Open your GIS platform (e.g., QGIS or ArcGIS Pro) and load two raster layers of the same extent (e.g., elevation and rainfall).
  2. Open the Raster Calculator tool.
  3. Enter an addition expression (e.g., "Elevation" + "Rainfall").
  4. Run the calculation and view the output raster—each cell value should be the sum of the respective input cells.

Describe a situation where you would use a local function versus a logical expression in map algebra. How would your approach differ?

0 words Take your time — depth matters more than length
Flashcard

What is a local function in map algebra?

Tap to reveal
Answer

An operation where each output cell value depends only on the values at the same location in the input raster(s).

Flashcard

Give an example of a logical expression used in map algebra.

Tap to reveal
Answer

(Slope > 15) AND (Vegetation > 70) — highlights areas meeting both conditions, such as fire risk zones.

Flashcard

What is the primary purpose of the Raster Calculator tool?

Tap to reveal
Answer

It allows users to perform mathematical and logical operations on raster datasets to generate new spatial outputs.

+50 XP

Which type of map algebra function calculates each output cell value without considering neighboring cells?

Review the “Using local functions” section above to find the answer.
Key Takeaway

Map algebra enables you to combine, analyze, and transform raster data through mathematical and logical operations, providing powerful tools to answer spatial questions and solve real-world problems.

Map algebra can help you turn raw data into maps, reports, and data dashboards that provide valuable insights.

Key Takeaway

Local functions in map algebra process each cell independently, making them ideal for fast calculations and flexible data manipulation in GIS workflows.

How might you use map algebra in a project to address an environmental or urban planning challenge?

0 words
SHIFT

The Shift

  • Map algebra empowers you to analyze spatial data by applying mathematical and logical operations to raster layers.
  • Local functions are straightforward yet powerful, enabling cell-by-cell calculations for rapid data transformation.
  • Modern GIS tools make these advanced analyses accessible to all, not just programming experts.
End of lesson Ready for the next lesson?
Continue to next lesson  →

Leave a Reply Cancel reply

Understanding Map Algebra
Prev
Building a Model
Next

© 2026 United Way STL Academy | Powered by Sejal Learning Systems.

Modal title

Main Content