Maps are what people see. Spatial analysis is what makes those maps worth looking at. After more than thirty years in this profession, I can tell you that the moment a GIS stops being a drawing tool and becomes a decision-making tool is the moment someone starts doing real analysis. A pretty map says here is the data. A good analysis says here is what the data means, and here is what you should do.
This guide is the foundation for everything analytical on this site. I’ll explain what spatial analysis is, walk through the main families of techniques, show how to build a sound workflow, and warn you about the traps that quietly ruin otherwise elegant work.

What Is Spatial Analysis?
Spatial analysis is the process of examining the locations, attributes and relationships of features in spatial data to extract meaning, test ideas and support decisions. In plain language: it’s using where things are to understand why things are the way they are and what could happen next.
Three ideas sit at its core:
- Location matters. Where something is influences what it is and what happens to it.
- Proximity matters. Things close to each other tend to be more alike than things far apart. Geographers call this Tobler’s First Law: everything is related to everything else, but near things are more related than distant things.
- Context matters. A feature’s meaning depends on what surrounds it.
If your data has no location, a spreadsheet will do. If location is part of the question, spatial analysis is your tool.
The Questions Spatial Analysis Answers
I group the thousands of possible tasks into six families of questions. When you meet a new problem, ask which family it belongs to, and the right technique usually becomes obvious.
- Where is it? Locating and mapping features.
- What is nearby? Measuring distance, proximity and access.
- What overlaps? Combining layers to find coincidence and conflict.
- What is the pattern? Detecting clusters, trends and hot spots.
- What is the best? Finding optimal sites and routes.
- What if? Modeling scenarios and predicting change.
Before You Analyze: Prepare Your Data
I have never seen a good analysis built on careless preparation. Do these steps first, every time.

- Define the question precisely. Write it in one sentence. Vague questions produce vague answers.
- Choose a suitable projected CRS. Measurements in degrees are meaningless. Use a local, appropriate projection in meters.
- Check data quality: geometry validity, missing values, duplicates, outdated records.
- Match scale and resolution. Don’t combine a 1:1,000,000 dataset with 1-meter parcels and expect precise results.
- Align dates. Make sure layers describe the same time period.
- Keep the originals. Work on copies and record every step.
Core Technique 1: Measurement and Query
The simplest analysis, and still the most used.
- Attribute queries: select features by their properties, such as all roads that are paved and wider than six meters.
- Spatial queries: select features by their location relative to others, such as all schools within a flood zone.
- Measurements: calculate length, area, perimeter, distance and coordinates.
- Summary statistics: count, sum, average, minimum and maximum, often grouped by category or by area.
Don’t underestimate these. A careful query often answers the question without any advanced tool.
Core Technique 2: Buffer and Proximity Analysis
A buffer creates a zone of a given distance around a feature. Buffer a river by 100 meters to define a protection corridor. Buffer a school by 300 meters to define a safety zone. Buffer a hospital by ten kilometers to see its catchment.
Related proximity tools include:
- Near and distance matrix: find the closest feature and the distance to it.
- Multiple-ring buffers: concentric zones at increasing distances.
- Thiessen (Voronoi) polygons: divide space so each location belongs to its nearest point, useful for service areas.
A warning I repeat often: buffers measure straight-line distance, not travel time. For real accessibility use network analysis.
Core Technique 3: Overlay Analysis
Overlay combines two or more layers to produce new information. It’s the signature technique of GIS and the direct descendant of laying transparent sheets on a light table.
- Intersect: keep only the areas where layers overlap.
- Union: combine all areas from both layers.
- Clip: cut one layer using the shape of another.
- Erase (Difference): remove from one layer the area covered by another.
- Dissolve: merge features that share an attribute value.
- Spatial join: transfer attributes from one layer to another based on location.
A classic example: intersect a flood zone layer with building footprints to find which buildings are at risk, then summarize by neighborhood. We explain each tool in detail in Buffer, Clip, Intersect, Union: Overlay Tools Explained.
Core Technique 4: Raster Analysis and Map Algebra
When your data is continuous, you work with cells. Map algebra applies mathematical operations to rasters, cell by cell.
- Reclassification: convert values into new categories (for example, slope into suitable, moderate and unsuitable).
- Local operations: calculations on each cell, such as adding two rasters.
- Focal operations: calculations using a neighborhood, such as a moving average that smooths noise.
- Zonal statistics: summarize raster values inside polygons, such as average elevation per municipality.
- Global operations: distance surfaces and cost distance across the entire raster.
Zonal statistics deserve a special mention. It’s the bridge between raster and vector worlds, and I use it nearly every week.
Core Technique 5: Terrain and Surface Analysis
From a digital elevation model (DEM) you can derive a surprising amount of information:
- Slope and aspect: steepness and direction of slope.
- Hillshade: the shaded relief that makes terrain readable.
- Contours: lines of equal elevation.
- Watersheds and flow accumulation: how water moves across the landscape.
- Viewshed: what can be seen from a given point.
These underpin hydrology, engineering, telecommunications, forestry and hazard studies.
Core Technique 6: Interpolation
Often you have measurements at a limited number of points (rainfall stations, soil samples, noise monitors) and need a continuous surface. Interpolation estimates values at unmeasured locations.
- IDW (Inverse Distance Weighting): simple, fast, assumes nearby points matter more.
- Spline: produces smooth surfaces.
- Kriging: a statistical method that models spatial correlation and also gives an estimate of uncertainty.
No method is universally best. The result depends heavily on your sample density and distribution. We cover these in Interpolation Methods (IDW, Kriging, Spline) Explained.
Core Technique 7: Network Analysis
Many real-world movements follow networks: roads, rails, pipes, rivers. Network analysis uses the connectivity of these networks.
- Shortest or fastest route between points.
- Service areas (isochrones): everything reachable within ten minutes of a location.
- Closest facility: the nearest hospital by actual road travel.
- Location-allocation: the best places for facilities so that demand is served efficiently.
- Vehicle routing: optimizing multi-stop delivery.
Network analysis gives you realistic answers where buffers give only approximations. Read Network Analysis and Route Optimization for the details.
Core Technique 8: Pattern and Cluster Analysis
Is a disease spread randomly or concentrated? Are crimes forming hot spots? Is poverty clustered? These are questions of spatial pattern, and answering them rigorously calls for spatial statistics such as hot spot analysis and spatial autocorrelation. This area is deep enough that it has its own pillar guide: Spatial Statistics for GIS: Complete Guide.
Core Technique 9: Suitability and Multi-Criteria Analysis
One of the most valuable real-world applications: choosing the best location by combining several factors.
The typical workflow:
- Define the objective, for example, the best site for a solar farm.
- List the criteria: slope, solar radiation, distance to roads, distance to grid, land cover, exclusion zones.
- Prepare each criterion as a layer and standardize them to a common scale.
- Assign weights according to importance, ideally with stakeholders.
- Combine the layers, often with a weighted overlay.
- Apply constraints, removing protected or impossible areas.
- Review and validate, visit the top sites, and test how sensitive the result is to different weights.
This method, sometimes called MCDA (multi-criteria decision analysis), is behind countless siting studies. Its honesty depends entirely on how you choose and justify your weights.
A Sound Analytical Workflow
Whichever technique you use, I recommend this sequence:
- Ask a clear question.
- Plan which data and methods you need.
- Prepare and clean the data.
- Analyze step by step, saving intermediate results.
- Validate by checking against known facts, imagery, or field knowledge.
- Interpret what the results mean, and what they do not mean.
- Communicate with clear maps and plain language.
- Document methods, data sources and assumptions so the work can be repeated.
Graphical tools such as the QGIS Graphical Modeler or ArcGIS ModelBuilder help you capture workflows so you can rerun them with new data.
Traps That Quietly Ruin Spatial Analysis
These have caught every one of us at some point.
- The Modifiable Areal Unit Problem (MAUP). Results change depending on how you draw your zones. The same data aggregated by district or by neighborhood can tell different stories.
- Edge effects. Features near the study area boundary lack neighbors, which biases results.
- Scale mismatch. Combining data at very different scales gives false precision.
- Ecological fallacy. Conclusions about areas do not necessarily apply to individuals within them.
- Wrong CRS. Distances and areas computed in an unsuitable projection are simply wrong.
- Spurious correlation. Two maps that look similar do not prove a cause.
- False confidence. A crisp map can hide shaky inputs. Always report uncertainty.
Choosing the Right Tool
You can perform spatial analysis in nearly any GIS environment:
- QGIS with its Processing Toolbox, GRASS and SAGA.
- ArcGIS Pro with the Spatial Analyst, Network Analyst and Geoprocessing tools.
- PostGIS for large-scale vector analysis in SQL.
- Python with GeoPandas, Shapely, Rasterio and PySAL for automation and statistics.
- R with sf, terra and spdep for statistical work.
- Google Earth Engine for planetary-scale raster analysis.
The concepts are the same across all of them. Learn the ideas first, and the tools become interchangeable.
Final Thoughts
Spatial analysis is where GIS earns its reputation. But the best analysts I have known share a particular humility: they question their own results. They ask whether the data is fit, whether the method is appropriate, whether the pattern is real or accidental. They treat a map as an argument that must be defended.
Practice by taking one real question every month and answering it start to finish. In a year, you will think spatially without effort, and that is a skill that changes how you see the world.
Where to go next: dive into Spatial Statistics for GIS: Complete Guide for rigorous pattern analysis, or start with Buffer, Clip, Intersect, Union: Overlay Tools Explained for hands-on tool practice.



