Foundations of Geographical Information Systems
Spatial Data Models
Representing the Real World
Geographic Information Systems (GIS) tackle a fundamental challenge: how to translate our complex, three-dimensional world into a digital format a computer can understand. To do this, we use spatial data models. These are the rules and structures for representing geographic information. The two most common models are vector and raster. Think of them as two different artistic styles for capturing reality: one uses precise lines and shapes, while the other uses a mosaic of colored tiles.
The Vector Model
The vector model represents the world using discrete geometric objects: points, lines, and polygons. It's ideal for features with clear, defined boundaries. If you were drawing a map with a pen, you'd naturally be using a vector approach—a dot for a city, a line for a road, and an enclosed shape for a park.
Each of these geometric types serves a different purpose:
- Points represent single locations, defined by an x,y coordinate pair. They're used for objects like fire hydrants, survey markers, or the epicenter of an earthquake.
- Lines (also called polylines) are ordered sequences of connected points. They represent linear features like roads, rivers, or flight paths.
- Polygons are closed sequences of points that define an area. They're used to represent features with boundaries, such as country borders, property parcels, or lakes.
A key feature of vector data is that each geometric object is a distinct record. You can select a single road or one specific property lot.
But a shape on a map is only half the story. Where does the non-spatial information live? Every vector feature is linked to an entry in an attribute table. This is a simple spreadsheet where each row corresponds to one feature on the map, and each column describes its characteristics.
| FeatureID | Road_Name | Speed_Limit (mph) | Material |
|---|---|---|---|
| 1 | Main St | 35 | Asphalt |
| 2 | Oak Ave | 25 | Asphalt |
| 3 | River Rd | 45 | Gravel |
In this example, the line with FeatureID 1 on the map is Main Street, has a speed limit of 35 mph, and is made of asphalt. This combination of geometry and attributes is what makes vector data so powerful for analysis.
The Raster Model
The raster model takes a different approach. Instead of representing discrete objects, it represents the world as a continuous grid of cells, or pixels. Think of a digital photograph or a television screen. Each cell in the grid has a specific size and contains a single value representing the phenomenon being measured at that location.
This model is perfect for representing data that varies continuously across a landscape, without sharp or well-defined boundaries. Common examples include:
- Elevation: Each cell stores a value for the height above sea level.
- Temperature: Each cell stores the average temperature for its area.
- Satellite Imagery: Each cell stores a value corresponding to the color and intensity of reflected light.
Unlike vector data, a raster dataset doesn't know about individual roads or buildings. It only knows the value within each of its grid cells. To represent a road in a raster, you would see a line of cells with a specific value (e.g., 1 for 'road') while the surrounding cells might have a different value (e.g., 0 for 'not road').
Choosing the Right Model
Neither model is inherently better; they are simply suited for different tasks. The choice depends entirely on what you want to represent and analyze.
| Feature | Vector | Raster |
|---|---|---|
| Represents | Discrete objects with clear boundaries | Continuous surfaces without clear boundaries |
| Best For | Property lines, roads, administrative areas | Elevation, temperature, satellite imagery |
| Precision | High; limited only by measurement | Limited by the size of the grid cell |
| File Size | Smaller for sparse data | Large, and grows with grid resolution |
| Data Structure | Points, lines, polygons with attributes | A simple grid of values |
For example, a city planner mapping out zoning districts and utility lines would use vector data. The boundaries are legally defined and precise. An environmental scientist studying wildfire risk across a mountain range would use raster data, combining layers for elevation, vegetation type, and slope—all continuous phenomena.
Finally, it's worth knowing the common file formats. For vector data, you'll often encounter Shapefiles (a collection of files with .shp, .shx, .dbf, and other extensions) and GeoJSON (a lightweight, text-based format). For raster data, GeoTIFF is a widely used standard that embeds geographic metadata into a standard TIFF image file.
An urban planner needs to map property parcels, which are areas with legally defined, precise boundaries. Which spatial data model would be most appropriate for this task?
Which of the following would be best represented using a raster data model?
Understanding these two fundamental models is the first step in working with spatial data. They provide the framework for nearly all mapping and geographic analysis.
