Data Models in GIS (Part 2)
Data Models in GIS (Part 2)
Lecture 7
1
Raster Data Models
Characteristics
• Simple 'grid' structure of rows and columns.
• Based on cells or picture elements (pixels).
• Linear feature (e.g. a road) is a contiguous set of cells.
• Resolution based on size of grid (cell) -> the smaller the cell, the higher the
resolution.
• Features are considered homogenous within a pixel.
• Storage increases with the square of the resolution.
2
Raster Data Models
Generic Structure for a Grid
3
Raster Data Model - Grid Cell
• Cell is the basic spatial unit for a grid theme.
Cells are squares (they have equal height and
width).
• Cell locations are referenced by their row and column position. Every cell can
be uniquely identified by its row and column position.
4
Raster Data Model
• A raster data model uses a grid:
• One grid cell is one unit or holds one attribute. Every cell has a value, even if
it is “missing.”
5
The Raster Data Model
• A raster represents a continuous surface,
• But for data storage and analysis, a raster is divided into rows,
7
The Raster Data Model
8
Elements of the Raster Data Model
1) Cell value. Each cell in a raster carries a value, which represents the
2) Cell size. The cell size determines the resolution of the raster data model.
4) Spatial reference. Raster data must have the spatial reference information so
that they can align spatially with other data sets in a GIS.
9
Coordinates for a Raster Cell
10
Types of Raster Data
• Satellite Imagery
• Graphic Files
12
Types of Raster Data – DEM
13
Types of Raster Data - DEM
14
Types of Raster Data - DEM
15
Types of Raster Data - DOQ
• Cell-by-Cell Encoding
• Quad Tree
21
Cell-by-Cell Encoding
22
Run Length Encoding
23
Quad Tree
• The regional quad tree method divides a raster into a hierarchy of quadrants.
The division stops when a quadrant is made of cells of the same value (gray or
diagram, the quadrants are indexed spatially: 0 for NW, 1 for SW, 2 for SE,
and 3 for NE. Using the spatial indexing method and the hierarchical quad tree
structure, the gray cells can be coded as 02, 032, and so on.
(PTO for Example)
24
25
Data Conversion
rasterization,
vectorization.
26
Data Conversion
27
Raster versus Vector
• In a more complex example, this image shows both
raster data and vector data. This image is at normal
size (no zoom).