Lecture 7
Lecture 7
Lecture 7
Outline
❖ Background
❖ Raster Data Model
sequence of cell
❑ Areas are a sequence of
interconnected cells
t
Raster Representation
Legend
Cultivated Area
Forest
Pond
Settlement
Open Area
Value
❖ It is an item of information stored in a layer for each
pixel or cell
❖ Cells in the same zone have the same value
Location
❖ Generally location is identified by an ordered pair of
coordinates (row and column numbers) that identify
the location of each unit of geographic space in the
raster
❖ Usually the true geographic location of one or more
corners of the raster is also known
Runlength Encoding
❖ Values often occur in runs across several cells
❖ Spatial auto-correlation exists - a tendency for nearby things to be
more similar than distant things
❖ In runlength encoding, data are entered in pairs, first runlength and
then value
❖ Thematic maps storage sizes get reduced using run length encoding
❖ Some raster GIS packages have the capability to handle run length
encoded files
Value point encoding
❖ Cells are assigned position numbers starting in the upper left corner
proceeding from left to right and from top to bottom
❖ The position no for end of each run is stored in the point columns.
The value for each cell in the run is in the value column
COLUMNS
0123456789
ROWS
0
1
2
A
3
4
B
5
6
7 D
8 C
9
Full Raster Encoding (100 values) Run Length Encoding (54 values)
MAP Value Point Encoding (32 values)
COLUMNS VALUE LENGTH ROW VALUE POINT
Rows 0 1 2 3 4 5 6 7 8 9 A 10 0 A 23
0 A A A A A A A A A A A 10 1 B 29
1 A A A A A A A A A A A 4 2 A 32
2 A A A A B B B B B B B 6 2 B 39
3 A A A B B B B B B B A 3 3 D 43
4 D D D D B B B B B B B 7 3 B 49
5 D D D D D B B B B B D 4 4 D 54
6 D D D D C C C C C C B 6 4 B 59
7 D D D D C C C C C C D 5 5 D 63
8 D D D D C C C C C C B 5 5 C 69
9 D D D D C C C C C C D 4 6 D 73
C 6 6 C 79
D 4 7 D 83
C 6 7 C 89
D 4 8 D 93
C 6 8 C 99
D 4 9
C 6 9
INDUSTRIAL 0 1
210 211
commercial
Residential 20 21
Detached
212 213
a b
RURAL 2 3
RESIDENTIAL
22 23
MULTI UNIT
THE QUADTREE REPRESENTATION
C. Scematic Representation D. Table of Attribute
of the Quadtree
MAP Quadtree Levels
ATTRIBUTES
(Root) 1 2 3
(Leaf) 0 Industrial
3 1 Industrial
2 Residential
0 2
1 20 Residential, Detached
21 Services
23 210 Commercial
22
20 21 211 Commercial
Source: Demers, Michael. N. (2000). 2nd Ed. Fundamentals of Geographic Information Systems. p. 107. fig. 4.13 (d).
Raster Data Structures/Models
❑ Advantage
❑ Simple data structure
❑ Location-specific manipulation of attribute data
is eas
❑ Many kinds of spatial analysis and filtering may
be use
❑ Mathematical modeling is easy because all
spatial entities have a simple, regular shap
❑ The technology is chea
❑ Many forms of data are available
Source: Principles of Geographic Information Systems. p 70
y
❑ Disadvantage
❑ Large data volumes
❑ Using large grid cells to reduce data volumes
reduces spatial resolution; loss of information
❑ Crude raster maps are inelegant though graphic
elegance is becoming less of a problem
❑ Coordinate transformations are difficult & time
consuming unless special algorithms &
hardware are used and even then may result in
loss of information or distortion of grid cell
shape.