Professional Documents
Culture Documents
2 Data For GIS
2 Data For GIS
Data Structures
An attribute is a
characteristic of an entity
selected for representation
Data Models:
Field - Object Based
FIELD-based model
Partitions space into a regular
grid and assigns attributes to
the pixels; therefore, it
encodes spatial relationships
FIELD OBJECT implicitly
Georeferenced R3
C5
Pixel
Rows
Pixel
Resolution Columns
Raster Values
Each cell contains a SINGLE data value
I.e. (x,y,z)
This number is the value of the attribute
being mapped / coded (E.g.
Temperature, Elevation, Colour)
The correct data type must be used in
order to store the whole number
accurately
Common Raster Data Structures
Numeric Signed /
No. of Bits Possible Range
Type Unsigned
1 (20) Integer Unsigned 0 to +1
8 (23) Integer Unsigned 0 to + 255
8 Integer Signed -128 to +127
16 (24) Integer Unsigned 0 to + 65 535
16 Integer Signed -32 768 to +32 767
Red Value: 0 to 255
3 Set of 3 Unsigned
24 (3 x 2 ) Green value: 0 to 255
Integers Indicating RGB Blue Value: 0 to 255
32 (25) Integer Unsigned 0 to +4 294 967 295
Wide range of decimal numbers
32 Floating Signed with 7 place accuracy
Double
6 Wide range of decimal numbers
64 (2 ) Precision Signed with 14 place accuracy
Floating
Raster Histograms
Typically there are hundreds to millions of cells in a
raster.
In order to investigate these values a histogram of
value vs... frequency is plotted to help analyze the
data in the raster.
This allows statistics to be calculated for the raster.
These include:
• Range (Minimum to Maximum)
• Mean
• Median
• Mode
• Standard deviation
Raster Histogram
Each pixel
comprises of
a
measuremen
t stored as a
digital
number in the
matrix.
IRS-1: Indian Satellite
Indian Harbour
Southern Iran
Display RGB
Rasters
Raster Resolution
The spatial resolution of a raster (I.e. the area of
each pixel) is dependant upon numerous factors
such as:
• data capture source (E.g. satellite sensor, field
sampling strategy)
• accuracy of data capture
• output requirements and purpose of project
Increasing the number of cells in a coverage will
increase its spatial accuracy BUT utilizes more
computer storage space and will have a longer
processing time.
Spatial Resolution
23 metres 40 metres
Mixed Pixels
5 4 or 7???
3 3
4 4
Vector Structure
The Vector data structure is used to represent
Dis-Continuous data:
• soil
• vegetation
• geology
Vector data features include:
• Point / Line / Polygon Elements
• Attached to attributes
• Topology
Vector Structure
Vector features are defined by
“coordinate points” - spots located
precisely by X-Y coordinates.
A vector is a line with direction and
magnitude x1, y1, z1
x2, y2, z2
Types of Vector Elements
Nominal
Airport Forest
River
Town Ocean
Swamp
H Hospital Boundary
Ordinal
Rank
10 People Density
Interval
Contour Lines
100 People 300
200
1000 People 100
Attribute Data
An attribute is a description of a feature - a
characteristic of it. They are used to describe
spatial data and are linked to the spatial data.
PROPERTY AREA
OWNER TAX CODE SOIL QUALITY
NUMBER (ha)
Qualitative Quantitative
attributes attributes
4
in
VER. 2
ha
(C
5 7, 5 9, 5
VER. 4 POLYGON
3)
6 1, 6
in
(C ha
ha
in
(C
4) VER. 3
7
4, 8
8
Storing Point Data
1
ID No. X Y Z
2 X2 Y2 Z2
2
Storing Line Data - Inefficient
1 1 2
2
LINE 1
X1 Y1 Z1 3
X2 Y2 Z2
LINE 2
X2 Y2 Z2
X3 Y3 Z3
Storing Line Data - Relational
1 1 2
Line Table
2
Index 3
field
Line ID Point List
Point Table
1 1 2 ID No. Locational Table
Link
2 2 3 1 10231 32000 541
2 X2 Y2 Z2
Note: Direction
Storing Polygon Data - Inefficient
POLYGON 1
1 X1 Y1 Z1
6 1 X2 Y2 Z2
X3 Y3 Z3
2 X4 Y4 Z4
6
7 X5 Y5 Z5
1 7 X6 Y6 Z6
5 2 2 POLYGON 2
X2 Y2 Z2
8 X3 Y3 Z3
3
X7 Y7 Z7
5
4 3
4
Storing Polygon Data - Relational
Polygon Table
Poly ID Line List
1 1, 2, 3, 4, 5, 6
6 1 2 7, 8, 2
2 Line Table
6 7
1 7 Line ID Point
5 2 2 1 List
1, 2
2 2, 3
8 3 3, 4
3
5 8 7, 3
4 3
4
Observations
1. Sequence ordering of Line ID Point List
points list gives the line 1 1 2
DIRECTION
2 2 3
5
1 2 2
Poly ID Line List 8
1 1, 2, 3, 4, 5, 6
4 3
2 7, 8, 2
Topology
By building vector data in this manner,
allowing direction and neighbourhood
relations to be intrinsically incorporated
into the data structure, the data has
“Intelligence”.
This is known as TOPOLOGY
Topology
Topology is concerned with the spatial
relationships between elements
Each element:
• Knows where it is (position)
• Knows what is around it
• Knows how to get around (from A to B)
Topological Properties: Adjacency
Poly A is next to
Poly B
Node 2 Arc 1 knows it
goes from Node 1
to Node 2,
A B therefore the
Left Poly is A
Arc 1 and the
Node 1 Right Poly is B
Topological Properties: Connectivity
Node 1 has Arcs
(Chains / Lines) A, B
A Node 1 B and C entering /
leaving it.
Therefore it knows
that Arc A is
connected to Arcs B
and C.
C It also knows in which
direction these
connections are.
Topological Properties: Containment
Polygon B is
contained within
Polygon A
A B Polygon A contains
Polygon B within it
These are also
referred to as
Islands
Topology Types: Strict / Polygonal
No two nodes have the same X and Y
coordinates
All lines start and end in nodes
No lines may intersect unless there is a node
Enclosed areas are defined as a polygon
A point can only exist in one polygon
Polygonal topology is essential for accurate ground
measurements and many vector overlay operations.
However, it takes time and care to maintain.
Topology Types: Planar
No two nodes have the same X and Y
coordinates
All lines start and end in nodes
No lines may intersect unless there is a node
There are no polygons
Vector
Raster
Vectors: Advantages
Maplike / Easier to Read
Spatially Accurate: Area / Distance
calculations precise
Topology
Compact Storage
Can be linked to numerous attributes
Vectors: Disadvantages
Complex digital structure
Data Modelling complicated and time
consuming
Requires “high-end” computers
Requires more experience and knowledge
to manipulate and achieve answers
More expensive
CAD Data
CAD data may look like vector data but
is NOT the same!
CAD has no Topology - it cannot perform
spatial or statistical analysis
CAD supports layers
CAD was developed for computerized
drafting and design (architecture,
engineering etc.)
CAD Elements
Line
Point
EX T
T
Circle Rectangle
Arc Regular
Polygon
3D
Elements
Arc
Chord Polygon
CAD Elements: Geometric Shapes
As seen previously, CAD elements are
geometric shapes - they store the geometric
description of the shape as an equation
This means:
• faster to display Circle = Centre point (x, y)
• less storage space + radius (r)
CAD B Vector B
A A
?