2021 L5 GGY283 Data Models 2
2021 L5 GGY283 Data Models 2
GGY 283
Theme 2 – Data models cont.
L5 – Data models Part 2
©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
Review from L4: Spatial Data Models: Vector and Raster models
2
2021/03/26
Smaller /
compact table
Large table is created
Source: Bolstad,
Introduction Chapter
to GIS - Copyright 2
reserved 6
3
2021/03/26
Example:
A raster attribute table:
many-to-one relationship
M :1 in ArcView
4
2021/03/26
r r
r r
Two vector lines Any cell rule Near cell center rule
Introduction to GIS - Copyright reserved 10
5
2021/03/26
Two vector lines Smaller cells (any cell rule) Larger cells (any cell rule)
Introduction to GIS - Copyright reserved 11
Note:
When using raster data there is a Trade-off between
the number and size of cells versus the accuracy and level of detail that can be achieved.
6
2021/03/26
Vectorization
• Takes an entire raster file and converts it into vector objects..
Raster cells Define coordinates Vector set
• Challenges:
Source: Bolstad, Chapter 2
- vectorized entities may become over-defined
- result may have a jagged appearance and/or larger extent
- may take long to complete the process
• Solution: data are normally smoothed & filtered
Lower
resolution Higher
resolution
Example:
Landto cover
Introduction features
GIS - Copyright reserved 14
7
2021/03/26
Disadvantages of Raster
Different resolutions
Lower resolution may result in
- Spatial inaccuracies
Spatial resolution
8
2021/03/26
(DEM)
• Scanned maps
• Aerial imagery – aircraft / drones
Cover large areas
- e.g. aerial photographs
• Converted data (Vector to raster)
Source: Sutton et.al. p52 True colour raster images (left) are useful as they provide a lot of detail that is hard to capture as vector
features, but easy to see when looking at the raster image. Raster data can also be non-photographic data such as the raster layer
shown on the right which shows the calculated average minimum temperature in the Western Cape for the month of March.
Introduction to GIS - Copyright reserved 18
9
2021/03/26
10
2021/03/26
11
2021/03/26
Source:
Bolstad,
Chapter 2
12
2021/03/26
Source: https://giscommons.org/analysis/
• Object data models – a more recent “new” way of structuring spatial data.
• Combine the properties of objects with their behaviour (rules) .
• Often follow a “logical model” e.g. owners have properties, properties “belong
to” a municipality.
• Entities are represented as object with properties, behaviour, relationships &
topological rules.
• Relationships and rules are stored in a database which can be transparently
modified.
• Object types may include simple objects, geographic features (objects with
location), network features, annotation features, etc.
• Generic tools for object data models are not yet readily available.
13
2021/03/26
Single band
Raster Multiple band
Extension Description
Examples of
Raster and
Vector file
formats
Reading
for future reference
Sources:
Bolstad, Chapter 2
Sutton, Topic 4
Essentials, p 63
and
.JPEG (little distortion
on image quality
14
2021/03/26
Data Compression
Why are data compression techniques often required for raster data sets?
• Because raster data sets are generally very big – data compression techniques are used
to reduce the file size.
• The aim is to reduce the file size without losing important information.
• Efficient raster image compression helps to reduce storage space.
• Compression may also improve network performance.
Explore one or more of the following examples:
https://gisgeography.com/image-compression-encoding/
http://www.gitta.info/DataCompress/en/html/rastercomp_chain.html
https://www.kau.edu.sa/Files/0053593/files/33286_GIS%20Lecture%20Six-1.pdf
http://iieng.org/images/proceedings_pdf/6776E0314195.pdf
Eg. The “Cell by cell” uncompressed data for the raster data set below
(255 255 255), (255, 0, 0), (255, 255, 255), (255, 0, 0), (255, 255, 255),
can be compressed as:
→ 255:4, 0:2, 255:4, 0:2, 255:3
255 255 255
Or row by row
255 0 0 r1 255:3
255 255 255 r2 255:1, 0:2
r3 255:3
255 0 0
r4 255:1, 0:2
255 255 255 r5 255:3
15
2021/03/26
16
2021/03/26
Types of compression
• Lossless compression schemes
– No information is lost in the compression.
– It is possible to exactly reproduce the original data.
• Lossy compression schemes
– Do not guarantee that all of the information in the original data
can be fully and completely recreated.
Summary:
Common Vector / Raster data model characteristices
Factor Vector Raster
Data structure Can become complex Usually simple rows and columns
Positional accuracy Can be very accurate – but depends on Depends on the cell size, but it is normally
the measurement method and tool less accurate.
Storage requirements Normally much smaller than raster data Generally requires significantly larger
sets storage space than vector data.
Processes like coordinate Fast and simple May be slow and may require resampling
transformations procedures
Spatial analysis procedures Spatial analysis operations can become Simple procedures once the data layers
very complex have the same resolution and origin.
Encoding and programming More complex – requires more input Easier due to simpler data structure
Display and visualisation Very good for presenting continuous data Good for displaying discreet features like
and images, but discreet structures may boundaries, rivers and roads but mostly not
show rugged or “step-like” boundaries suitable for images or continuous data
Introduction to GIS - Copyright reserved 34
17
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, Chapter 2.
• Clark, 2003. Getting Started with Geographic Information Systems 4th Edition,
• Chang, 2004. Introduction to Geographic Information Systems 2nd Edition
• Creative Commons. (2011) Essentials of Geographic Information Systems.
• Sutton, T. Dassau, A and Sutton, M., 2009. A Gentle Introduction to GIS.
• Various online sources as indicated in the relevant slides.
18
2021/03/26
WHAT IS NEXT?
Theme 2 – Lecture 6: Data models Part 3
19