Professional Documents
Culture Documents
Vector
uses coordinates to
store the shape of
spatial data objects
A few synonyms for raster
Surface
GRID the ArcInfo raster type
Image (generic) usually relates to satellite imagery
Image (.img) Raster data structure used by Erdas
Imagine, a common image-processing software package
Array more technical term associated with how raster
data are managed by computer programmers
Matrix rarely used because of its association with
mathematics, but it does occasionally come up
Raster Data Model
In the raster data model, the primary data object is the cell
or pixel
You are familiar with these if you have used a digital
camera or viewed a computer monitor
Raster data example
75 70 79 80 78
12 50 80 81 80
15 14 79 78 69
10 12 9 85 80
10 11 10 80 90
Raster Data Model
The raster data model represents the Earths
surface as an array of two-dimensional grid
cells, with each cell having an associated value:
1 2 3 5 8 Cell (x,y)
4 6 8 3 9 Cell value
rows
3 5 3 3 1
7 5 4 3 9
2 2 4 5 2 Cell size = resolution
columns
Raster Data Model
Clarke, K.C., Figure 3.8: GIS data layer as a grid with a large section of missing
data, in this case, the zeros in the ocean off of New York and New Jersey
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:
+
+
+
+
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
0, 2, 1, 6, 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
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
Vector to Raster
Transformations
Quite often, data in the vector and raster models need to
be used together
One dataset is generally transformed to be represented in
the other model, introducing distortion.
Vector Data Model - Advantages
It is a good representation of the world as we see it (our
visual systems automatically segments the world we see by
identifying objects)
The topology of a layer can be fully described and explicitly
stored
It is efficient in terms of data storage
It only uses storage for objects of interest and does not
need to store values for the spaces in between
No jaggy edges (raster has these on any diagonal)
Useful for network analysis and modeling flows of linear
features
Vector Data Model -
Disadvantages
The data structure is more complex
especially when you have fully encoded topology
(e.g., using the arc-node model)
It is more difficult to write computer programs to
manipulate data
Spatial analysis operations can be more difficult
Raster Data Model -
Advantages
The data structure is much simpler
It is easy to overlay and combine layers
It is easy to apply equations to the entire surface
(map algebra)
Example: New_GRID = GRID_1 + GRID_2
Raster data is easily integrated with satellite
(and other remotely-sensed) data
Writing programs to manipulate raster is easier
It is easy to do simulation modeling due to
uniform size and shape of grids (i.e. it is easy to
define uniform modeling units)
Raster Data Model -
Disadvantages
Because a value must be stored for each and
every cell in a grid, there is a great deal of
redundancy and large storage requirements
Location can be captured only as accurately as
the resolution allows, which is determined by the
cell size
Spatial analyses that are based on topological
relationships are not well supported by this model
Changing resolution (i.e., cell size) can be
complicated
Which Data Model Should You
Use?
This can depend upon the type of data youre using
and what goals youre trying to achieve
Vector model: discrete features such as rivers,
roads, buildings, and political boundaries
Raster model: continuous features such as
elevation
Usually your choice is determined by data
availability
Common Examples of Raster Data
Elevation (Digital Elevation Model DEM)
Derivatives: slope angle, slope aspect,
topographic moisture potential, terrain shape
(e.g., convex or concave)
Climate data (modeled or interpolated
temperature and precipitation)
Landcover (usually derived from classified
remotely sensed imagery)
Raster Example: Sea Surface Temperature
http://weather.unisys.com/surface/sst.gif