Part 3- Spatial Data Modeling (1)
Part 3- Spatial Data Modeling (1)
INFORMATION
SYSTEMS Course
CIS Department
Prepared by: Eng. Heba Al-
Hiary
Ne
xt
Chapter 3:
Spatial Data
Modeling
Every day you ask
questions with a
spatial component.
Previo Ne
us xt
TABLE OF CONTENTS
01 Introduction
Entity
02 Definition
03 Spatial Data Models
05 Modeling Surfaces
06 Modeling Networks
Previo Ne
us xt
TABLE OF CONTENTS
07 Building Computer Worlds
Previo Ne
us xt
INTRODUCTION
There are two essential methods
used to store information in a
Geographic Information System –
GIS for both reflections: Raster
and Vector Data Model.
Previo Ne
us xt
Introduction
The previous chapter introduced the
concept that a GIS, populated with
data and ideas about how these data
interact, is a model of reality. This
model was created to help us
develop our understanding of
geographical problems. Building a
model of the world
Previo
us for your GIS is a
Ne
xt
Introduction
GIS Model: A geographic data model,
geospatial data model, or simply
data model in the context of
geographic information systems, is a
mathematical and digital structure
for representing phenomena over
the Earth.
Previo Ne
us xt
Introduction
Generally, such data models
represent various aspects of these
phenomena by means of geographic
data, including spatial locations,
attributes, changes over time, and
identity.
Previo Ne
us xt
Introduction
Stages involved in constructing a GIS
data model:
Previo Ne
us xt
Stages involved in constructing a GIS data
model
Previo Ne
us xt
Entity Definition
All geographical phenomena can be
represented in two dimensions by
three main entity types: points,
lines, and areas. Two additional
spatial entities: networks and
surfaces. These are an extension of
the area and line.
Previo Ne
us xt
Entity Definition
A surface entity is used to represent
continuous features or phenomena.
For these features, there is a
measurement or value at every
location, as is the case with
elevation, temperature, and
population density.
A network Previo
usis xt a
Ne
series of
A simple spatial entity model for Happy Valley
Previo Ne
us xt
Examples of surface data
Previo Ne
us xt
Roads, rivers and sewage networks in Happy
Valley
Previo Ne
us xt
Spatial Data Models
There are two main ways in which
computers can handle and display
spatial entities. These are the raster
and vector approaches.
Previo Ne
us xt
Spatial Data Models
The raster spatial data model is one
of a family of spatial data models
described as tessellations. In the
raster world individual cells are used
as the building blocks for creating
images of point, line, area, network,
and surface entities.
Previo Ne
us xt
Spatial Data Models
A vector spatial data model uses
two-dimensional Cartesian (x,y)
coordinates to store the shape of a
spatial entity. In the vector world,
the point is the basic building block
from which all spatial entities are
constructed.
Previo Ne
us xt
Raster and vector spatial data
Previo Ne
us xt
Raster and vector spatial data
Previo Ne
us xt
Spatial Data Structures
Data structures provide the
information that the computer
requires to reconstruct the spatial
data model in digital form.
Previo Ne
us xt
Spatial Data Structures
Raster data structures: In the raster
world a range of different methods is
used to encode a spatial entity for
storage and representation in the
computer. The most straightforward
method of coding raster data is the
cells in each line of the image.
Previo Ne
us xt
A simple raster data structure
Previo Ne
us xt
Spatial Data Structures
The first line of the file tells the
computer that the image consists of
10 rows and 10 columns and that the
maximum cell value is 1. In this
example, a value of 0 has been used
to record cells where the entity is not
present and a value of 1 for cells
where the entityPrevio
us is present.
Ne
xt
Spatial Data Structures
One of the major problems with
raster data sets is their size because
a value must be recorded and stored
for each cell in an image.
Previo Ne
us xt
Spatial Data Structures
Vector data structure: the different
entity types –points, lines, and areas
– can be defined by coordinate
geometry. The simplest vector data
structure that can be used to
reproduce a geographical image in
the computer is a file containing
(x,y) coordinatePrevio
us pairs
Ne
xt that represent
Spatial Data Structures
The following figure shows such a
vector data structure for the Happy
Valley car park. Note how a closed
ring of coordinate pairs defines the
boundary of the polygon.
Previo Ne
us xt
Data structures in the vector world: A simple vector data
structure
Previo Ne
us xt
Spatial Data Structures
The limitations of simple vector data
structures are:
1) When more complex spatial
entities are considered. For
example, consider the Happy Valley
car park divided into different
parking zones.
Previo Ne
us xt
Spatial Data Structures
The car park consists of a
number of adjacent polygons. If
the simple data structure in the
previous figure, were used to capture
this entity then the boundary line
shared between adjacent polygons
would be stored twice.
Previo Ne
us xt
Data structures in the vector world: Point dictionary
Previo Ne
us xt
Spatial Data Structures
2) The simple vector data structure
could be used to graphically
reproduce the network without
any duplication of data. However, it
would not contain any information
about the linkage between lines.
3) A further problem of area
features is the Previo
us island
Ne
xt or hole
Spatial Data Structures
For the representation of line
networks and adjacent and island
polygons, a set of instructions is
required that informs the computer
where one polygon, or line, is with
respect to its neighbors. Topological
data structures contain this
information. There
Previo
us xt are
Ne
numerous
Spatial Data Structures
Topology is concerned with
connectivity between entities and
not their physical shape.
Previo Ne
us xt
Topological structuring of complex areas
Previo Ne
us xt
Spatial Data Structures
There is a considerable range of
topological data structures in use by
GIS. All the structures available try
to ensure that:
Previo Ne
us xt
Spatial Data Structures
no node or line segment is
duplicated;
line segments and nodes can be
referenced to more than one
polygon;
all polygons have unique
identifiers, and island and hole
polygons can Previo
us xtbe
Ne
adequately
Modeling Surfaces
The modeling of surface entities
such as height, pollution, and rainfall
poses interesting problems in GIS. In
this section, we explore surface
modeling by looking in detail at
Digital Terrain Models (DTMs). These
are used as an example because of
their wide application
Previo
us xt in GIS.
Ne
Example surface types
Previo Ne
us xt
Modeling Surfaces
To model a surface accurately it
would be necessary to:
store an almost infinite number of
observations.
Since this is impossible, a surface
model approximates a continuous
surface using a finite number of
observations.Previo
us
Ne
xt
Modeling Surfaces
DTMs are created from a series of
either regularly or irregularly
spaced (x,y,z) data points (where
x and y are the horizontal
coordinates and z is the vertical or
height coordinate).
Previo Ne
us xt
Modeling Surfaces
DTMs may be derived from a
number of data sources. These
include contour and spot height
information found on topographic
maps, stereoscopic aerial
photography, satellite images and
field surveys.
Previo Ne
us xt
Modeling Surfaces
The raster approach to digital terrain
modeling:
In raster GIS a DTM is simply a
grid of height values in which each
cell contains a single value
representative of the height of the
terrain that is covered by that cell.
Previo Ne
us xt
Modeling Surfaces
This type of simple raster DTM is
perhaps more accurately referred
to as a Digital Elevation Matrix
(DEM) because it contains no
information about the terrain
surface being modeled other than
the elevation or height above the
datum. Previo
us
Ne
xt
Modeling Surfaces
The vector approach to digital terrain
modeling:
In its simplest form, a vector DTM
mimics the raster version by using
a regularly spaced set of spot
heights to represent the terrain
surface. A more advanced, more
complex, andPrevio
us more
Ne
xt common form
Modeling Surfaces
In vector GIS, a TIN is used to
create a DTM from either regular
or irregular height data. The TIN
method joins the height
observations together with
straight lines to create a mosaic of
irregular triangles.
Previo Ne
us xt
Modeling Surfaces
In the TIN model of a surface, the
vertices of the triangles produced
represent terrain features such as
peaks, depressions, and passes,
and the edges represent ridges
and valleys.
Previo Ne
us xt
Modeling Surfaces
The surfaces of individual triangles
provide area, gradient (slope), and
orientation (aspect). These values
can be stored as TIN attributes or
can be quickly calculated when
the TIN is used in further analysis.
Previo Ne
us xt
Modeling Surfaces
The main advantage of the TIN
model is the efficiency of data
storage since only a minimum
number of significant points need
to be stored to reproduce a
surface.
Previo Ne
us xt
Digital terrain models
Previo Ne
us xt
Example DEM and TIN model for region of varying
complexity
Previo Ne
us xt
Modeling Networks
A network is a set of
interconnected linear features
through which materials, goods,
and people are transported or
along which communication of
information is achieved.
Network models in GIS are
abstract representations
Previo
us
Ne
xt of the
Modeling Networks
They are essentially adaptations of
the vector data model and for this
reason, raster GIS is generally not
very good at network analysis.
The vector network model is made
up of the same arc (line segments)
and node elements as any other
vector data Previo
model
us
Ne
xt but with the
Network data model
Previo Ne
us xt
Building Computer Worlds
In this section, we will consider the
methods used to construct computer
worlds by grouping entities together.
At the present time, we have two
options: layers and objects.
The most common method of
structuring the geography of the
real world inPrevio
us thext computer is to
Ne
The layer-based approach
Previo Ne
us xt
Building Computer Worlds
Another approach to structuring
geographical space views the real
world as a set of individual objects
and groups of objects. This
approach draws on the methods of
object-oriented (OO)
programming.
Previo Ne
us xt
The layer-based approach
Previo Ne
us xt
Modelling the Third Dimension
Current GIS software products do
not permit us to model the third
dimension. Partly this is due to the
technical difficulties of
constructing full 3D models of
geographical space.
Those including full 3D topology
are particularly
us difficult.
Previo Ne
xt
Modelling the Third Dimension
It is only a matter of time before
we will see the emergence of 3D
modeling as an integral part of the
GIS toolbox.
Previo Ne
us xt
Modelling the Fourth Dimension
Modeling time is made more
complex since there are several
different sorts of time that GIS
developers need to consider work
practice time, database time, and
future time.
Previo Ne
us xt
Modelling the Fourth Dimension
Much remains to be done before
true temporal GIS can be realized
but a large part of the solution
may lie in exploring how the
temporal dimension of information
has been dealt with by other
disciplines.
Previo Ne
us xt
Chapter 3
Review Questions
Try!!!!!!
Previo Ne
us xt
Review Questions
To show different types of data on a map, To build a kindergarten, which layers of
they are organized using: GIS data would be most appropriate to
● Layers
consider?
● Stages
● Topography and climate
● Selectors
● Rivers and flood zones
● Types
● Neighborhood locations and population
When studying natural disasters, what density
Previo Ne
us xt
Review Questions
Classify the following models to their
proper type.
● a) Raster model.
● b) TIN model.
● c) Surface model.
● d) TIN model.
● e) Raster model.
Previo Ne
us xt
Review Questions
A _________ is a series of
interconnecting lines along which there
is a flow of data, objects, or materials.
● Point
● Network
● Surface
● Line
Previo Ne
us xt
THANKS
DO YOU HAVE ANY
QUESTIONS?
Previo Ne
us xt