Docsity

Advanced Database Systems Homework 6: GIS and Spatial Queries - Prof. Sakti Pramanik, Assignments of Deductive Database Systems

Toggle sidebar
bg1
CSE 880, Fall 2008
Advanced Database Systems
Homework 6- GIS
Due: April 24
1. Revise the UML class diagram in figure 2.8 (ob ject model corresponding
to ER diagram with pictograms of figure 2.7/46/Rigaux) handed out in
class, to allow the following requirements:
(a) Facilities may have a spatial representation of point collection or
polygon collection.
(b) Roads are parts of a road network.
(c) Managers have a mailing address and a map location.
2. Assuming a mapping of the above diagram into a relational database (you
do not have to give the mapping), answer the following queries in object-
relational SQL. Assume GIS operations listed in OGIS standard for SQL,
are available (page 66/Shekhar).
(a) Get all facilities that are within 30 miles of river XYZ.
(b) List all facilities that are located within a forest.
3. (a) Find the Z-values of the pixels (01,10) and (11,11) in the following
figure :
11
10
01
00
00 01 10 11
(b) Why z-values are useful in GIS.
(c) Oracle uses Z-values for spatial join in the filter phase. Give a brief
description of how this spatial join is computed using Z-values.
4. Consider the sweep line method for rectangle intersection on page 164/Rigaux.
(a) Assume there are k intersections in the given set of rectangles. What
is the time complexity if we use straight forward nested loop to find
intersections.
(b) What is the time complexity if we use sweep-line method of page
165/Rigaux. Justify your answer using the algorithm.
5. Consider the algorithm for simple p olygon intersection on page 190/Rigaux.
Give the time complexity of each of the following steps of the algorithm:
(a) Classification of vertices.
(b) Finding the intersection points.
(c) Edge fragment selection.
1
pf2

Partial preview of the text

Download Advanced Database Systems Homework 6: GIS and Spatial Queries - Prof. Sakti Pramanik and more Assignments Deductive Database Systems in PDF only on Docsity!

CSE 880, Fall 2008

Advanced Database Systems

Homework 6- GIS

Due: April 24

  1. Revise the UML class diagram in figure 2.8 (object model corresponding to ER diagram with pictograms of figure 2.7/46/Rigaux) handed out in class, to allow the following requirements:

(a) Facilities may have a spatial representation of point collection or polygon collection. (b) Roads are parts of a road network. (c) Managers have a mailing address and a map location.

  1. Assuming a mapping of the above diagram into a relational database (you do not have to give the mapping), answer the following queries in object- relational SQL. Assume GIS operations listed in OGIS standard for SQL, are available (page 66/Shekhar).

(a) Get all facilities that are within 30 miles of river XYZ. (b) List all facilities that are located within a forest.

  1. (a) Find the Z-values of the pixels (01,10) and (11,11) in the following figure :

(b) Why z-values are useful in GIS. (c) Oracle uses Z-values for spatial join in the filter phase. Give a brief description of how this spatial join is computed using Z-values.

  1. Consider the sweep line method for rectangle intersection on page 164/Rigaux.

(a) Assume there are k intersections in the given set of rectangles. What is the time complexity if we use straight forward nested loop to find intersections. (b) What is the time complexity if we use sweep-line method of page 165/Rigaux. Justify your answer using the algorithm.

  1. Consider the algorithm for simple polygon intersection on page 190/Rigaux. Give the time complexity of each of the following steps of the algorithm:

(a) Classification of vertices. (b) Finding the intersection points. (c) Edge fragment selection.

(d) Extraction of resulting fragments.

  1. R-trees are used for performing spatial join during the filtering phase. (refer to the paper: Spatial Join Using R-trees/Brinkoff, Kriegel/Seeger.)

(a) Describe briefly the idea of restricting the search space used in SpatialJoin2. (b) Why is sorting needed in a page for the algorithm on page 242? (c) Why some of the pages needed to be sorted more than once in using the algorithm on page 242 of the paper. (d) Table 4 gives the number of comparisons used in main memory com- putations. Why is the cost increasing with increasing page size. If cost is increasing with increasing page size why is larger page size more efficient?