Data Models (Compatibility Mode)
Data Models (Compatibility Mode)
Data Models
&
Conceptual Model of Spatial Information
• Non-Spatial
N S i l data:
d IInformation
f i about
b various
i
attributes like area, length &
population
iirs Characteristics of Spatial Data
• Geo
G -relational
Geo- l ti l model
d l (vector)
( t )
iirs spatial data models
–raster model
–vector
t model
d l
iirs Spatial data types
• Regular
l tessellations
ll i
• Irregular tessellations
• Point data
• Line data
• A ddata
Area
iirs
line
feature
area
point feature feature
iirs Vector model
iirs Line Types
How to organize
g vectors in Computer
p ?
Spaghetti Structure
Topological Structure
iirs Spaghetti Vector Structure
Spaghetti
p g structure is usually
y derived
from manual digitizing
C
Crossing
i lines
li (no
( crossingi nodes)
d )
The common boundary between adjacent
polygons is recorded twice
No neighbourhood information
Unlinked data require a large amount of
storage
t memory
iirs Whole Polygon Structure
(A Kind of Spaghetti)
Whole
Wh l Polygon
P l (boundary
(b d structure):
t t ) polygonsl
described by listing coordinates of points in order as
yyou ‘walk around’ the outside boundaryy of the
polygon
• coordinates/borders for adjacent polygons stored twice
¾ may nott be
b same, resulting
lti ini slivers
li (gaps),
( ) or overlap
l
• all lines are ‘double’ (except for those on the outside
periphery)
• no topological information about polygons
¾ which are adjacent and have common boundary?
¾ how to relate different g
geographies?
g p e.g.
g zip
p codes and tracts?
iirs Whole Polygon: illustration
iirs Points & Polygons Structure
Area:
Area: Polygons can be defined by set of lines enclose them
Contiguity:: Identification of polygons which touch each other or
Contiguity
connect identify contiguos polgons (left or right)
Connectivity:
Connectivity
Co ect v ty:
ty: Identification
de t cat o oof interconnected
te co ected arcs,
a cs, starting
sta t g point
po t
& end point of network analysis
iirs Rubber Sheet Transformation
1 1
C 5 C 5
A A
D E 7 D E 7
6 6
4 3 4 3
B B
2 2
iirs Topology-1
Advantages
• Good modeling of objects (object-view)
• Compact data structure
• Topology can be described explicitly – therefore good
f analysis
for l i
• Coordinate transformation & rubber sheeting is easy
• Accurate graphic representation at all scales
• Retrieval, updating and generalization of graphics &
attributes are possible
iirs Vector Data Structures
Disadvantages
g
• Complex data structures
• Combining
C bi i severall polygon
l networks
t k by
b
intersection & overlay is difficult; uses
considerable computer power
• Display & plotting often time consuming
and expensive; especially high quality
drawings, coloring, and shading
iirs
Quad-tree Compression
• Used widely for spatial data indexing
• Quadtree codes with N-order (Peano key–based)
iirs Raster Ordering
Raster is two-dimensional
2-D ordering is developed to create a 1-D
representation of the 2-D raster, in order to improve
the efficiency of raster access.
iirs Raster Compression Cont’d
“lossless”
lossless compression vs “lossy”
lossy
compression
• Can you reproduce exactly the original data
from the compressed data?
Zip (2
(2-5:1)
5:1)
GIF (2-4:1), JPEG (10-40:1), MPEG
(50 1)
(50:1).
ECW , Mr. Sid etc.
iirs Raster Data Structures
Advantages
• Si
Simple
l data
d structures
• Location-specific manipulation of attribute
d t is
data i easy
• Many kinds of spatial analysis and filtering
may be
b usedd
• Mathematical modeling is easy because all
spatial
ti l entities
titi have
h a simple,
i l regularl shape
h
iirs Raster Data Structures
Disadvantages
g
• Large data volumes
• Using large grid cells to reduce data volumes
reduces spatial resolution; loss of information
& inability
ab ty to recognize
ecog e pphenomena
e o e a that
t at have
ave
logically defined structures
• Crude raster mapsp are inelegant
g though g ggraphic
p
elegance is becoming less of a problem
• Coordinate transformations are difficult and time
consuming unless special algorithms are employed
iirs Distortion of shapes in raster data
iirs GIS Data Models: Raster vs. Vector
iirs Choices: Raster vs. Vector
iirs
THANK YOU