2021 L4 GGY283 Data Models 1
2021 L4 GGY283 Data Models 1
2021 L4 GGY283 Data Models 1
GGY 283
Theme 2: Data models
L4 – Data models Part 1
©2021
Recommended
1. Di Biase – Chapter 1
2. De Smith et.al. – Chapter 2
3. Essentials of GIS - pp 61-70, 76-93, 104-106.
4. GIS Commons. Chapter 1 and Chapter 2 no. 1-4
5. Olaya, V. – p25 to 36;
6. Sutton et.al. - Topics 2,3,5 and 6.
1
2021/03/26
2
2021/03/26
Data Models
A model facilitates the study of a selected area of application by reducing the number of
complexities considered. (It simplifies reality and limits unnecessary detail)
Computers and digital data models
• Unlike humans, computers cannot “learn” all the characteristics of manholes, property
lines, lakes etc.
• What computers can do, is to manipulate geometric objects, such as point, lines and
polygons or manage cells in rows and columns.
To use GIS, the real world must be abstracted using a model of presentation, e.g.
Vector points / lines / polygons
OR
Raster cells
Example:
How is a “Real-world” model established in GIS
• The basic carrier of information is the entity, which is defined as a
real-world phenomenon that is not divisible into phenomena of the
same kind.
• An entity in a GIS:
Real world
Real world Data model Database Maps/reports
model
3
2021/03/26
• An object may belong to a class (feature class), e.g. a line feature class for roads.
• A class contains a set of objects with specific themes or types, e.g. all objects are types of roads.
• Each object have attributes, e.g. for roads: ID number, type, route number, length, etc.
4
2021/03/26
Points
Geometry Lines
Polygons
Geographic
data Qualitative data values Nominal
Attributes Ratio
5
2021/03/26
• Scale matters!
• Intended use matters!
1. Georeferenced
- It is referenced to a geographic space.
2. Scale
- It can be collected and represented at a variety of scales.
6
2021/03/26
7
2021/03/26
Falkland Islands
4. Which map
will take up
Note the Spatial data
collection/presentation vs scale more data
– the number of line segments Source: OpenStreetMap storage space? B
www.openstreetmap.org
vs faithful approximation
Introduction to GIS ©2021 16
8
2021/03/26
TWO Spatial Data Models used to represent the real world in GIS
Raster
not Rasta!
9
2021/03/26
2 Lines (One-dimensional)
• Linear features, often represented by arcs.
• Most often represented as an ordered set of coordinate pairs.
• Curved line -> collection of short straight line segments.
3 Polygons (Two-dimensional)
• Has interior region.
• Lake, province, building, etc.
10
2021/03/26
Station - point
Stadium - polygon
City - Point
11
2021/03/26
City - Polygon
https://www.researchgate.net/figure/304201389_fig1_Figure-4-Climatic-
conditions-of-the-Southern-African-coastline-The-Kalkkop-Crater-falls
12
2021/03/26
13
2021/03/26
• The attribute table has unique values in the ‘identifier’ column, e.g
the FID column below.
• This column is usually listed first and used to identify each feature
(i.e. province) uniquely.
• Other attributes are organised in fields (columns) with field names
and values.
14
2021/03/26
Vector Topology
Topology refers to data structures which retains certain
geometric properties and relationships when the forms are bent,
stretched or undergo similar transformations.
involves a set of rules on how objects relate to each other.
1
X 1 Y Y E.g. Figure B clearly
X 3 2 underwent transformation
3 2 from Fig A, but the relation
between the components
A Z
transformed Z B are still the same, e.g. Arc 1
still connects vertices X and
Y and the arcs 2 & 3 still
both connect to node Z, etc.
15
2021/03/26
Note: edge=arc=chain=segment=line
Introduction to GIS ©2021 32
16
2021/03/26
node (planar)
no node (non-planar)
17
2021/03/26
Shortest path
from B to C
no node
B
Introduction to GIS ©2021 35
node
Shortest path
from B to C
B
Introduction to GIS ©2021 36
18
2021/03/26
Examples of networks
– Road networks; utility networks (e.g. water and sewage)
19
2021/03/26
20
2021/03/26
BUT
Redundancy: shared border stored for both polygons
Inconsistency: adjacent border with slightly different coordinates,
etc.
Undetected errors and no network analysis will be possible
21
2021/03/26
Source: DWAF
L4 - Class exercise 1
22
2021/03/26
3. Find the error in the following Left-Right Topology list. Just give
the number of the Arc where the error occurred.
http://2012books.lardbucket.org/books/geographic-information-system-basics
10 1 11 2 12
Arc From To
Node Node
3
1 10 11 4 14 5
2 11 12 13 15
3 11 13
4 13 14 6
5 14 15
6 14 16 16
Introduction to GIS ©2021 46
23
2021/03/26
1 2
4 Arc Left Polygon Right Polygon
B 1 A B
5 C
2 A C
A D 3 B C
6 3 4 B C
5 C D
6 B D
Source:
http://training.esri.com/Cours
es/Rasters
Introduction to GIS ©2021 48
24
2021/03/26
L4 - Class exercise 2
25
2021/03/26
Level of measurement?
Cell values represent the relative frequency of occurrence of
a certain plant species in the area represented by each cell
Abundant
1
1
2
1
4
4
Common ?
Rare
2 3 3
None
Hint: The cell values have relative meaning, but the numeric difference between the values is not
meaningful (it is a code that represents how commonly the plants occur in that cell). For
instance, you can say that cells with a value of 2 has less plants than the cells where the value is
1, but you cannot say that it has half as many as cells with the value of 1.
Adapted from: http://training.esri.com/Courses/Rasters
Level of measurement?
Cell values represent the total number of wild garlic
plants in the areas represented by each cell.
58 81 189
< 150
151 - 300
?
117 162 254
301 - 450
345 410 473
> 450
Hint: The cell values represent an actual count of plants in each cell.
Cell values have been grouped (classified) for visualization purposes.
Adapted from: http://training.esri.com/Courses/Rasters
26
2021/03/26
Level of measurement?
Cell values represent a scale from 1-10 to represent
crop damage after a hail storm.
Level of measurement?
Cell values represent the soil and sun conditions.
1 0
1
1 1
2 0 ?
2 1
Hint: The cell values are codes where the first digit indicates soil
moisture and the second digit represents the amount of sunlight.
Source: training.esri.com/Courses/Rasters
27
2021/03/26
References
• Bernhardsen, 2002. Geographic Information Systems an Introduction 3rd Edition
• Bolstad, Paul. 2012: GIS Fundamentals, A First Text on Geographic Information Systems,
• Clark, 2003. Getting Started with Geographic Information Systems 4th Edition,
• Chang, 2004. Introduction to Geographic Information Systems 2nd Edition
• Sutton, T. Dassau, A and Sutton, M., 2009. A Gentle Introduction to GIS.
Online sources:
Vector Topology Types. TNTgis – Advanced software for Geostapial Analysis, MicroImages, Inc.
(2003) https://www.microimages.com/documentation/TechGuides/68vtopo1.pdf
WHAT IS NEXT?
Theme 2 – P3 & L5
28