Data Models in GIS (Part 1)
Data Models in GIS (Part 1)
Lecture 6
1
GIS Data Models
• The real world can only be depicted in a GIS through the use of models that
• You have to show the computer how to think like you do as a map reader.
3
Vector Data Models
• The basis of the vector model is the assumption that the real world can be
• In principle, every point on a map and every point in the terrain it represents
the road. 4
GEOCODING
• Roads, contour lines, property boundaries, and other data indicated by lines
• Symbols designate the locations of mosques, airports, and other buildings and
facilities.
• Information on symbol types, line widths, colors, and so on, may be appended
• Line and polygon objects are more difficult to realize in a database because of
• Object spatial information and object attributes are often stored in different
6
GEOCODING
7
GEOCODING – Storing Points and Lines
8
GEOCODING – Storing Points and Lines
• We can do three things:
9
GEOCODING – Storing Points and Lines
• We can do three things:
10
Attribute of Points
11
Attribute of Lines
• Again, the basic table of X Y coordinates for a line is a relatively simple file
12
Attribute of Lines
13
Storing Area Object
14
Problems in Storing Area
• The use of centroids means that to store a single area in our GIS, we actually
need to store two things – the line defining the boundary and the point
• Because the two lines do not coincide, there are small areas of overlap, and
15
Problems in Storing Area
• These mismatches areas are called sliver polygons, because they are usually
analysis.
16
Spaghetti Data Model
• Among many of the commonly used vector based data structure, the spaghetti
• In the spaghetti data model each entity on a map becomes one logical record
• Each point, line, or polygon is stored as a record in a file that consists of that
17
Spaghetti Data Model
18
Spaghetti Data Model
19
Spaghetti Data Model
20
Spaghetti Data Model
21
Spaghetti Data Model
• Advantages
- simple
• Disadvantages
22