Professional Documents
Culture Documents
Spatial Analysis
• Dear Viewers, in this session, I would like to focus
my attention to Spatial Analysis methods that can be
implemented on a GIS database.
Analysis in GIS
• Before starting any analysis, one needs to
assess the problem and establish an
objective.
• It is important to think through the process
before making any judgments about the data
or reaching any decisions;
• Ask questions about the data and model; and
• Generate a step-by-step procedure to monitor
the development and outline the overall
objective.
• The following steps outline the basic
procedure for geographical analysis:
• measurement techniques,
•query on attributes on proximity analysis,
•overlay operations, and
•analysis of models of surfaces and networks.
DATA ANALYSIS TERMINOLOGY
Entity: An individual point, line, or area in a GIS
database is called an entity.
(i)
=
By drawing a straight line between A and B
4.5
q
b c
42 + 42
1
i.e. AB = AC 2 + CB 2 = A
2 3 4
C
a
= 5.7 units.
MEASUREMENT OF LENGTH
q
AB = (Aa)+(ab)+ ……. + (fg)+(gB), 2 2.8
d
3.6
e
4.5
or = 1+1+1+1+1+1+1+1 = 8 units b c
1 2 3 4
A C
a
X
O
1
Area of ABCDEA = [xa ( yb − ye ) + xb ( yc − ya ) + xc ( yd − yb) + xd ( ye − yc ) + xe ( ya − yd )]
2
12 12 12 12 10 11 11 11 11 10 0 0 0 0 1 0 0 0 0 1
12 8 8 8 8 10 11 11 11 10 0 0 0 0 0 1 0 0 0 1
12 8 8 9 9 9 9 11 11 11 0 0 0 0 0 0 0 0 0 0
12 12 10 10 10 10 9 11 11 11 0 0 1 1 1 1 0 0 0 0
12 12 10 10 10 10 10 11 11 11 0 0 1 1 1 1 1 0 0 0
12 12 10 10 10 10 10 11 11 11 0 0 1 1 1 1 1 0 0 0
(a) Old cell values (b) New cell values
Land use Old cell value New cell values (Boolean) New cell value (weight)
Wetland 8 0 1
Water 9 0 2
Agriculture 10 1 5
Forest 11 0 4
Industrial 12 0 3
BUFFERING &
NEIGHBOURHOOD FUNCTIONS
• Buffering function, also known as proximity
function, in GIS is one of the neighbourhood
functions and it is used to create a zone of
interest around an entity, or set of entities.
• Buffering allows a spatial entity to influence its
neighbours, or the neighbours to influence the
character of an entity.
• Other neighbourhood function that include data
filtering, involves the recalculation of cells in a
raster image based on characteristics of
neighbours. If a point is buffered, a circular zone
is created (Fig. a), and buffering lines and areas
creates new areas (Fig.b and c).
Different Types of Buffering Function
+
r
r1
r2
d2
d
d1
d +
d
d1 d2
Ed=1/2sqr(A/n)
where
A denotes the map area
• Compute the nearest neighbour index (NNI),
which is defined as the ratio of Ad to Ed
NNI=Ad/Ed
r=
∑ r
n
d=
n r
area R=
.5
r (e)
r ( e) =
d
Advantages of Nearest Neighbor
over Quadrat Analysis
• No quadrat size problem to be concerned with
• Takes distance into account
• Problems
– Related to the entire boundary size
– Must consider how to measure the boundary
• Arbitrary or some natural boundary
– May not consider a possible adjacent boundary
FILTERING
• Filtering is one of the functions of
neighbourhood, used for processing of remote
sensing data.
• Mean filter
• Weighted mean filter
• Median filter
• Mode filter
• Olympic filter
• Multi level Median (MLM) filter
• P-median (PM) filter
• Adaptive Mean P-median (AMPM) filter
MEAN FILTER
• In this technique, each pixel within
a given window (say 3×3) is a1 a2 a3
8
– If ABS X − 1
8 ∑
i =1
ai > ε
(given threshold value)
8
∑a
1
– THEN X= i
8 i =1
– ELSE X=X
where
X = the brightness value of the central pixel
ai = brightness value of the surrounding ith
pixel.
WEIGHTED MEAN FILTER
a b c d e f
a 4 4 4 4 4 4
Filter
b 2 2 3 3 3 4
Target cell
c 3 3 4 4 3 3
d 2 2 4 4 2 2
e 1 1 1 1 1 2
f 1 1 1 1 1 2
FILTERING
• The recalculated value of the target cell dc depends
upon the criteria used as given in Table.
• Filtering may be required in the raster data obtained from
a classified satellite images to smoothen the noise
present in the data due to high spatial variability in a
particular class of feature such as vegetation cover, or
due to the problems with the data collection devices.
Minimum filter dc 4 1
Maximum dc 4 4
Mean dc 4 2.67
Mode dc 4 4
Diversity dc 4 4
TEXTURE TRANSFORMATIONS
• Texture transformations are another set of
tools that are used to identify the spatial
pattern in data.
area
(i) Point-in-polygon,
(ii) Line-in-polygon, and
(iii) Polygon-on-polygon.
POINT-IN-POLYGON
• When it is desired to locate a point with
respect to polygons, i.e., in which polygon a
point lies, point-in polygon overlay is used.
• Fig. shows two data layers containing wells
as points and soil types as polygons.
• The point-in-polygon overlay on these layers
results an output layer indicating that in
which soil category the wells lie.
• This information is given as an output map
of a new set of wells created with additional
attributes describing the soil type.
POINT-IN-POLYGON
Point map Polygon map Point map
Sand
+ +
1 + +
2 + =
Clay
3+ +
Well
Sand 1
• 3
= 2 +
•
2 + •
•
1 Clay 4
3 5
Road
Sand
Urban
+ =
Clay
Union
Sand
+ Urban =
Clay
Erase
Urban area on
Sand sandy soil
+ Urban =
Clay
Intersect (AND)
(c) Polygon-on-polygon
RASTER OVERLAY
• In a raster-based system, cells in input data
represent the raster data structure.
• A single cell represents a point, a string of
cells represents a line and a group of cells
represents an area.
• Raster overlays employ mathematical
operations addition, subtraction, multiplication
or division on the individual cell values of the
input layers to produce output data.
• This requires appropriate coding of features
represented by points, lines, and areas the
input data layers.
RASTER OVERLAY
• For example, wells are represented as ‘1’ in
the well map layer while sewer lines are
expressed as ‘2’ in the sewer line map layer.
• In the land use map layer, the coding may be
‘3’ for wheat field, ‘4’ for forest, ‘5’ for clay soil
and ‘6’ for urban areas while for all the cells
having features of no interest as 0, in all data
layers.
• If the codes assigned to different land uses in
different layers are same, the interpretation of
results becomes different.
Operation Equivalent to Vector Point-in-Polygon
(i) Well station = 1
Well
(ii) Feature of no interest = 0
(i) Wheat = 3
Wheat
(ii) No feature of no interest = 0
(i) Wheat field with well = 4
(ii) Wheat field = 3
Output map
(iii) Well = 1
(iv) Neither well nor wheat field = 0
Wheat field Well within wheat field
Well
0 1 0 0 3 3 3 0 3 4 3 0
Well outside
0 0 0 0 3 3 0 0 3 3 0 0 wheat field
+ =
0 0 1 0 3 3 0 0 3 3 1 0
0 0 0 0 0 0 0 0 0 0 0 0
(a)
Well map Wheat field map Output map
Operation Equivalent to Vector Line-in-Polygon
(i) Sewer line = 2
Sewer line map
(ii) Feature of no interest = 0
(i) Urban = 6
Urban map
(ii) Feature of no interest = 0
(i) Sewer line in urban area = 8
(ii) Sewer line not in urban area = 2
Output map
(iii) Urban area with no sewer line = 6
(iv) Neither urban area nor sewer line = 0
Sewer line Urban Sewer line in urban area
1 1 1 0 + 1 1 0 0 = 2 2 1 0
1 0 0 0 0 0 0 0 1 0 0 0
(d)
Soil map
Operation: Multiplication
(i) Clay soil = 1
Soil map
(ii) Feature of no interest = 0
(i) Forest = 1
Forest map
(ii) Feature of no interest = 0
(i) Forest on clay soil = 1
Output map
(ii) Other areas = 0
Forest area on clay soil Other areas
Forest
Clay soil
0 0 1 1 1 1 1 0 0 0 1 0
0 0 0 0 1 1 0 0 0 0 0 0
× =
1 1 1 0 1 1 0 0 1 1 0 0
1 0 0 0 0 0 0 0 0 0 0 0
Soil map Forest map Output map
(e)
SPATIAL AUTOCORRELATION
• Spatial autocorrelation may be defined as the
relationship among values of a single variable that
comes from the geographic arrangement of the
areas in which these values occur.
• It measures the similarity of objects within an
area, the degree to which a spatial phenomenon
is correlated to itself in space, the level of
interdependence between the variables, the
nature and strength of the interdependence, i.e.
spatial autocorrelation is an assessment of the
correlation of a variable in reference to spatial
location of the variable.
• Assess if the values are interrelated, and if so is
there a spatial pattern to the correlation, i.e. is
there spatial autocorrelation.
• Spatial autocorrelation tools test whether the
observed value of a variable at one locality is
independent of values of the variable at
neighboring localities.
• Spatial autocorrelation may be classified as
either positive or negative.
• Positive spatial autocorrelation has all similar
values appearing together, while negative
spatial autocorrelation has dissimilar values
appearing in close association.
• A positive spatial autocorrelation refers to a
map pattern where geographic features of
similar value tend to cluster on a map,
whereas a negative spatial autocorrelation
indicates a map pattern in which geographic
units of similar values scatter throughout the
map.
• When no statistically significant spatial
autocorrelation exists, the pattern of spatial
distribution is considered random
DESCRIBING SPATIAL
AUTOCORRELATION
• The general method of describing autocorrelation
in a variable is to compute some index of
covariance for a series of lag distances (or
distance classes) from each point.
• The resulting correlogram illustrates
autocorrelation at each lag distance.
• Membership in a given distance class is defined
by assigning a weight to each pair of points in the
analysis; typically this weight is a simple indicator
function, taking on a value of 1 if within the
distance class, else 0
• Weights may also be defined in other ways, in
which case they take on non integer values.
• The spatial pattern of a distribution is defined by
the arrangement of individual entities in space
and the geographic relationships among them.
• The capability of evaluating spatial patterns is a
prerequisite to understanding the complicated
spatial processes underlying the distribution of a
phenomenon.
• Spatial autocorrelation indicates the extent to
which the occurrence of one feature is influenced
by similar features in the adjacent area.
• As such, statistics of spatial autocorrelation
provide a useful indicator of spatial patterns.
Indicators Of Spatial
Autocorrelation
• Global indicators of spatial association,
- join count statistics;
- Moran's I and Geary's c ;
- Null and the alternative hypothesis;
- General cross-product statistics;
- Normal, randomisation and permutation
approach; and
- spatial Correlogram.
• Local indicators of spatial association
LISA Gi and Gi* statistics;
LISA statistics;
local Moran;
inference for LISA;
spatial outliers.
• The variogram approach to spatial
association the geostatistical perspective;
Where:
n = the number of observations
Wij = the distance (spatial lag) between pixels
i and j
xi = the DN value at location i
xj = the DN value at location j
MORAN'S I
• Measuring the correlation (simultaneous
change in value of two numerically valued
random variables) among the neighboring
observations in the pattern is done using the
spatial autocorrelation statistic Moran's I.
• Moran's I is defined as a measure of the
correlation among neighboring observations
in a pattern.
• Computation of Moran's I is achieved by
division of the spatial covariation by the total
variation.
• The general formula for computing Moran's I
is
where
N is the number of spatial units indexed by i
and j;
X is the variable of interest;
• is the mean of X; and
• wij is a matrix of spatial weights
• Resultant values are in the range from
approximately -1 to 1.
• Positive signage represents positive spatial
autocorrelation, while the converse is true for
negative signage.
• With a Zero result representing no spatial
autocorrelation.
• Moran's I is inversely related to Geary's C, but
it is not identical.
• Moran's I is a measure of global spatial
autocorrelation, while Geary's C is more
sensitive to local spatial autocorrelation
NETWORK ANALYSIS
• In the context of GIS, a network is defined as
a set of interconnected linear features through
which resources can flow.
• Common examples of networks include
highways, railways, city streets, canals, rivers,
transportation routes, such as for garbage
collection, mail delivery, and school buses,
and utility distribution systems, for example,
telephone, electricity, water supply, and
sewage.
• There are many spatial problems that require
the use of network analysis for their solution.
Use of Network Analysis
• To find the shortest path (in terms of physical
distance or least cost) that can be followed to visit
a series of features in a network, known as path-
finding,
(ii) to assign one or more portions of a network to be
served by a facility or business location, called as
allocation,
z y
x
The concept of hill shading
L × N = 0.0 < illumination values < 1.0
• Similar principle but different in algorithm, is
employed for hill shading using DEM (Fig).
• Hill shading is referred to as a qualitative
method of two-dimensional terrain
visualization, and therefore, numerical values
of elevation cannot be measured from the
display.
Two-and-a-Half-Dimensional Visualization
of Terrain
• It is possible to simulate three-dimensional terrain
from a two - dimensional display through the use
of clever graphics.
• However, technically a two – and – a – half -
dimensional `display is basically an isometric
model. In an isometric model, the principal axes x,
y, and z are equally inclined to each other, and the
scale along these axes is also same.
• Therefore, two – and – a – half - dimensional
visualization though being relatively easy to
implement from programming point of view, it does
not create the impression of visual depth. Classic
uses of the two – and – a – half -dimensional
approach are wire frame diagrams (Plate 10.2).
Two-and-a-Half-Dimensional
Visualization of Terrain