05 Spatial Data Models 2024
05 Spatial Data Models 2024
• Geographic phenomena
• Fields
• Objects
• Data Models
• Vector
• Raster
2
Geographic phenomena
• Defining a geographic phenomenon
– It can be named and described
– it can be georeferenced (it has a position in space)
– it is / was present during a certain time (interval)
• That is, Geographic phenomena have:
– a spatial (geometric) and
– temporal extent and
– possess thematic characteristics (attributes or properties)
• The spatial mode deals with variation from place to place
3
Geographic phenomena
4
Geographic phenomena
• Geographic objects or features
– In contrast, discrete phenomena are spatially homogenous entities with distinct
locations and boundaries.
– They hold relatively permanent identities and are identified as individuals prior
to any recognition of their attributes.
– Many GIS researchers applied such a feature-based (or entity-based) approach to
handle geographic data.
5
Geographic objects
6
Spatial Data Models
Kwame Nkrumah University of
Science & Technology, Kumasi, Ghana
•Data Model – a conceptual model expressed in a data structure (e.g. ascii files,
Excel tables, …..). The data model describes how we structure the data in a GIS
• A geographic data model defines the vocabulary for describing and reasoning
about the things that are located on the earth. Geographic data models serve as
the foundation on which all geographic information systems are built or
represented.
Kwame Nkrumah University of
Science & Technology, Kumasi, Ghana
• Vector representation
1. Vector Data Model: Vector is a data structure, used to store spatial data.
• The approach used in the vector model is to precisely specify the position of the
points, lines and polygons used to represent features of interest.
1.1 Feature Representation
• All geographic features are based on vectors:
o Point representations
o Line representations
o Area representations
Polygon representation
Point representation Line representation
Kwame Nkrumah University of
Science & Technology, Kumasi, Ghana
• Lnes or arcs representation - lines defined by ordered sets of x.y coordinate pairs.
They are used to represent contours, street centrelines, or streams, etc
• Polygons representation- an area outlined by one or more arcs. Polygon or polyline
(curved or crooked line) requires a string of x,y co-ordinates. A polygon is similar to a
polyline, except that the last set of co-ordinates must be the same as the first to close
the polygon.
Each feature must also have a identifier which may be used to link the spatial feature
to attribute data using normal relational database techniques.
• Vector models boundaries of feature data and vector files are easily moved and
copied
1. 2 Sources of vector files
• Vector maps
• Existing digital vector data
Kwame Nkrumah University of
Science & Technology, Kumasi, Ghana
• Points, lines and polygons (spatial data) associated with databases of attributes
(attribute data) are considered vector layer types.
2
O O
0 O 2 1 1
1
1
1 O 2 1 1
1 O O 2 1 1
1 11 1 1 O 1
Kwame Nkrumah University of
Science & Technology, Kumasi, Ghana
• If the feature falls within a particular cell (or pixel), the cell might be represented
in a data matrix by an identifier. If a cell does not contain any feature, the data
value might be 0.
• Location is determined by relative position within the grid.
• Remote sensing data e.g. air photos, satellite imagery requires classification into
mapping categories.
13
Spatial data Models :Vector vs Raster
14
Spatial data Model : Vector vs Raster
• Some GIS can handle both raster and vector data, but most tend to favour either
one or the other. Idrisi, for example, has some capabilities for handling vector
data, but it is primarily designed to handle raster data. ArcView, in contrast, has
some capabilities for handling raster data, but it is primarily designed to handle
vector data.
Vector data model
y y y code
code
code
x x x
Point Line Area
Raster data model
Row
Row
Row
16
Comparison: Vector and raster
• The advantages and disadvantages of Vector model is as illustrated in Table
17
Comparison: Vector and raster
18
Comparison: Vector and raster
19
Summary: Vector and raster
VECTOR RASTER
•Data stored as (x,y) coordinates •Data stored as cell values
•Define boundaries •No boundaries
•Feature
Sn shape is accurate Advantages
1 Highly accurate map output
2 Topological encoding is more difficult
3 Overlay of maps is easier •Feature shape is generalized
4 Simpler data structure
5 More compact data structure
6 Inefficient representation of high spatial variability
7 Input created by scanning
8 Better suited for satellite image data
20
Raster and Vector Data
Raster data are described by a cell grid, one value per cell
Vector Raster
Point
Line
Zone of cells
Polygon
How do we combine these data?
Digital Elevation
Watersheds Streams Waterbodies
Models
An integrated
raster-vector
database