You are on page 1of 33

RASTER AND VECTOR

DATA

L#3

04/03/2023 1
CONTENTS
1. INTRODUCTION
a. RASTER
b. VECTOR
2. DEFINITIONS
3. CHARACTERISTICS
4. ADVANTAGES OF RASTER AND VECTOR
5. DISADVANTAGES OF RASTER AND VECTOR DATA
6. COMPARISION BETWEEN RASTER AND VECTOR
7. EXAMPLES
8. CONCLUSION

04/03/2023 2
RASTER AND VECTOR DATA
• Geographic features stored in a GIS can be
considered as one of three types:
• points: no area at this scale (e.g. building,
tower)
• lines (arcs): no width at this scale (e.g. river,
road, administrative boundary)
• areas (polygons): line surrounding enclosed
area (e.g. forest stand, census district)
• Spatial characteristics of features can be stored
in a GIS in one of two ways:
as raster data or as vector data.

04/03/2023 3
 Thus geographically referenced data is stored in: -
· Raster (grid or cellular-based) data structure.
·x, y coordinate reference-based (vector) data
structure.
 Raster data structure

 Grid or cellular-based

Grid representation of a measured image property in


which each grid cell (pixel) comprises a digital
number. The larger the area represented the lower the
resolution of the data. The smaller the area covered the
greater the resolution and the more accurately features
are represented.

04/03/2023 4
 Vector data structure

 Arc-node model

Arcs represent the shape of lines and


are split at their intersections with other
arcs, where nodes occur; nodes
represent the beginning and ending
vertex of each arc. Vector format-
representation of features on the earth as
lines, points, or polygons as a series or
XY Cartesian coordinates

04/03/2023 5
DEFINITIONS:

• RASTER DATA MODEL


A spatial data model that uses a
grid and cells to represent the spatial
variation of a feature.
• VECTOR DATA MODEL
A data model that uses points and
their x-, y- coordinates to construct
spatial features.

04/03/2023 6
Characteristics Of Raster Data Model

• Simple 'grid' structure of rows and


columns.
• Based on cells or picture elements
(pixels).
• Linear feature (e.g. a road) is a
contiguous set of cells.
• Resolution based on size of grid (cell)
the smaller the cell, the higher the
resolution.
• Features are considered homogenous
within a pixel.
• Storage increases with the square of the
resolution.

04/03/2023 7
Characteristics Of Vector Data Model

• Based on objects (points, lines, areas).


• Constructed using arcs, nodes and
vertices.
• Resolution can be independent of
detail.
• Every point has a unique location.

04/03/2023 8
Figure 1:ILLUSTRATING
RASTER and VECTOR DATA

(b) Vector Data (a) Raster Data

04/03/2023 9
Figure 2:ILLUSTRATING
RASTER and VECTOR DATA

(b) Vector Data (a) Raster Data

04/03/2023 10
Figure 3:ILLUSTRATING
RASTER and VECTOR DATA
(b) Vector Data (a) Raster Data

04/03/2023 11
Advantages of Raster Data
Structures
• Simple data structures.
• Overlay and combination of maps and remote sensed
images easy.
• Some spatial analysis methods simple to perform.
• Simulation easy, because cells have the same size and
shape.
• Technology is cheap.
• Compatible with remote sensing.
• High spatial variability available which is efficiently
represented (e.g. relief).
• Only raster can store image data (e.g. photos).

04/03/2023 12
Advantages of Vector Data
Structures
• Good representation of phenomenonology.
• Topology can be completely described and
easy to maintain.
• Accurate graphics, retrieval, updating and
generalization of graphics and attributes
possible.
• Requires less disk storage.
• Graphical maps more closely represent hand-
drawn.
• Compact data structure for homogenous
areas.
• Better suited for map output.

04/03/2023 13
Disadvantages of Raster Data Structures

• Crude raster maps are considerably less beautiful than


line maps.
• Projection transformations are time consuming
• Requires more storage space.
• Boundaries has more blocky appearance.
• More difficult to represent topology.
• Data structure is not compact (though it can be
modified).
• Topological relationships are harder to
represent.
• Map output can appear 'blocky‘, less accurate
maps.
• The use of large cells to reduce data volumes means
that recognizable structures can be lost and there can be
a serious loss of information (drop out).
04/03/2023 14
Disadvantages of Vector Data Structures

• More complex Data Structures.


• Combination of several vector polygon maps or polygon and raster maps
through overlay creates difficulties.
• Simulation is difficult because each unit has a different topological form.
• Display and plotting can be expensive, particularly for high quality, color and
cross-hatching.
• Spatial analysis and filtering within polygons are impossible.
• Not as compatible with remote sensing as raster data.
• Overlay analysis more time-consuming than raster data.
• High spatial variability is less efficiently stored.
• Cannot store (continuously varying) image data.

04/03/2023 15
COMPARISON OF RASTER AND VECTOR
DATA MODELS
 The primary focus of the vector data model is the
geographic feature; the primary focus of the raster
data model is location.
 The vector data model is more suited to the
question of “What do I know about this geographic
feature? The raster data model answers the
question, “What geographic phenomenon occurs at
this location.”
 The vector model uses x, y coordinates to represent
geographic features, raster store rows and
columns of cell values.
 The vector data model defines boundaries. There
are no boundaries defined in the raster data model.

04/03/2023 16
Continued…
The vector data model represents location as x, y
coordinates in a Cartesian coordinate systems. The raster
model represents location as cells, also in a Cartesian
coordinate system.

The vector model represents feature shape accurately;


the raster model represents rectangular areas and thus is
more generalized and less accurate.

04/03/2023 17
Continued…
The vector model represents features with well-defined
boundaries; the raster model represents a more generalized
view. The raster model can also represent gradual transition
between features and surfaces, such as soil classification and
elevation

The vector model is used for high-quality cartography and


where accuracy and precision are important, such as for
cadastral (property) applications. The raster data model is useful
for image/picture storage and is well suited to many spatial
modeling operations (as optimum corridor route selection,
modeling surface storm runoff, and forest fire spread).

04/03/2023 18
Figure 4: In a more complex example, this image shows both raster
data (satellite image of UNBC and area) and vector data
(Cranbrook Hill Greenway).This image is at normal size (no zoom).

04/03/2023 19
Figure 4: When we zoom in 16X from the previous image, the
difference between raster and vector data becomes more
apparent. The raster data is defined by an individual colour
(representing a data value) for each grid cell. The vector data
remains a solid red line with the same width.

04/03/2023 20
Figure 5: RASTER - AND VECTOR -
VISUALISATION OF IDENTICAL SPATIAL OBJECT
IN GIS

04/03/2023 21
Figure 6 : A simplified example of the
difference between raster data and vector data

04/03/2023 22
Examples of vector and raster data

• Examples of vector data: DLGs (digital line


graphs), TIGER files (U.S census data)
• Examples of raster data: DRGs, Remotely
sensed data (imagery); DOQs (photos);
DEMs (grids)

04/03/2023 23
CONVERSION BETWEEN DATA MODELS

• You can convert data between rasters and vectors


but the nature of the data will be very different.

04/03/2023 24
Continued…

Below is an example of watersheds in Humboldt County


represented as Shapefiles. The "Feature To Raster" tool will
convert these polygons to rasters.

04/03/2023 25
Continued…

The image below looks very similar to the one above but now the
watersheds are represented as rasters.

04/03/2023 26
PROBLEMS ASSOCIATED WITH
CONVERSION
Whenever you convert data from raster to vector or vector to
raster, you will degrade the data by some amount. Issues include:
• Loss of detail
• Loss of accuracy
• Stair stepping (raster to vector)
• Changes to the original data

04/03/2023 27
CHOOSING BETWEEN DATA MODELS

"Raster is faster but vector is corrector“, This is a common


saying in GIS.
More detailed guidelines are:
• Raster data is useful when:
• Working with continuous data types: elevation, slope, satellite photos
• Good for large area analyses
• Good for surface analysis
• Mathematical modeling
Spatial detail isn't important
• Vector data is useful when:
• Working with discrete data types: trees, buildings, property boundaries
• Good for small study areas
• Spatial detail is important (When "close enough" isn't really good enough)
• When topology is needed for the analysis

04/03/2023 28
Continued…

Other factors that can influence your decision include:


• Available storage: some rasters are really large
• Expected types of analysis: some tools only work with raster or
vector data
• Expertise of human operators
• Level of accuracy desired

04/03/2023 29
Conversions

Raster to Points:
Raster to Point
Raster to Polyline:
Contour
Stream to Feature
Raster to polyline
Cost Path
Raster to Polygon
Viewsheds
Watersheds
Raster to Polygon

04/03/2023 30
Continued…

Point to Raster
Interpolation tools: Kriging, IDW, Splines, etc.
Density tools: Kernel density
Point to Raster
Polyline to Raster
Polyline to Raster
Raster Domain
Polygon to Raster
Polygon to Raster
Raster Domain
Topo to Raster

Note: Digitizing is where you convert


raster data into vector data!
04/03/2023 31
Which is better, raster or vector?

o Raster
o Vector
o Depends on the type of data and the analysis

04/03/2023 32
CONCLUSION
• Raster data are data continuously spread in space,
which are structured in a measured matrix of usually
quadratic cells and cells with the same size. Each
cell gets an attribute (property, attribute date), which
represents an appropriate phenomenon.

• Vector data are used for the storage of line


information and/or for the storage of homogeneous
areas at closed lines (polygons). Each vector object
can be assigned with none, one or several attributes
(property).

04/03/2023 33

You might also like