Unit 5 Spatial Analysis
Unit 5 Spatial Analysis
Introduction
(Spatial analysis)
Geographical Information System
Spatial analysis: is a fundamental component of a GIS that allows for an
in-depth study of the topological and geometric properties of a dataset or
datasets.
All GIS provide functions for analyses of data chosen and for storing results of
such analysis. Data may be analyzed at various levels:
1. Store attribute data in table: Are stored for presentation in reports or for use in
other computer system.
2. Operation on geometric data: Are performed on geometric data, either in search
mode or for computational purpose.
3. Operations on attribute tables: Like arithmetic, Boolean, statistical are performed
in attribute tables.
4. Both Geometry and Attribute table: Are used jointly to:
a. Compile new set of data based on original and derived attributes.
b. Compile new sets of data based on geographic relationships.
Examples of overlays?
Overlays require that data be in the same coordinate system
Geographical Information System
Intersection: It preserves only those features that fall within the area
extent common to inputs. We preferred it because, any feature on its
output has attribute data from both of its inputs.
Identity: Identity preserve only features that fall within the area of layer
defined as the input layer. The other layer is called identity layer. Input layer
may contain point, lines, polygon and identity layer is polygon layer.
Geographical Information System
Overlay:
Clip:
Erase:
Split:
Note that the output layer is limited to the Name polygon geometry and its
attributes (and does not include the clipping circle polygon).
Geographical Information System
Intersect:
Intersecting takes both layers as inputs then outputs the features from both
layers that share the same spatial extent. Note that the output attribute table
inherits attributes from both input layers (this differs from clipping where
attributes from just one layer are carried through).
The NAME polygon layer is intersected with the circle polygon. The output
layer combines both intersecting geometries and attributes.
NAME polygon layer is unioned with the circle polygon. The output layer combines both (complete)
geometries and attributes. Where spatial overlaps do not occur, most software will either assign a NULL
value or a 0.
Geographical Information System
Identity tool
To use the Identity tool, the input coverage can be a point, line, or polygon
coverage. The output coverage will be the same feature type as the input
coverage.
All features of the input coverage will be preserved in the output coverage.
This means that the input coverage acts like a cookie cutter on the identity
coverage.
Polygons: Input coverage arcs are split at their intersections with polygons
of the identity coverage.
Lines: Identity coverage arcs are used to split input coverages where they
overlap.
Points: All input coverage points are saved in the output coverage, and the
output coverage PAT file lists the identity coverage polygon within which
each point falls.
The Intersect and Union tools are similar to the Identity tool. The only
difference is the features that remain in the output coverage.
Geographical Information System
Intersect tool
To use the Intersect tool, the input coverage can be a point, line, or polygon
coverage. The output coverage will be the same feature type as the input
coverage.
The output coverage contains the polygon features from both the input and
union coverage. Unlike Identity and Intersect, Union never clips any data.
The Union tool is similar to the Intersect and Identity tools. The only difference
is the features that remain in the output coverage.
Network Analysis
Geographical Information System
Network Analysis: Route Optimization and Shortest Path
Route Optimization and Shortest Path,
Route optimization in GIS (Geographic Information Systems) is a process of finding
the most efficient or optimal route between two or more locations on a map,
considering various constraints and criteria.
It is a crucial aspect of spatial analysis and is used in various real-world applications,
such as logistics, transportation, emergency services, urban planning, and field
workforce management.
The main goal of route optimization is to minimize travel time, distance, cost, or any
other relevant criteria while ensuring that the constraints of the problem are met.
The area extent for analysis may correspond to a specific raster, or an area
defined by its minimum and maximum x-, y-coordinates, or a combination of
rasters.
Given a combination of rasters with different area extents, the area extent for
analysis can be based on the union or intersect of the rasters. The union option
uses an area extent that encompasses all input rasters, whereas the intersect
option uses an area extent that is common to all input rasters.
We can define the output cell size at any scale deemed suitable. Typically, the
output cell size is set to be equal to, or larger than, the largest cell size among
the input rasters. This follows the rationale that the resolution of the output
should correspond to that of the lowest-resolution input raster. For instance, if
the input cell sizes range from 10 to 30 meters, the output cell size should be 30
meters or larger.
Geographical Information System
Local
Neighborhood
Zonal Operation
Local Operations with a Single Raster - A local operation computes each cell
value in the output raster as a function of the cell value in the input raster at
the same location. The function may involve a GIS tool, a mathematical
operator, and/or a constant. A large number of mathematical operators are
available in a GIS package.
For example, converting a floating-point raster to an integer raster is a simple
local operation that uses the Integer operator to truncate the cell value at the
decimal point on a cell-by-cell basis. Converting a slope raster measured in
percent to one measured in degrees is also a local operation but requires a more
complex mathematical expression.
Second, reclassification can create a new raster that contains a unique category
or value such as slopes of 10 to 20 percent.
Third, reclassification can create a new raster that shows the ranking of cell
values in the input raster. For example, a reclassified raster can show the
ranking of 1 to 5, with 1 being least suitable and 5 being most suitable.
Figure 12.9: The cell values in (b) are the neighborhood majority statistics of
the shaded cells in (a) using a 3-by-3 neighborhood. For example, the upper-
left cell in the output raster has a cell value of 2 because there are five 2’s and
four 1’s in its neighborhood.
Figure 12.11: The cell values in (c) are the zonal means derived from
an input raster (a) and a zonal raster (b). For example, 2.17 is the mean
of {1, 1, 2, 2, 4, 3} for zone 1.
Geographical Information System
Raster Data Analysis: Applications of Zonal Operations
Measures of zonal geometry such as area, perimeter, thickness, and centroid
are particularly useful for studies of landscape ecology.
Many other geometric measures can be derived from area and perimeter. For
example, the perimeter-area ratio (i.e., zonalperimeter/zonalarea) is a simple
measure of shape complexity used in landscape ecology.
Zonal operations with two rasters can generate useful descriptive statistics for
comparison purposes. For example, to compare topographic characteristics of
different soil textures, we can use a soil raster that contains the categories of
sand, loam, and clay as the zonal raster and slope, aspect, and elevation as the
input rasters. By running a series of zonal operations, we can summarize the
slope, aspect, and elevation characteristics associated with the three soil
textures.
or cell size × 2.828. If the cell size were 30 meters, the distance would be 84.84
meters. operations.
Mosaic:
Mosaic is a process of combining multiple raster datasets into a single seamless
mosaic dataset. This tool is commonly used when you have several individual
raster files that represent different parts of the same area or have the same
extent but different attributes. Mosaicking allows you to create a continuous
and consistent representation of the entire study area.
Geographical Information System
Mosaic and Aggregate tools:
Both Mosaic and Aggregate tools are commonly found in GIS software
packages and are essential for preprocessing and data preparation before
analysis or visualization. They help improve the efficiency and effectiveness of
handling large raster datasets, making it easier to work with vast amounts of
geographic information.