5. Raster data
• Resolution
• Data types:
• Integer – for discrete or
boolean (0,1) data
• Float – for continuous data
• NODATA, mv, nan
5
pixel
height
width
55.5
13. Why raster data?
• Rasters can represent
continuous information
better than vectors, e.g.:
• Gradients in vegetation
cover
• Elevation
Can you name a few more?
13
14. Raster types
• Discrete rasters: integer values representing classes
• E.g. Land-use map, soil map
• Continuous rasters: real values representing features
without sharp borders
• E.g. DEM, temperature map, soil moisture map, runoff map
• Boolean rasters: 1 or 0, representing true or false
14
16. Consist of several single band rasters.
Each band relates to a range
in the electromagnetic
spectrum collected by a sensor.
Electromagnetic spectrum
Bands are commonly displayed as red
green and blue composits (RGB).
Multi-band rasters
17. Continuous raster data - examples
• Remote sensing data
• Digital Elevation Models
(DEMs)
• Interpolated point data
17
19. Vector versus Raster
• Raster data is computationally less expensive to render than vector graphics
• Transparency and aliasing problems when overlaying raster data
• Vector data allows for visually smooth and easy implementation of overlay operations
• Vector data can be easier to register, scale, and re-project
• Vector data is more compatible with relational database environments, where they can
be part of a relational table as a normal column and processed using a multitude of
operators.
• Vector file sizes are usually smaller than raster data, which can be tens, hundreds or
more times larger than vector data
• Vector data is simpler to update and maintain, whereas a raster image will have to be
completely reproduced.
• Vector data allows much more analysis capability, especially for "networks" such as
roads, power, rail, telecommunications, etc.
19