Geographical Information SystemUnit 614 min read
Spatial Analysis in GIS: Raster, Vector, Network & Surface Modeling
Unit 6 of Geographical Information System covers core spatial analysis techniques—raster vs. vector operations, network analysis, surface modeling, and terrain analysis—with real-world applications in logistics, hydrology, and urban planning, plus exam-focused comparisons and worked examples.
Core Concepts: What is Spatial Analysis?
Spatial analysis in GIS refers to the process of examining spatial data to detect patterns, relationships, and trends. Unlike traditional statistical analysis, it focuses on location, distance, direction, and spatial relationships between features. Key operations include:
- Overlay analysis (combining layers)
- Buffering (creating zones around features)
- Proximity analysis (measuring distances)
- Terrain analysis (elevations, slopes, viewsheds)
1. Raster-Based Spatial Analysis
Raster data represents the world as a grid of cells (pixels), where each cell holds a value (e.g., elevation, land cover). Common operations:
Key Operations
| Operation | Description | Example |
|---|---|---|
| Local Operations | Single-cell calculations (e.g., slope from DEM). | Calculating slope from a DEM grid. |
| Neighborhood Operations | Multi-cell calculations (e.g., focal mean, moving window). | Smoothing a noisy elevation dataset. |
| Zonal Operations | Aggregating values within a zone (e.g., average rainfall in a watershed). | Calculating mean temperature in a district. |
| Global Operations | Entire-raster calculations (e.g., reclassification). | Converting elevation to land-use classes. |
How It Works: Slope Calculation from DEM
- Input: Digital Elevation Model (DEM) raster.
- Process: Use the slope formula for each cell:
- Output: Slope raster (degrees or percentage).
graph LR
A["DEM Raster"] -->|"Slope Algorithm"| B["Slope Raster"]
B --> C["Steep Areas\n(>30°)"]
B --> D["Gentle Slopes\n(<10°)"]Advantages & Limitations
| Advantages | Limitations |
|---|---|
| Fast for large datasets. | Loses precision at edges (blocky). |
| Simple for terrain analysis. | Topology (e.g., rivers) is implicit. |
| Supports continuous data. | Large file sizes for high resolution. |
2. Vector-Based Spatial Analysis
Vector data represents features as points, lines, or polygons with attributes. Key operations:
Key Operations
| Operation | Description | Example |
|---|---|---|
| Overlay Analysis | Combining vector layers (e.g., union, intersect). | Finding flood-prone areas (river + elevation). |
| Buffering | Creating zones around features at a fixed distance. | 500m buffer around schools for catchment areas. |
| Proximity Analysis | Measuring distances between features. | Nearest hospital to each village. |
| Topological Operations | Analyzing adjacency, connectivity, or containment. | Identifying contiguous forest patches. |
How It Works: Buffer Analysis for Pathao Delivery Zones
- Input: Pathao delivery partner locations (points) + customer addresses (points).
- Process: Create a 1km buffer around each partner.
- Output: Areas where customers can order without additional delivery fees.
Advantages & Limitations
| Advantages | Limitations |
|---|---|
| Precise for discrete features. | Slow for large datasets. |
| Supports topology. | Complex for continuous data (e.g., terrain). |
| Small file sizes for sparse data. | Overlay operations can be computationally intensive. |
3. Network Analysis
Network analysis models connected systems (e.g., roads, rivers, utilities) to solve pathfinding, connectivity, or flow problems.
Key Operations
| Operation | Description | Example |
|---|---|---|
| Shortest Path | Finds the optimal route between two points. | Google Maps route from Pokhara to Chitwan. |
| Service Area | Defines areas reachable within a time/cost threshold. | Ncell tower coverage zones. |
| Closest Facility | Locates the nearest service (e.g., hospital, ATM). | Finding the nearest blood bank in Kathmandu. |
| OD Cost Matrix | Calculates costs (time/distance) between all origin-destination pairs. | Daraz delivery cost matrix for Kathmandu. |
How It Works: NTC Bus Route Optimization
- Input: Bus stops (points) + road network (lines) with travel times.
- Process: Use Dijkstra’s algorithm to find the fastest route from New Bus Parking to Kathmandu University.
- Output: Optimal path with estimated travel time (e.g., 45 minutes).
4. Surface Modeling
Surface modeling represents continuous phenomena (e.g., elevation, temperature) using:
- Raster: Regular grid (DEM).
- Vector: Triangulated Irregular Network (TIN).
Key Techniques
| Technique | Description | Example |
|---|---|---|
| DEM (Raster) | Elevation data as a grid. | Terrain analysis for hydrology. |
| TIN (Vector) | Irregular triangles for precise surfaces. | Detailed slope analysis for landslides. |
| Contour Lines | Lines of equal elevation. | Topographic maps for hiking trails. |
| Viewshed Analysis | Identifies visible areas from a viewpoint. | Siting a mobile tower for Ncell coverage. |
How It Works: Flood Risk Mapping for Bagmati River
- Input: DEM + river polygon + rainfall data.
- Process:
- Calculate slope from DEM.
- Identify low-lying areas (slope < 5°).
- Overlay with river buffer (500m).
- Output: Flood-prone zones for evacuation planning.
In the Real World
eSewa & Kathmandu Traffic Routes
- Idea Used: Network analysis (shortest path).
- How: eSewa’s partner apps (e.g., Pathao, HamroBus) use GIS to calculate the fastest route for deliveries or public transport, avoiding traffic jams. For example, a Pathao rider’s app dynamically reroutes based on real-time traffic data from NTC cameras.
Ncell Tower Placement
- Idea Used: Viewshed analysis + surface modeling.
- How: Ncell uses DEM data to model terrain and viewshed analysis to determine optimal tower locations that maximize coverage while minimizing interference from hills. A tower in Chandragiri might be placed higher to cover Kathmandu Valley despite surrounding mountains.
Daraz Delivery Logistics
- Idea Used: Buffer analysis + OD cost matrix.
- How: Daraz uses 1km–3km buffers around warehouses to define delivery zones. Their OD cost matrix calculates delivery fees based on distance and terrain (e.g., hilly areas in Pokhara cost more than flat areas in Lalitpur).
Nepal Electricity Authority (NEA) Grid Planning
- Idea Used: Surface modeling (DEM) + proximity analysis.
- How: NEA uses DEM data to model terrain for power line routes, avoiding steep slopes (which increase construction costs). Proximity analysis helps identify the nearest substations to new residential areas in Bhaktapur.
Exam Tip: How to Score Full Marks
- Define Clearly
- Always start with precise definitions (e.g., "Raster analysis operates on a grid of cells where each cell holds a single value...").
- Example: For "surface modeling", define it as "the process of representing continuous phenomena (e.g., elevation) using either raster (DEM) or vector (TIN) structures."
Compare Raster vs. Vector
- Use a table (as shown above) to contrast operations, advantages, and use cases. Examiners love structured comparisons.
Link to Real-World Examples
- For network analysis, mention Pathao/Daraz delivery routes or NTC bus optimization.
- For surface modeling, cite flood risk mapping (Bagmati River) or Ncell tower siting.
Show Worked Steps
- For buffer analysis, write:
"Step 1: Input layer = school locations (points). Step 2: Buffer distance = 500m. Step 3: Output = polygon layer showing catchment areas."
- For slope calculation, include the formula and a DEM → slope raster flowchart.
- For buffer analysis, write:
Avoid Vague Statements
- ❌ "GIS is used everywhere."
- ✅ "In Nepal, eSewa uses network analysis to optimize delivery routes, while NEA applies surface modeling to plan power lines along cost-effective terrain."
Visuals = Extra Marks
- Sketch a simple flowchart (e.g., DEM → slope → flood risk) or label a real map (e.g., Pathao delivery zones). Even a rough diagram with annotations can boost your score.
Practice Questions with Model Answers
Q1: Define raster-based analysis. How does it differ from vector-based analysis? [5+5]
Model Answer: Raster-based analysis in GIS involves processing spatial data stored as a grid of cells (pixels), where each cell contains a single value (e.g., elevation, land cover). Operations include local (e.g., slope), neighborhood (e.g., focal mean), and zonal (e.g., average rainfall in a watershed) calculations.
Key Differences:
| Feature | Raster Analysis | Vector Analysis |
|---|---|---|
| Data Structure | Grid of cells (e.g., DEM). | Points, lines, polygons (e.g., roads, rivers). |
| Precision | Loses precision at edges (blocky). | High precision for discrete features. |
| Operations | Slope, aspect, viewshed. | Buffering, overlay, network analysis. |
| Use Case | Terrain, remote sensing. | Urban planning, logistics. |
| Example | Calculating slope from a DEM. | Finding flood zones by overlaying rivers and elevation. |
Visual:
Q2: Explain how network analysis is used in transportation logistics. Provide an example. [5]
Model Answer: Network analysis in GIS models connected systems (e.g., roads, railways) to solve problems like route optimization, service area definition, and facility location. Key techniques include:
- Shortest Path: Finds the optimal route between two points (e.g., Google Maps).
- Service Area: Defines reachable zones within a time/cost threshold (e.g., Ncell tower coverage).
- Closest Facility: Locates the nearest service (e.g., nearest hospital to a village).
Example: Pathao Delivery Optimization
- Input: Pathao partner locations (points) + road network (lines with travel times).
- Process:
- Use shortest path to assign orders to the nearest available rider.
- Apply service area to define delivery zones (e.g., 1km radius per partner).
- Output: Reduced delivery time and fuel costs. Visual:
Q3: Describe surface modeling in GIS. How is it used in environmental analysis? [5+5]
Model Answer: Surface modeling in GIS represents continuous phenomena (e.g., elevation, temperature) using:
- Raster: Digital Elevation Model (DEM) as a grid.
- Vector: Triangulated Irregular Network (TIN) for precise surfaces.
Key Techniques:
- DEM: Elevation data for terrain analysis.
- Slope/Aspect: Derived from DEM to study land stability.
- Viewshed: Identifies visible areas from a viewpoint (e.g., tower placement).
- Contour Lines: Represent elevation changes on maps.
Environmental Applications:
- Flood Risk Mapping:
- Input: DEM + river data.
- Process: Identify low-lying areas (slope < 5°) near rivers.
- Output: Evacuation zones for Bagmati River.
- Landslide Prediction:
- Input: DEM + rainfall data.
- Process: Combine steep slopes (>30°) with high rainfall zones.
- Output: High-risk areas for early warnings.
- Wildfire Management:
- Input: DEM + vegetation data.
- Process: Model fire spread using slope and wind direction.
- Output: Evacuation routes and firebreaks.
Visual:
Based on the TU BCA syllabus for Geographical Information System (CACS477), unit 6.
Discussion
Loading…