Lecture 6 Raster Analysis
Lecture 6 Raster Analysis
Ellen-Wien Augustijn
2017
RASTER ANALYSIS (PART I)
Measurements Overlay
Location Arithmetic operators
Distance Comparison operators
Area size Logical operators
Classification Conditional expressions
User controlled Decision tables
Automatic
2
Raster measurements - Location
Cell location:
X: 25546 X: 25546 + 30= 25576
Y: 468678
Y: 468678 + 30 = 468708
Raster Measurements - Distance
Area Size =
number of cells * cell size
Cell size: 30 m x 30 m
900 * 5 = 4500 m2
Raster Measurements – Area Size
Measurements Overlay
Location Arithmetic operators
Distance Comparison operators
Area size Logical operators
Classification Conditional expressions
User controlled Decision tables
Automatic
7
(Re) Classification
In user-controlled classification
Old value New value
we indicate the classification
attribute (“old” and “new”) 391 - 2474 1
10 Planned Residential
Residential
Top table, the original values are 20 Industrial Commercial
ranges; lower table the original
values were a classification. 30 Commercial Commercial
(Re) Classification - Automatic
Equal interval
calculated as (vmax – vmin) /n
Vmax is the maximum attribute
value, vmin is the minimum attribute
value and n is the number of
classes.
o
r
i
(Re) Classification - Automatic
Equal frequency
Also called quantile
calculated as
total number of features
number of classes (n)
Measurements Overlay
Location Arithmetic operators
Distance Comparison operators
Area size Logical operators
Classification Conditional expressions
User controlled Decision tables
Automatic
14
Raster Overlay
New cell values are calculated using map algebra / raster calculus.
Performed on cell-by-cell basis.
No geometric calculation
Operators:
Arithmetic overlay operators
Comparison and logical operators
Conditional expressions
Decision table
Output_raster_name := Raster_calculus_expression
Overlay – Arithmetic Operators
? := 5 * 5 MOD (9,2) = 1
Overlay - Arithmetic Operators
Examples
Overlay - Comparison Operators
test whether one expression is larger, smaller, equal, etc. than another
expression
can be used in combination with logical operators or conditional
functions
Using only a comparison operator in a formula, the formula will be a
Boolean statement, e.g. MapC := MapA <> MapB
Overlay - Comparison Operators
25 25 15 10
15 20 20 10
10 15 20 5
5 10 15 5
0 0 0 1
0 0 0 1
True: 1 1 0 0 1
False: 0 1 1 0 1
Overlay – Logical Operators
Boolean Operators
A B = A B intersection
AND
A OR B = A B union
A XOR B = A B exclusion
(either A or B, but
not both)
A NOT B = A B negation
Overlay – Logical Operators
Examples Boolean Operators
Overlay – Logical Operator AND
Steep slope
Forest
AND
Steep slope
Forest
OR
Steep slope
Forest
XOR
A B
Conditional expressions:
test a condition
if the expression is true, the
then_expression will be evaluated
if the expression is false the
else_expression will be executed.
A conditional expression can lead Output:=Con (A <15 OR B=2, A,
to many different types of outputs, 40)
numeric value but also true/false
Examples
Overlay - Conditional Expressions
Decision tables:
The same as Conditional
statements, but presented in a
different way.
They guide the overlay
process
The table above lists two input list all possible combinations of
layers, Landuse and Geology
Landuse has three values (Forest, input values, and of output
Grass, Lake) and Geology has values.
two values (Alluvial and Shale).
for complicated conditional
For each combination it lists the expressions
output values.
Overlay - Conditional Expressions /Decision table
Example
Summary – Part I
Measurements
Raster measurements include location, distance and area size.
Classification
(Re)Classification is used to reduce the complexity of a layer in order to
show patterns
Overlay
Arithmetic operators
Comparison operators
Logical operators
Conditional expressions
Decision tables