Professional Documents
Culture Documents
Cell-by-Cell encoding
• By convention, raster data is Cell-by-cell encoding
normally stored row by row from the
top left corner.
• This is the simplest raster data
structure and is characterised by
subdividing a geographic space into
grid cells. Each pixel or grid cell
contains a value. A grid matrix and its
cell values for a raster are arranged
into a file by row and column.
• It encodes a raster by creating
records for each cell value by row Multispectral image
and column
• This method is also referred to as
“exhaustive enumeration.”
• Cell-by-cell encoding can be used to
encode satellite images
(Multispectral)
Better life through Technology
Dedan Kimathi University of Technology
Better life through Technology
Dedan Kimathi University of Technology
Cell-by-Cell encoding
• For mul:-spectral satellite image, each cell has more than one value, data are
stored in either of the following formats. –
• BSQ (Band Sequential Format): – each line of the data followed immediately by the next
line in the same spectral band. This format is optimal for spatial (X, Y) access of any part of
a single spectral band. Good for multispectral images
• BIP (Band Interleaved by Pixel Format): – the first pixel for all bands in sequential order,
followed by the second pixel for all bands, followed by the third pixel for all bands, etc.,
interleaved up to the number of pixels. This format provides optimum performance for
spectral (Z) access of the image data. Good for hyperspectral images
• BIL (Band Interleaved by Line Format): – the first line of the first band followed by the first
line of the second band, followed by the first line of the third band, interleaved up to the
number of bands. Subsequent lines for each band are interleaved in similar fashion. Good
for images with 20-60 bands.
• The BIL, BIP, and BSQ files are binary files, and they must have an associated
ASCII file header to be interpreted properly.
• his header file contains ancillary data about the image such as the number of
rows and columns in the image, if there is a color map, and latitude and
longitude.
• Why is it important to know about the format? If you want to write a program to
read an image, given the metadata. Read a value of particular pixel of any given
band
Better life through Technology
Dedan Kimathi University of Technology
BSQ
BIP
Better life through Technology
Dedan Kimathi University of Technology
run-length encoding
Better life through Technology
Dedan Kimathi University of Technology
• BMP (Bitmap)
• B/W Bitmap is monochrome and the color table contains two entries.
Each bit in the bitmap array represents a pixel. If the bit is clear, the
pixel is displayed with the color of the first entry in the color table. If the
bit is set, the pixel has the color of the second entry in the table.
• JPEG (Joint Photographic Expert Group Format)
• A JPEG image provides very good compression, but does not
uncompress exactly as it was; JPEG is a lossy compression techniques.
Compressions up to 50:1 are easily obtainable.
• PNG (Portable Network Graphics)
• The PNG format was designed to replace the antiquated GIF format, and
to some extent, the TIFF format. It utilizes lossless compression. It is a
universal format that is recognized by the World Wide Web consortium,
and supported by modern web browsers.
Better life through Technology
Dedan Kimathi University of Technology
Topology features
• Connectivity
• Arc node topology defines connectivity - arcs are
connected to each other if they share a common node.
This is the basis for many network tracing and path
finding operations.
• Arcs represent linear features and the borders of area
features. Every arc has a from-node which is the first
vertex in the arc and a to-node which is the last vertex.
These two nodes define the direction of the arc. Nodes
indicate the endpoints and intersections of arcs. They
do not exist independently and therefore cannot be
added or deleted except by adding and deleting arcs.
Better life through Technology
Dedan Kimathi University of Technology
Topology features
• Contiguity
• Polygon topology defines contiguity. The polygons
are said to be contiguous if they share a common
arc. Contiguity allows the vector data model to
determine adjacency.
•
Better life through Technology
Dedan Kimathi University of Technology
Topology
Topology features
• Containment
• Geographic features cover distinguishable area on
the surface of the earth.
• An area is represented by one or more boundaries
defining a polygon.
• The polygons can be simple or they can be complex
with a hole or island in the middle.
Better life through Technology
Dedan Kimathi University of Technology
Topology features
• A lake D has an island in the middle.
Polygon arc topolgy
• The lake actually has two boundaries,
one which defines its outer edge and
the other (island) which defines its
inner edge.
• An island defines the inner boundary
of a polygon.
• The polygon D is made up of arc 5, 6
and 7.
• The 0 before the 7 indicates that the
arc 7 creates an island in the
polygon.
• Polygons are represented as an
ordered list of arcs and not in terms
of X, Y coordinates. This is
called Polygon-Arc topology.
Better life through Technology
Dedan Kimathi University of Technology
Vector Editing
• Vector data editing is a post digitizing process that
ensures that the data is free from errors. It ensures
that:
• Lines intersect properly without having any undershoots
or overshoots
• Nodes are created at all points where lines intersect
• All polygons are closed and each of them contain a label
point
• Topology of the layer is built
Better life through Technology
Dedan Kimathi University of Technology
Topological errors
• Dangle: An arc is said to be a dangling arc if either it is not
connected to another arc properly (undershoot) or is digitized
past its intersection with another arc (overshoot).
• Sliver polygon: It refers to the gap which is created between the
two polygons when snapping is not considered while creating
those polygons.
• These errors can be corrected using the constraints or the rules
which are defined for the layers.
• Topology rules define the permissible spatial relationships
between features.
• Digitizing and geocoding: Many errors arise at the time of
digitization, geocoding, overlaying or rasterizing. The errors
associated with damaged source maps and error while digitizing
can be corrected by comparing original maps with digitized
versions.
Better life through Technology
Dedan Kimathi University of Technology
Error propagation
• No map stored in a GIS is truly error-free
• Errors include not only "mistakes" and "blunders", but also to include the
statistical concept of error meaning "variation“
• When maps stored in a GIS database are used as input to a GIS operation, then
the errors in the input will propagate to the output of the operation.
• Moreover, the error propagation continues when the output from one
operation is used as input to an ensuing operation.
• Consequently, when no record is kept of the accuracy of intermediate results, it
becomes extremely difficult to evaluate the accuracy of the final result
• Although users may be aware that errors propagate through their analyses, in
practice they rarely pay attention to this problem. No professional GIS currently
in use can present the user with information about the confidence limits that
should be associated with the results of an analysis
• Therefore, there is need to be aware of the quality of data on is using.
Better life through Technology
Dedan Kimathi University of Technology