3rd UNIT DVT
3rd UNIT DVT
Spatial data is any type of data that directly or indirectly references a specific
geographical area or location. sometimes called geospatial data or geographic
information, spatial data can also numerically represent a physical object in a
geographic coordinate system.
In creating a visualization of spatial data, attributes of the data must match attributes(location) on the
screen.
It may involve many forms of transformations , including scaling, rotation, translation,shearing, and
projection.
In this the wide range of techniques that have been applied to spatial data according to the
dimensionality are:
One-Dimensional Data.
Two-Dimensional Data.
Multidimensional Data.
Dynamic Data.
One – Dimensional Data
It is often the result of accumulating samples or readings of some phenomenon while moving along a path in
space.
For Example, A drill-hole sample with mineral & ore content.
This sort of sampling is called “Probe” when exploring structures of higher dimensions.
Given a one-dimensional sequence of univariate data(only one value per data item), we can map the spatial
data to one of the screen dimension(to form a line-graph) or to the color of a mark or region along the spatial
axis.
Data needs to be scaled to fit within the range might be reserved for other aspects of the visualization, such as
axes, labels and key.
The general structure of the alogorithm to generate such a visualization will use parameters for the bounds of
both data and display spaces.
datamin,datamax are computed as the minimum and maximum values for the data,
Count indicated no. of data points to be displayed.
Section of the display that will hold the visualization is defined by the rectangle(xmin,ymin,xmax,ymax)
The algorithm to render a line graph from a set of Data
drawLineGraph(data[],count,xMin,xMax,yMin,yMax)
dataMin = minimum(data,count)
dataMax = maximum(data,count)
xFrom = xMin
yFrom = yScaling(dataSet[0],dataMin,dataMax,yMin,yMax)
for i=1 to count //for each data value
xTo = xScaling(i,count,xMin,xMax)
yTo = yScaling(dataSet[i],dataMin,dataMax,yMin,yMax)
drawLine(xFrom,yFrom,xTo,yTo)
xFrom = xTo
yFrom = yTo
xScaling(value,count,min,max)
return min + index*(max-min)/count
yScaling(value,min,max,yMin,yMax)
A bar graph is similar to a line graph,except that each datapoint is replaced by a coloured rectangle whose
height is proportional to the value.
The rectangle is usually centered on the spatial attribute of the data, and its width is often uniform.
If the data set is multivariate, e.g., it contains more than one variable or value per data entry, we can expand
on any of the univariate strategies using juxtapositioning or superimpositioning.
Juxtapositioning:
Juxtaposition is an act or instance of placing two elements close together or side by side. This is
often done in order to compare/contrast the two, to show similarities or differences
For line graphs, it means that visualization
consist of a stack of non-overlapping graphs
(if variables with different scales) or a graph
containing plots of two or more variables.
TWO-DIMENSIONAL DATA
Data with two spatial dimensions get visualized predominantly by mapping the spatial
attributes of the data to the spatial attributes of the screen.
Result can be of one of the visualizations.
1. An Image results if a single data value at each location is mapped to color and all
intermediate pixels are coloured via Interpolation.
2. A Rubber sheet results if the data, whether regularly or irregularly spaced, is mapped to
the height of a point in three dimensions, with the points trianguled so that surface can be
formed.
3. A Cityscape is formed by drawing three-dimensional objects(generally boxes) at
locations on a plane, where the data can control the attributes of the graphical objects(i.e.,
height & color), such as seen.
4. A Scatterplot results if, at each location on the plot, the data value(s) control the color,
shape, or size of a marker.
5. A Map results if the data contains linear and area features , as well as point objects.
Linear feature – road or stream represented by a sequence of coordinates, which are plotted
as a series of line segments.
Area feature – lake or political boundary is represented as a closed contour, a set of
coordinates where first and last points are same.
6. A contour or isovalue map conveys boundary information extracted from an image depicting
a continuous phenomenon such as elevation or temperature.
Isovalue means “single value” contour on such a map indicates boundary between points above
this value and points below the value.
A contour plot is a graphical technique for representing a 3-dimensional surface by
plotting constant z slices, called contours, on a 2-dimensional format. That is, given a value
for z, lines are drawn for connecting the (x,y) coordinates where that z value occurs.
A Contour Plot is a graphic representation of the relationships among three numeric
variables in two dimensions. Two variables are for X and Y axes, and a third variable Z is for
contour levels. The contour levels are plotted as curves; the area between curves can be
color coded to indicate interpolated values.
Rubber Sheet Visualization A Cityscape showing the density of airtraffic at a timeperiod.