Spatial Analysis in GIS: Methods, Examples, and Workflow
Spatial analysis in GIS is the process of examining geographic locations, patterns, relationships, and change to answer a question about place. It goes beyond displaying features on a map. A spatial-analysis workflow can measure proximity, compare overlapping datasets, model terrain, identify clusters, estimate values between sample points, evaluate suitable locations, or predict how conditions change across space and time.
ArcGIS Pro provides tools for both vector and raster analysis. The best method depends on the research question, the geometry and resolution of the input data, the coordinate system, the scale of the study, and the uncertainty that can be tolerated in the result.
This guide explains the main types of spatial analysis, shows how to choose a method, describes a practical ArcGIS Pro workflow, and outlines common mistakes that can undermine an otherwise successful analysis.
What is spatial analysis in GIS?
Spatial analysis uses the location and relationships of geographic data as part of the analysis. A nonspatial table might tell you that a hospital has 200 beds. Spatial analysis can ask whether that hospital is within a reasonable travel time of residents, whether several hospitals are clustered in one part of a city, or which neighborhoods lack access to emergency care.
Spatial analysis can use:
- Vector data: points, lines, and polygons with geometry and attributes.
- Raster data: regularly spaced cells containing values such as elevation, temperature, land cover, or satellite measurements.
- Network data: connected roads, paths, pipelines, or transit routes used to model movement and travel cost.
- Time-aware data: observations with dates, durations, or time intervals used to study change.
A good analysis begins with a specific question. “Where are the best locations for a clinic?” requires different inputs and methods from “Are crime incidents clustered?” or “How much impervious surface lies within each watershed?”
A practical spatial-analysis workflow
A defensible GIS analysis normally follows these stages.
1. Define the question and decision
State what the analysis must produce. Is the output a distance, a count, a probability, a suitability score, a statistically significant cluster, or a map for communication? Define the study area, time period, units, and intended audience.
Avoid starting with a tool name. Starting with “I want to run a buffer” can lead to an inappropriate method. Start with the question and then choose the method that represents the process being studied.
2. Acquire and evaluate the data
Review the source, date, scale, completeness, accuracy, attribute definitions, and licensing of every dataset. Check whether the data represents the phenomenon at the resolution required by the question. A highly detailed map does not automatically contain highly accurate information.
Document the source and processing history. This creates data lineage and helps explain why two analyses using similar-looking datasets produce different results.
3. Prepare the data
Project datasets when distance or area calculations require meaningful linear units. Repair or flag invalid geometries, standardize field values, remove duplicates, clip to a suitable extent, and align raster cell size and snap settings when needed.
Do not overwrite original source data during preparation. Work from copies or derived datasets so each transformation can be reviewed or repeated.
4. Explore patterns before modeling
Map the input data and inspect distributions, outliers, missing values, clusters, and gaps. Calculate basic descriptive statistics. Exploration can reveal that the data is heavily skewed, concentrated along roads, or incomplete in a particular area.
5. Run the analysis
Choose a tool and parameters that match the question. Record the tool, inputs, settings, version, and assumptions. Use a geoprocessing model, Python script, or project documentation to preserve the workflow.
6. Validate and interpret the result
Check the output against known features, independent observations, or a holdout sample. Test how results change when reasonable parameters change. A visually attractive map is not proof that the method is correct.
7. Communicate uncertainty
Explain missing data, positional accuracy, scale, interpolation assumptions, model weights, classification choices, and statistical limitations. A decision-maker should understand both what the output shows and what it cannot establish.
Vector spatial analysis
Vector analysis operates on points, lines, and polygons. It is well suited to discrete features such as buildings, roads, parcels, administrative areas, and service locations.
Proximity analysis
Proximity analysis measures distance or creates zones around features. Common tools include Buffer, Multiple Ring Buffer, Near, Generate Near Table, and Select by Location.
Examples include:
- identifying schools within 500 metres of a proposed road;
- creating a flood-impact zone around a river centerline;
- finding the nearest hospital for each residential point; and
- measuring the distance between monitoring stations and industrial sites.
A buffer distance must have a defensible basis. A 1-kilometre buffer may represent a planning standard, but it may not represent actual walking access. For travel behavior, use a network-based travel-time analysis when road connectivity, speed, barriers, or turn restrictions matter.
Overlay analysis
Overlay combines datasets to reveal relationships. Feature overlay tools include Intersect, Union, Identity, Clip, Erase, and Spatial Join.
For example, intersecting flood polygons with building footprints can identify affected buildings. Overlaying land ownership with habitat polygons can support conservation planning. Spatial Join can attach attributes based on containment, intersection, or proximity.
Before an overlay, confirm that the input layers use an appropriate coordinate system and that the geometry is valid. Small gaps, slivers, and mismatched boundaries can create unexpected output features.
Dissolve and aggregation
Dissolve combines features that share attributes and removes internal boundaries. It is useful for aggregating parcels into ownership areas, census blocks into districts, or land-cover polygons into classes. The output should be interpreted as a generalized aggregation, not as a record of every original boundary.
Selection by location
Select by Location identifies features based on a spatial relationship such as intersecting, within, containing, or being within a distance of another layer. It is useful for creating a targeted subset before further analysis. Always check whether the selected relationship matches the question; “intersects” and “completely within” can return very different results.
Raster and cell-based analysis
Raster analysis represents space as a grid of cells. Each cell stores a value, and operations are performed cell by cell or across neighborhoods. Raster methods are useful for continuous surfaces, classified imagery, terrain, environmental variables, and suitability models.
Raster analysis depends heavily on cell size, alignment, extent, projection, and NoData handling. Two rasters with different grids may be resampled internally or require explicit environment settings. Record the analysis cell size and snap raster whenever the result must be reproducible.
Map algebra and Raster Calculator
Map algebra combines raster values using mathematical, logical, and conditional expressions. For example, a normalized vegetation index can be calculated from red and near-infrared bands, or a binary constraint raster can identify cells that meet a distance and slope requirement.
import arcpy
from arcpy.sa import Raster, Con
arcpy.CheckOutExtension("Spatial" )
slope = Raster(r"C:\GIS_Data\Project\slope.tif")
distance = Raster(r"C:\GIS_Data\Project\distance_to_roads.tif")
suitable = Con((slope < 15) & (distance < 2000), 1, 0)
suitable.save(r"C:\GIS_Data\Project\suitable_cells.tif")
arcpy.CheckInExtension("Spatial")
This example is only meaningful if the slope units, distance units, cell alignment, and thresholds are appropriate. It also requires access to the Spatial Analyst extension.
Reclassification
Reclassify converts continuous or categorical values into a common scale. For example, slope can be grouped into low, medium, and high classes, or land-cover categories can be assigned suitability scores.
Reclassification simplifies data, which makes it useful for modeling but can also hide meaningful variation. Document class boundaries and explain why each class receives its score.
Focal, zonal, and local operations
Focal operations calculate a result from neighboring cells, such as a moving average or local majority. They can smooth noise, identify local variation, or measure neighborhood conditions.
Zonal operations summarize raster values within zones defined by another raster or feature dataset. Examples include mean temperature by district, total rainfall by watershed, or minimum elevation by habitat area.
Global operations use the full raster or a large portion of it. Cost-distance and allocation tools can model movement through a landscape when each cell has a travel cost.
Surface and terrain analysis
A digital elevation model can support several types of spatial analysis:
- Slope: steepness of terrain.
- Aspect: direction a slope faces.
- Hillshade: a visualization of terrain illumination.
- Contour: lines representing equal elevation.
- Curvature: variation in the shape of the surface.
- Viewshed: areas visible from specified observer locations.
- Cut and fill: estimated volume of material removed or added between surfaces.
- Watershed and flow tools: drainage direction, accumulation, streams, and contributing areas.
Terrain outputs are sensitive to the DEM’s resolution, vertical units, interpolation, and conditioning. A hillshade is primarily a visualization, while slope and flow accumulation are analytical surfaces. Do not treat them as interchangeable.
Density and hotspot analysis
Density analysis estimates concentration across space. Point Density, Line Density, and Kernel Density can transform events or features into a continuous surface.
For example, a crime-point dataset can be converted into a density surface to show where events are concentrated. The result depends on cell size, search radius, weighting, and the completeness of reporting. A density map is not automatically a map of risk or causation.
Hot Spot Analysis, including the Getis-Ord Gi* statistic, tests whether high or low values cluster more than expected under a specified spatial relationship. Local Moran’s I can identify clusters and spatial outliers. These methods require careful choices about neighborhood definitions, distance bands, weights, and multiple testing.
A statistically significant cluster indicates an unlikely spatial pattern under the model assumptions. It does not prove that one variable caused another.
Distance and accessibility analysis
Distance analysis can use straight-line distance, cost distance, or network travel. Choose the method that represents the process.
- Euclidean distance measures direct distance through space.
- Cost distance accumulates friction across raster cells, such as slope, land cover, or barriers.
- Path distance can incorporate surface and movement conditions.
- Network analysis follows connected roads, paths, or transit networks and can model travel time, restrictions, and turns.
A straight-line hospital buffer can overestimate access when rivers, highways, or disconnected roads create barriers. A network service area is more appropriate when the decision concerns travel time rather than geometric distance.
Interpolation
Interpolation estimates values at unsampled locations using observations from known points. Common methods include IDW, Kriging, Natural Neighbor, Spline, and Trend.
Use interpolation when the measured variable is reasonably continuous and the sampling design supports the method. Temperature, rainfall, and groundwater elevation may be suitable candidates. A categorical variable such as land-cover class should not normally be interpolated as if it were continuous.
Evaluate the result with cross-validation or withheld observations. Compare predicted and observed values, inspect residuals, and report error measures. A smooth surface can look plausible while being poorly supported in areas far from sample points.
Suitability and multi-criteria analysis
Suitability modeling combines criteria to rank locations. A typical workflow may include:
- Define constraints, such as protected land or steep slopes.
- Convert criteria to comparable scales.
- Reclassify or normalize values.
- Assign weights based on evidence or stakeholder input.
- Combine criteria with Weighted Overlay or Weighted Sum.
- Test sensitivity to different weights and thresholds.
- Validate the highest-ranked areas in the field or against independent data.
Weights are assumptions, not objective facts. Document who selected them and test whether the preferred locations change when the weights change. Keep constraints separate from preferences so a prohibited area is not merely given a low score.
Spatial statistics and exploratory analysis
Spatial statistics accounts for the fact that nearby observations may be more similar than distant observations. Useful methods include spatial autocorrelation, hotspot analysis, cluster and outlier analysis, regression with spatial considerations, and exploratory spatial data analysis.
Begin with descriptive maps and distributions. Then define the conceptualization of spatial relationships: fixed distance, inverse distance, contiguity, k-nearest neighbors, or another defensible rule. Results can change when the neighborhood definition changes.
Avoid interpreting ordinary statistical tests as if observations were independent when spatial autocorrelation is present. Use a method appropriate to the data-generating process and report assumptions, sample size, missing values, and uncertainty.
Temporal and change analysis
Temporal spatial analysis compares conditions across dates or models events through time. Examples include urban expansion, deforestation, shoreline movement, traffic trends, and changing service access.
Before comparing dates, verify that the datasets use comparable definitions, spatial resolution, classifications, and observation conditions. A change in imagery season, sensor, cloud cover, classification method, or boundary definition may look like a real geographic change.
Use temporal metadata and document the comparison interval. When mapping change, distinguish absolute change, percentage change, rate of change, and change in classification.
Scale, resolution, and the MAUP
Results depend on the scale at which data is measured. The Modifiable Areal Unit Problem occurs when changing the size or boundaries of analysis zones changes the results. A relationship that appears strong at the district level may weaken at the neighborhood or parcel level.
Raster resolution creates a similar issue. A 30-metre cell and a 10-metre cell do not represent the same spatial detail, even when both cover the same study area. Choose a scale that matches the process and the decision, and test whether conclusions are stable across reasonable scales.
Avoid false precision. Reporting a result to several decimal places does not make the input data more accurate.
Coordinate systems and units
Use a projected coordinate system with suitable linear units for distance, area, buffers, and network or cost calculations. A geographic coordinate system measures angles in degrees, and a degree does not represent a constant ground distance everywhere.
For global or regional analysis, choose a projection appropriate to the geographic extent and measurement. For local analysis, use the organization’s recommended projected coordinate system and document any geographic transformation.
ModelBuilder, ArcPy, and reproducibility
ArcGIS Pro supports interactive geoprocessing, ModelBuilder, Python notebooks, and standalone ArcPy scripts. Use the simplest tool that meets the need, but preserve the workflow when the analysis will be repeated or audited.
A reproducible record should include:
- source datasets and download dates;
- coordinate systems and transformations;
- processing extent, cell size, and snap raster;
- tool names and parameters;
- classification thresholds and model weights;
- software and extension versions;
- validation methods; and
- limitations and unresolved uncertainty.
ModelBuilder is useful for visual workflows and parameterized tools. ArcPy is useful for loops, batch processing, conditional logic, logging, and integration with other Python libraries. A script should check that inputs exist, avoid overwriting source data, capture geoprocessing messages, and write outputs to controlled locations.
Common mistakes in spatial analysis
Choosing a tool before defining the question
A buffer is not automatically an accessibility analysis, and a density map is not automatically a risk map. Define the process first.
Ignoring projection and units
Distance and area can be materially wrong when a geographic coordinate system is used without considering its units and distortion.
Treating correlation as causation
Spatial co-location can reflect shared exposure, selection bias, missing variables, or the scale of analysis. A map can suggest a hypothesis; it does not prove a causal mechanism.
Failing to inspect the inputs
Missing records, inaccurate boundaries, duplicate points, and inconsistent dates can dominate the result. Map and summarize the inputs before modeling.
Hiding uncertainty
Every model has assumptions. Explain them next to the result instead of presenting a suitability score, interpolated surface, or hotspot map as exact truth.
Using too many classifications
A map with many colors can be difficult to interpret. Use a classification method appropriate to the distribution, label units clearly, and report the break values.
Spatial analysis applications
Urban planning
Analyze land suitability, development constraints, population access, transit coverage, green-space distribution, and growth patterns. Combine parcel, zoning, road, elevation, and demographic data while documenting privacy and scale limitations.
Public health
Study service accessibility, environmental exposures, disease patterns, and health-resource distribution. Protect sensitive locations and avoid implying individual-level conclusions from aggregate data.
Environmental management
Model habitat suitability, watershed conditions, pollution exposure, forest change, erosion risk, and conservation priorities. Include seasonality, uncertainty, and the limits of the observation network.
Business and retail
Analyze customer catchments, competitor proximity, market coverage, delivery areas, and potential facility locations. Use network travel rather than simple circles when movement follows roads.
Emergency management
Identify exposed populations, evacuation access, shelter coverage, hazard overlap, and response-time gaps. Test scenarios and include road closures or changing conditions where relevant.
Frequently asked questions
What are the main types of spatial analysis in GIS?
Common categories include proximity, overlay, raster and map algebra, terrain, density, spatial statistics, interpolation, suitability modeling, network analysis, and temporal change analysis.
What is the difference between vector and raster analysis?
Vector analysis uses points, lines, and polygons. Raster analysis uses a grid of cells and is especially useful for continuous surfaces, imagery, terrain, and cell-based models.
Which ArcGIS Pro extension is required?
It depends on the tool. Many core Data Management and Analysis tools are available with the base ArcGIS Pro license, while Spatial Analyst, Network Analyst, Geostatistical Analyst, Image Analyst, or other extensions are required for specific capabilities. Check the documentation for each tool.
Is spatial analysis the same as mapping?
No. Mapping communicates locations and attributes, while spatial analysis uses geographic relationships, measurements, or models to answer a question. A map can be an input, an output, or a way to inspect the result.
How do I choose the right spatial-analysis method?
Start with the question and the process being modeled. Decide whether the problem concerns distance, overlap, concentration, terrain, prediction, suitability, movement, or change. Then assess whether the data and scale support the selected method.
Why do results change when I change the cell size or study zones?
Changing raster resolution or zone boundaries changes the observations being summarized. This is a scale effect and may reflect the Modifiable Areal Unit Problem. Test reasonable alternatives and report the sensitivity.
Can ArcPy automate spatial analysis?
Yes. ArcPy can run geoprocessing tools, set environments, process many datasets, validate inputs, log messages, and save outputs. Extensions required by a tool must be available in the ArcGIS Pro or Python environment running the script.
Summary
Spatial analysis in GIS turns geographic data into measurements, comparisons, models, and decisions. The strongest workflows connect a specific question to an appropriate method, prepare data carefully, use suitable coordinate systems and scales, validate the result, and communicate uncertainty.
ArcGIS Pro supports a broad range of vector, raster, network, surface, statistical, and temporal tools. Use proximity for distance questions, overlay for relationships between layers, raster analysis for cell-based modeling, network analysis for movement, interpolation for supported continuous variables, and spatial statistics for patterns and clustering.
The tool is only one part of the analysis. The quality of the answer also depends on the data, assumptions, scale, parameters, validation, and explanation provided to the reader.
References
[1] ArcGIS Pro: Spatial analysis in ArcGIS Pro
[2] ArcGIS Pro: An overview of the Spatial Analyst toolbox
[3] Google Search Central: Creating helpful, reliable, people-first content