Abstract
An algorithm is presented to answer window queries in a quadtree-based spatial database environment by retrieving all of the quadtree blocks in the underlying spatial database that cover the quadtree blocks that comprise the window. It works by decomposing the window operation into sub-operations over smaller window partitions. These partitions are the quadtree blocks corresponding to the window. Although a block b in the underlying spatial database may cover several of the smaller window partitions, b is only retrieved once rather than multiple times. This is achieved by using an auxiliary main memory data structure called the active border which requires O(n) additional storage for a window query of size n×n. As a result, the algorithm generates an optimal number of disk I/O requests to answer a window query (i.e., one request per covering quadtree block). A proof of correctness and an analysis of the algorithm's execution time and space requirements are given, as are some experimental results.
Similar content being viewed by others
References
A. Aboulnaga. An algorithm and a cost model for window queries in spatial databases. Master's thesis, Department of Computer Science and Automatic Control, Alexandria University, Alexandria, Egypt, 1996.
W.G. Aref and H. Samet. Uniquely reporting spatial objects: yet another operation for comparing spatial data structures. In Proceedings of the Fifth International Symposium on Spatial Data Handling, pages 178–189, Charleston, South Carolina, August 1992.
W.G. Aref and H. Samet. Decomposing a window into maximal quadtree blocks. Acta Informatica, 30:425–439, 1993 (also University of Maryland Computer Science TR-2771).
W.G. Aref and H. Samet. Hashing by proximity to process duplicates in spatial databases. In Proceedings of the Third International Conference on Information and Knowledge Management, pages 347–354, Gaithersburg, Maryland, December 1994. ACM Press.
W.G. Aref and H. Samet. Multidimensional window retrieval in large spatial databases Technical Report CS-TR-3716, UMIACS-TR-96-86, The University of Maryland Institute for Advanced Computer Studies (UMIACS), College Park, MD, November 1996.
N. Beckmann, H.P. Kriegel, R. Schneider, and B. Seeger. The R*-tree: an efficient and robust access method for points and rectangles. In Proceedings of the SIGMOD Conference, pages 322–331, Atlantic City, NJ, June 1990.
D. Comer. The ubiquitous B-tree. ACM Computing Surveys, 11(2):121–137, June 1979.
C.R. Dyer. The space efficiency of quadtrees. Computer Graphics and Image Processing, 19(4):335–348, August 1982.
M.J. Egenhofer and J.R. Herring, editors. Advances in Spatial Databases—Fourth International Symposium, SSD'95. Springer-Verlag, Berlin, 1995. (also Lecture Notes in Computer Science 951).
R. Elmasri and S.B. Navathe. Fundamentals of Database Systems. Benjamin Cummings, Redwood City, CA, 1989.
C. Faloutsos. Analytical results on the quadtree decomposition of arbitrary rectangles. Department of Computer Science UMIACS-TR-89-115/CS-TR-2354, University of Maryland, College Park, MD, November 1989.
W.R. Franklin. Adaptive grids for geometric operations. Cartographica, 21(2&3):160–167, Summer & Autumn 1984.
M. Freeston. The BANG file: a new kind of gird file. In Proceedings of the SIGMOD Conference, pages 260–269, San Francisco, May 1987.
I. Gargantini. An effective way to represent quadtrees. Communications of the ACM, 25(12):905–910, December 1982.
O. Günther. Efficient structures for geometric data management. PhD thesis, University of California at Berkeley, Berkeley, CA, 1987. (Lecture Notes in Computer Science 337, Springer-Verlag, Berlin, 1988).
A. Guttman. R-trees: a dynamic index structure for spatial searching. In Proceedings of the SIGMOD Conference, pages 47–57, Boston, MA, June 1984.
A. Henrich, H.W. Six, and P. Widmayer. The LSD tree: spatial access to multidimensional point and nonpoint data. In P.M.G. Apers and G. Wiederhold, editors, Proceedings of the Fifteenth International Conference on Very Large Data Bases (VLDB), pages 45–53, Amsterdam, August 1989.
R.C. Nelson and H. Samet. A consistent hierarchical representation for vector data. Computer Graphics, 20(4):197–206, August 1986. (also Proceedings of the SIGGRAPH'86 Conference, Dallas, August 1986).
J. Nievergelt, H. Hinterberger, and K.C. Sevcik. The grid file: an adaptable, symmetric multikey file structure. ACM Transactions on Database Systems, 9(1):38–71, March 1984.
H. Samet. Applications of Spatial Data Structures: Computer Graphics, Image Processing, and GIS. Addison-Wesley, Reading, MA, 1990.
H. Samet. The Design and Analysis of Spatial Data Structures. Addison-Wesley, Reading, MA, 1990.
H. Samet and W.G. Aref. Spatial data models and query processing. In W. Kim, editor, Modern Database Systems, The Object Model, Interoperability and Beyond, pages 338–360. ACM Press and Addison-Wesley, New York, 1995.
H. Samet and M. Tamminen. Computing geometric properties of images represented by linear quadtrees. IEEE Transactions on Pattern Analysis and Machine intelligence, 7(2):229–240, March 1985. (also University of Maryland Computer Science TR-1359).
H. Samet and R.E. Webber. Storing a collection of polygons using quadtrees. ACM Transactions on Graphics, 4(3):182–222, July 1985. (Also Proceedings of Computer Vision and Pattern Recognition 83, Washington, DC, June 1983, 127–132; and University of Maryland Computer Science TR-1372).
B. Seeger and H.P. Kriegel. The buddy-tree: an efficient and robust access method for spatial data base systems. In D. McLeod, R. Sacks-Davis, and H. Schek, editors, Proceedings of the Sixteenth International Conference on Very Large Data Bases (VLDB), pages 590–601, Brisbane, Australia, August 1990.
T. Sellis, N. Roussopoulos, and C. Faloutsos. The R+-tree: a dynamic index for multi-dimensional objects. In P.M. Stocker and W. Kent, editors, Proceedings of the 13th International Conference on Very Large Databases (VLDB), pages 71–79, Brighton, England, September 1987.
C.A. Shaffer. A formula for computing the number of quadtree node fragments created by a shift. Pattern Recognition Letters, 7(1):45–49, January 1988.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
AREF, W.G., SAMET, H. Efficient Window Block Retrieval in Quadtree-Based Spatial Databases. GeoInformatica 1, 59–91 (1997). https://doi.org/10.1023/A:1009760201355
Issue Date:
DOI: https://doi.org/10.1023/A:1009760201355