ADB Assignment 3 Solutions
ADB Assignment 3 Solutions
ASSIGNMENT – 3
Question 1:
1. List the applications of field-based spatial models.
2. Create a theme for the country spatial data model to represent the
location of the country using spatial data type.
3. Illustrate the tessellation model to represent spatial entity-based data.
4. Write the structure of the topological model to describe the country with
the vertices of (1,1), (7,3), (4,4), and (7,1)
Create a theme for the country spatial data model to represent the
location of the country using spatial data type.
Theme: Mapping the Administrative Boundaries of a Country
The country spatial data model can be used to represent the administrative
boundaries of a country using spatial data types. This theme is focused on
mapping the various levels of administrative divisions within a country,
including regions, states, provinces, districts, and municipalities. Here are some
potential elements to include in the country spatial data model for this theme:
Country boundary: This would involve representing the outer boundary of the
country, which could be defined by political, cultural, or geographic factors.
Administrative divisions: This would involve representing the various levels of
administrative divisions within the country, including their names, boundaries,
and hierarchical relationships. This could include states, provinces, districts,
municipalities, and other administrative divisions depending on the country.
Population and demographics: This would involve representing the population
and demographic characteristics of each administrative division, including age,
gender, ethnicity, and socioeconomic status.
Infrastructure: This would involve representing the various types of
infrastructure within each administrative division, including roads, airports,
seaports, and public transportation systems.
Land use: This would involve representing how the land within each
administrative division is being used, including urban areas, agricultural land,
and protected areas.
Political affiliations: This would involve representing the political affiliations of
each administrative division, including the ruling party, elected officials, and
other political institutions.
Overall, this theme would be useful for a variety of applications, including
electoral mapping, public policy analysis, and disaster response planning. By
representing the administrative boundaries of a country using spatial data
types, it becomes easier to analyse and understand the complex interactions
between different levels of government, as well as the social and economic
characteristics of different regions within the country.
In this diagram, each vertex is represented by a dot (*), and the edges are
represented by lines connecting the dots. The direction of the edges is not
important for the topological model, only the connectivity of the vertices
matters. Therefore, we can represent the polygon with the given vertices as a
simple connected graph, where each vertex is connected to its neighbouring
vertices by edges.
Question 2:
1. Which are the relational algebra operations used to manipulate the theme?
2. Which are the spatial objects used to describe the geographic objects?
4. State the tole of tessellation mode to represent continuous space of an object by a discrete value.
5. Describe the features of topologically integrated geographic encoding and referencing (TIGER)
data format.
After the selection of the countries whose population is greater than 50 million
inhabitants were obtained in the theme of selection.
ii)Projection: This operation is used to select specific attributes from a relation
and discard the rest.
Theme projection with signature2 theme × {A1,... An} → theme, where {A1,...
An} is a subset of the descriptive attributes of theme, returns a theme whose
description is made of the attributes in {A1,... An} and whose spatial part is
unchanged. If geo denotes the spatial type, and T denotes an instance of the
theme schema (i.e., a collection of geographic objects of this theme), this
operation is denoted by π A1,...An, geo(T ) (projection in the relational algebra).
Consider this operation and theme of western European countries with their
respective names and populations. Each country is a geographic object, and the
name of the country together with its population represents its description (Fig
a). By applying a theme projection to the population, we eliminate the country
names (Fig b). The resulting theme has as a schema (population, geo)
Theme projection: a theme of countries and population of western Europe (a) and projection
on the attribute population (b).
iii)Union: This operation combines two relations and returns a relation that
includes all the tuples in both relations, eliminating duplicates.
The (relational) union of two themes (theme × theme → theme) consists in
performing the union of sets of geographic objects having the same schema. It is
like the relational union. Hence if T1 and T2 are two theme instances, the result
is denoted T1 ∪ T2. The below figure depicts the union of two them.
Theme Union: A theme of countries of western Europe with more than (or exactly) 10
million inhabitants (a), theme of countries and population of western Europe with less than
10 million inhabitants (b), and the union of these two themes (c).
iv)Join: This operation is used to combine tuples from two relations based on a
common attribute, resulting in a new relation that includes all the attributes
from both input relations.
Overlaying two themes (theme × theme → theme) is common in GIS
applications. This operation generates a new theme from overlaid themes. New
geographic objects are created in the resulting theme. Their geometry is
computed by applying the intersection operation to the geometry of the involved
geographic objects.
If ∞G denotes a spatial join, and T1 and T2 are themes, then the overlay is
expressed as T1 ∞G T2. The following figure gives an example of the overlay of
Countries and Languages. The new theme has as descriptive attributes (country)
name and language. An example object of the new theme is the northern part of
Switzerland whose descriptive attributes are “Switzerland” and “Anglo-Saxon.”
Theme Join: T1 (theme of western European countries) (a) and T2 (families of languages
spoken all over western Europe) (b).
These operations can be combined to form complex queries that can manipulate
and retrieve data from relational databases efficiently.
2.Which are the spatial objects used to describe the geographic objects?
The most common spatial objects used to describe geographic objects are:
◆ Zero-dimensional objects or points: Points are used for representing the
location of entities whose shape is not considered as useful, or when the area is
quite small with respect to the embedding space size.
Example: Cities, churches, and crossings are examples of entities whose spatial
extent might be reduced to a point on a large-scale map.
◆ One-dimensional objects or linear objects: These objects are commonly
used for representing networks (roads, hydrography, and so on). The basic
geometric type considered is the polyline.
A polyline is defined as a finite set of line segments or edges, such that each
segment endpoint (called a vertex) is shared by exactly two segments, except
for two endpoints (called the extreme points), which belong to only one
segment. Variants of polyline are:
• A polyline is closed if the two extreme points are identical.
• A simple polyline is such that no pairs of non-consecutive edges
intersect at any place.
• A polyline is monotone with respect to a line L if every line L ’
orthogonal to L meets the polyline at one point at most.
Examples of one-dimensional objects: line segment (edge) (a), polyline (b), non-simple
polyline (c), simple closed polyline (d), monotone polyline (e), and non-monotone polyline
(f)
Examples of 2D objects: simple polygon (a), non-simple polygon (b), convex polygon (c),
monotone polygon (d), polygon with hole (e), and region (f).
These spatial objects are typically used in conjunction with geographic data
such as latitude and longitude coordinates, address information, and other
attributes to create a comprehensive representation of a geographic object. This
allows for advanced analysis and visualization of geographic data, which is
useful in fields such as geography, urban planning, and environmental science.
To represent the given polygons using the topological model, we can use the
following notation:
P1: <a, b, f>
P2: <c, d, e, f>
Here, P1 and P2 are the two polygons in the model, and a, b, c, d, e, and f are
the edges that make up these polygons. N1 and N2 are the two nodes/vertices
in the model.
The relationship between the polygons and edges can be represented by the
following expression for f:
f: [N1, N2, P1, P2, <>]
This indicates that f is a shared edge between both polygons P1 and P2, and it
connects the two vertices N1 and N2. The notation "<>" represents an empty
set, indicating that there are no other edges connected to f.
Overall, the topological model can be represented as:
Nodes/vertices: N1, N2
Polygons: P1 = <a, b, f>, P2 = <c, d, e, f>
Edges: a, b, c, d, e, f
And the relationship between the edges can be represented as:
a: [P1, <>]
b: [P1, <>]
c: [P2, <>]
d: [P2, <>]
e: [P2, <>]
f: [N1, N2, P1, P2, <>]
Diagram: The diagram would consist of two polygons, P1 and P2. Polygon P1
would have edges a, b, and f, while polygon P2 would have edges c, d, e, and f.
The vertices N1 and N2 would be connected by the shared edge f, which is part
of both polygons. The topology of the diagram would be represented by the
relationships between the edges, polygons, and vertices, and it would be like a
graph or network.
4.Discuss the issues related to Geo-Spatial Data Manipulation with their
models. Give example.
Geo-spatial data manipulation involves the handling, analysis, and visualization
of spatial data, which is used in various fields such as urban planning,
environmental management, agriculture, and many more. Some of the issues
related to geo-spatial data manipulation are:
Data format: Geo-spatial data can be represented in different formats such as
vector and raster data. Vector data is represented by points, lines, and
polygons, while raster data is represented by a grid of pixels. Different
software and tools use different data formats, which can create issues when
trying to manipulate and analyse data.
Example: A city planner may use ArcGIS software for analysing vector data,
while an environmental scientist may use QGIS software for analysing raster
data.
Data accuracy: Geo-spatial data accuracy is critical, as any inaccuracies can lead
to incorrect analysis and decision-making. Geo-spatial data is subject to errors
caused by GPS accuracy, data collection errors, and map projection issues.
Example: In a study of land use changes, using inaccurate spatial data may lead
to incorrect conclusions about changes in vegetation cover.