Spatial Data Structure
Spatial Data Structure
Examples:
Just like a library needs an indexing system to quickly find books, GIS needs spatial data
structures to quickly store, retrieve, and analyze spatial information.
Without a good data structure, GIS becomes slow, inefficient, and inaccurate.
4. Categories of Spatial Data Structures
There are two primary types of spatial data structures based on how they model space:
1- Spaghetti Model
The spaghetti model is the simplest vector structure, where each spatial feature is stored
independently as a sequence of points.
Characteristics:
Limitations:
Example: Two adjacent land parcels are stored as two separate polygons, even if they share
the same boundary—this boundary is stored twice..
2-Topological Model
Definition: This model includes both the geometry of spatial features and the topology—the spatial
relationships among those features.
Advantages:
Limitations:
Example: A road network where intersections (nodes) and roads (arcs) are topologically
connected, allowing for shortest path analysis. Software Example: ArcInfo’s Coverage model.
3-Object-Oriented Model
This model treats spatial features as "objects" that encapsulate both geometry and attributes, and
allows for relationships between them (inheritance, aggregation).
Key Features:
Advantages:
Each cell:
Structure: Each cell in a 2D grid has a uniform size and contains a single value.
Advantages:
o Easy to process and analyze using matrix operations.
o Suitable for remote sensing and environmental modeling.
Limitations:
o Large file sizes, especially with high resolution.
o Lower spatial precision for discrete features (e.g., buildings).
Example: A digital elevation model (DEM) where each cell represents elevation in meters.
How It Works:
Instead of storing every cell, RLE stores the value and number of times it repeats in a
row.
Advantages:
Saves storage in homogeneous areas.
Faster processing for some operations.
Limitations:
Less effective for heterogeneous data (frequent value changes).
3-Quad-Tree Structure
Definition: A hierarchical raster structure that recursively subdivides space into quadrants (sub-
grids).
How It Works:
Large homogeneous areas are stored as single blocks.
Heterogeneous areas are subdivided further for more detail.
Advantages:
Efficient data compression.
Adaptive resolution.
Fast spatial indexing.
Applications:
Image processing, terrain modeling, and large-scale mapping.
5. Key Differences between Vector and Raster Structures
Feature Vector Raster
Data Type Discrete Continuous
Storage Coordinates Matrix/grid
Precision High Depends on resolution
Best For Roads, parcels, utilities Elevation, land cover, imagery
File Size Smaller (for sparse data) Larger (for detailed surfaces)
8. Conclusion
Spatial data structures are the foundation of Geographic Information Systems (GIS). They
provide the digital blueprint for how spatial features are represented, stored, and analyzed.
Whether it is through vector models (for precise, discrete features) or raster models (for
continuous phenomena), choosing the right structure is crucial for efficiency, accuracy, and
usability of GIS data.
By understanding and applying suitable spatial data structures, GIS professionals can ensure
powerful spatial analysis, robust data management, and effective decision-making in various real-
world applications.
References
1. Chang, K. T. (2016). Introduction to Geographic Information Systems (8th Edition). McGraw-Hill Education.
2. Longley, P. A., Goodchild, M. F., Maguire, D. J., & Rhind, D. W. (2015). Geographic Information Systems and Science
(4th Edition). Wiley.
3. Burrough, P. A., & McDonnell, R. A. (1998). Principles of Geographical Information Systems. Oxford University Press.
4. Heywood, I., Cornelius, S., & Carver, S. (2011). An Introduction to Geographical Information Systems (4th Edition).
Pearson Education.
5. Lo, C. P., & Yeung, A. K. W. (2007). Concepts and Techniques of Geographic Information Systems (2nd Edition).
Prentice Hall.