Raster Data Models - 2
Raster Data Models - 2
G.M.W.L. Gunawardena
Department of Town and Country Planning
Spatial Data Models
• Raster
Uses individual cells in a
matrix, or grid format to
represent real world
entities
A Few Synonyms for Raster
Distance Interpolation
Density
Viewshed
Buffers 1-7
Cell Size & Resolution
• The size of the cells in the raster data model
determines the resolution at which features can be
represented
• The resolution can have an effect on which features
are represented in what locations:
1 point = 1 cell
+
+
+
+
https://pro.arcgis.com/en/pro-
app/2.8/help/data/imagery/supported-raster-dataset-file-
formats.htm
Rules for Assigning Cell Values
Cell values can be assigned to cells according to some set of rules,
and selecting those rules differently can also effect the representation
of features:
“Boundary Problem” Handled by Mixed Pixels
Flat File
Vector-based line
4753456 623412
4753436 623424
4753462 623478
4753432 623482
4753405 623429
4753401 623508
4753462 623555
4753398 623634
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 10, 10, 1
0 0 0 0 1 1 1 1 0 0 0000000000
0 0 1 1 1 1 1 1 0 0 0000000000
0 0 1 1 1 1 1 1 0 0 0000111100
0 0 1 1 1 1 1 1 0 0 0000111100
0 0 1 1 1 1 1 1 0 0 0011111100
0 0 0 0 0 0 0 0 0 0 0011111100
0 0 0 0 0 0 0 0 0 0
0011111100
0011111100
0000000000
Problem: too much redundancy 0000000000
103 values
Raster Data Storage –
Run Length Encoding
This approach takes advantage of patterns in the data, taking
advantage of the repetition of values in a row:
0 0 0 0 0 0 0 0 0 0
header 10,10,1
0 0 0 0 0 0 0 0 0 0
0, 10
0 0 0 0 1 1 1 1 0 0 0, 10
0 0 0 0 1 1 1 1 0 0 0, 4, 1, 4, 0,2
0 0 1 1 1 1 1 1 0 0
row 0, 4, 1, 4, 0,2
0 0 1 1 1 1 1 1 0 0
by 0, 2, 1, 6, 0,2
0 0 1 1 1 1 1 1 0 0
0, 2, 1, 6, 0,2
0 0 1 1 1 1 1 1 0 0
row 0, 2, 1, 6, 0,2
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0, 2, 1, 6, 0,2
0, 10
0, 10 45 values
There is a tendency towards spatial autocorrelation; for nearby
cells to have similar values - values often occur in runs across
several cells
Raster Data Compression Models:
Block Encoding
1 1 2 2
3 3 2 2 NW NE SE SW
? ? ?
3 3 3 3
? ? ? ?
ROOT
1 1 2 2
1 1 2 2
3 3 2 2 NW NE SE SW
1 2 3
3 3 3 3
2 2 3 3
Raster Data Model - Advantages