Lattice Quad-Tree Indexing Algorithm for a Hexagonal Discrete Global Grid System
Abstract
:1. Introduction
2. Encoding Scheme of HLQT
- ;
- ;
- ;
- ; and
- or or .
- (1)
- For , let ;
- (2)
- for , let ;
- (3)
- for , ;
- (4)
- for , are the code digits after the replacement of ); and
- (5)
- for , .
- (6)
- Similarly, we replace with .
- (7)
- Digital set is replaced with the coded digit set , and digital set is replaced with the coded digit set . The unique identifier for is shown in Formula (4).
3. Indexing Algorithm
3.1. Single-Resolution Indexing Algorithm
- (1)
- Input the objects (geographic regions, data sets, etc.) to be indexed; then, initialize the data to obtain the ring 0 indexes and the number of rings, denoted as .
- (2)
- Index the next ring. The first quad tree of the next ring is obtained by adding the base code 1 to the quad tree of the previous ring. In Figure 5, the indexing of the initial quad tree to that of the first and the indexing of first quad tree to that of the seventh are examples of indexing between rings.
- (3)
- Traverse the indexes of ring . Each ring needs to complete quad-tree transitions in six different directions corresponding to the six basic codes of the code addition structure; for example, for the first ring, the transitions are . Note that for ring , the addition operation is performed in each direction times. As shown in Figure 4, in Ring 1, indexing the first quad tree to that of the second requires one addition, and for Ring 2, indexing the seventh quad tree to that of the ninth requires two additions.
- (4)
- Repeat Step (3) while the number of rings < .
3.2. Hierarchical Indexing Algorithm
- (1)
- Enter an object (data set or administrative division) and index it according to the single-level indexing algorithm (Figure 7) at the initial grid resolution.
- (2)
- When performing a zoom-in operation for the object, each cell at the initial resolution generates a quad-tree that includes four children cells. Then, the cell is indexed to a higher level, as shown in Figure 8b.
- (3)
- Continue with Step (2) until the grids of the highest level are all indexed.
- (4)
- When a zoom-out operation is performed for an object, each quad tree of the high-resolution grid degenerates to the parent cell of the previous level, and this iterative process continues until the coarsest grids are all indexed.
4. Experiments and Analysis
4.1. Data Indexing with a Large Scope
- (1)
- The DGGRID encoding method uses numbers, and its major advantage is proximity searching [4]. However, in the case of cell indexing for regions, because codes must be indexed in sequence, a small outsourced quadrilateral, as shown in Figure 10, must be determined to narrow the indexing range to reduce memory consumption, which requires multiple conversion calculations, resulting in decreased efficiency.
- (2)
- The proposed algorithm does not need to perform sequential indexing and only needs to “know” the center coordinates and index range of the object. Thus, the code operations and coding structure of the quad tree accelerate the indexing process. As the level increases, the frequency of code addition increases, and the length of the code digit becomes longer, resulting in a decrease in efficiency, as shown in Figure 11.
- (3)
- A main feature of the hierarchical indexing algorithm in this paper is the establishment of quad-tree relationships between levels. When indexing via the proposed approach, we only need to add or subtract a digit at the end of the code, whereas the DGGRID method does not use hierarchical information [25], and the minimum quadrilateral range of the next level must be calculated. Moreover, the number of indexing cells is large, as shown in Table 2. Therefore, the proposed algorithm is superior, as shown in Figure 12a, but as the level increases, the HLQT code length increases, resulting in a higher cost of code digit processing. As a result, the efficiency ratio decreases, as shown in Figure 12b.
- (4)
- For large-scale, including global, data processing in practical applications, level-of-detail (LOD) processing is often adopted [35]. The range of high-resolution regions close to the viewpoint is small, resulting in a small number of cells. The resolution far from the viewpoint is low, and the proposed algorithm has a higher indexing efficiency when the grid resolution is low; therefore, the algorithm in this paper is advantageous in practical applications.
4.2. Data Indexing with a Small Scope
- (1)
- (2)
- The distribution of bikes in different time periods is basically the same. Therefore, companies should add bikes in areas with dark colors, as shown in Figure 14.
- (3)
- Parking in areas A to E (Figure 14a) is prohibited; as a result, there are few bikes in these areas. If there are bikes in these areas, the company should promptly find and remove them.
5. Conclusions and Future Research Directions
Author Contributions
Funding
Conflicts of Interest
References
- Mahdavi-Amiri, A.; Alderson, T.; Samavati, F. A survey of digital earth. Comput. Graph. 2015, 53, 95–117. [Google Scholar] [CrossRef]
- Peterson, P.R. Discrete Global grid systems. Int. Encycl. Geogr. People Earth Environ. Technol. 2016, 1–10. [Google Scholar] [CrossRef]
- Sahr, K.; White, D.; Kimerling, A.J. Geodesic discrete global grid systems. Cartogr. Geogr. Inf. Sci. 2003, 30, 121–134. [Google Scholar] [CrossRef] [Green Version]
- Mahdavi-Amiri, A.; Samavati, F.; Peterson, P. Categorization and Conversions for Indexing Methods of Discrete Global Grid Systems. ISPRS Int. J. Geo-Inf 2015, 4, 320–336. [Google Scholar] [CrossRef]
- Samet, H. Foundations of Multidimensional and Metric Data Structures; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 2005. [Google Scholar]
- Gorski, K.M.; Hivon, E.; Banday, A.J.; Wandelt, B.D.; Hansen, F.K.; Reinecke, M.; Bartelmann, M. HEALPix: A framework for high-resolution discretization and fast analysis of data distributed on the sphere. Astrophys. J. 2005, 622, 759. [Google Scholar] [CrossRef]
- Hivon, E.; Gorski, K.M.; Reinecke, M. HEALPix-Data Analysis, Simulations and Visualization on the Sphere. Available online: https://sourceforge.net/projects/healpix/ (accessed on 10 October 2019).
- GeoFusion. GeoMatrix Toolkit Programmer’s Manual. Available online: http://www.geofusion.com/ (accessed on 12 October 2019).
- SEEGrid. WebHome SCENZGrid SEEGrid. Available online: https://www.seegrid.csiro.au/wiki/SCENZGrid/WebHome (accessed on 12 October 2019).
- Bernardin, T.; Cowgill, E.; Kreylos, O.; Bowles, C.; Gold, P.; Hamann, B.; Kellogg, L. Crusta: A new virtual globe for real-time visualization of sub-meter digital topography at planetary scales. Comput. Geosci. 2011, 37, 75–85. [Google Scholar] [CrossRef]
- Lambers, M.; Kolb, A. Ellipsoidal Cube Maps for Accurate Rendering of Planetary-Scale Terrain Data. Cg.informatik.uni 2012. [Google Scholar] [CrossRef]
- Cheng, C. The global subdivision grid based on extended mapping division and its address coding. Acta Geod. Cartogr. Sin. 2010, 39, 295–302. [Google Scholar] [CrossRef] [Green Version]
- Dutton, G. A Hierarchical Coordinate System for Geoprocessing and Cartography; Springer: Berlin, Germany, 1999. [Google Scholar]
- Goodchild, M.F.; Shiren, Y. A Hierarchical Spatial Data Structure for Global Geographic Information Systems (89-5). Ncgia Nat. Center Geogr. Inf. Anal. 1989, 54, 31–44. [Google Scholar] [CrossRef] [Green Version]
- Bartholdi, J.J.; Goldsman, P. Continuous indexing of hierarchical subdivisions of the globe. Int. J. Geogr. Inf. Sci. 2001, 15, 489–522. [Google Scholar] [CrossRef] [Green Version]
- Zhao, X.; Cui, M.; LI, A.; Zhang, M. An Adjacent Searching Algorithm of Degenerate Quadtree Grid on Spherical Facet. Geomat. Inf. Sci. Wuhan Univ. 2009, 34, 479–482. [Google Scholar] [CrossRef]
- Golay, M.J.E. Hexagonal parallel pattern transformations. IEEE Trans. Comput. 1969, 100, 733–740. [Google Scholar] [CrossRef]
- Vince, A. Indexing the aperture 3 hexagonal discrete global grid. J. Vis. Commun. Image Represent. 2006, 17, 1227–1237. [Google Scholar] [CrossRef]
- Ben, J.; Tong, X.C.; Zhou, C.H.; Zhang, K.X. Construction algorithm of octahedron based hexagon grid systems. J. Geo-Inf. Sci. 2015, 6, 54–61. [Google Scholar] [CrossRef]
- PYXIS Innovation Inc. How PYXIS Works. Available online: http://www.pyxisinnovation.com/pyxwiki/index.php?title (accessed on 12 October 2019).
- Peterson, P. Closed-Packed Uniformly Adjacent, Multi-Resolutional Overlapping Spatial Data Ordering. U.S. Patent #0,8018,458, 13 September 2011. [Google Scholar]
- Vince, A.; Zheng, X.X. Arithmetic and fourier transform for the PYXIS multi-resolution digital earth model. Int. J. Digit. Earth 2009, 2, 59–79. [Google Scholar] [CrossRef]
- Sahr, K. Location coding on icosahedral aperture 3 hexagon discrete global grids. Comput. Environ. Urban Syst. 2008, 32, 174–187. [Google Scholar] [CrossRef]
- Sahr, K. Central place indexing: Hierarchical linear indexing systems for mixed-aperture hexagonal discrete global grid systems. Cartographica 2019, 54, 16–29. [Google Scholar] [CrossRef]
- Sahr, K. DGGRID Version 6.4: User Documentation for Discrete Global Grid Generation Software. Available online: http://webpages.sou.edu/~sahrk/docs/dggridManualV64.pdf (accessed on 12 October 2019).
- Sahr, K. DGGRID Users. Available online: https://www.discreteglobalgrids.org/dggrid-users/ (accessed on 12 October 2019).
- Tong, X.C.; Ben, J.; Wang, Y.; Zhang, Y.S.; Pei, T. Efficient encoding and spatial operation scheme for aperture 4 hexagonal discrete global grid system. Int. J. Geogr. Inf. Sci. 2013, 27, 898–921. [Google Scholar] [CrossRef]
- Ben, J.; Li, Y.L.; Zhou, C.H.; Wang, R.; Du, L.Y. Algebraic encoding scheme for aperture 3 hexagonal discrete global grid system. Sci. China Earth Sci. 2018, 61, 215–227. [Google Scholar] [CrossRef]
- Mahdavi-Amiri, A.; Harrison, E.; Samavati, F. Hexagonal connectivity maps for Digital Earth. Int. J. Digit. Earth 2014, 8, 750–769. [Google Scholar] [CrossRef]
- Mahdavi-Amiri, A.; Harrison, E.; Samavati, F. Hierarchical grid conversion. Comput. Aided Des. 2016, 79, 12–26. [Google Scholar] [CrossRef]
- Wang, R.; Ben, J.; Du, L.Y.; Zhou, J.B.; Li, Z.X. Encoding and operation for the planar aperture 4 hexagon grid system. Acta Geotech. Cartogr. Sin. 2018, 47, 1018–1025. [Google Scholar] [CrossRef]
- Vince, A. Indexing a discrete global grid. In Special Topics in Computing and ICT Research, Advances in Systems Modelling and ICT Applications; Fountain Publishers: Kampala, Uganda, 2006; Volume 2, pp. 3–17. [Google Scholar]
- Wang, R.; Ben, J.; Du, L.Y.; Zhou, J.B.; Li, Z.X. The code operation scheme for the icosahedral aperture 4 hexagon grid system. Geomat. Inf. Sci. Wuhan Univ. 2019. [Google Scholar] [CrossRef]
- Snyder, J.P. An Equal-Area Map Projection For Polyhedral Globes. Cartographica 1992, 29, 10–21. [Google Scholar] [CrossRef]
- Sußner, G.; Dachsbacher, C.; Greiner, G. Hexagonal LOD for Interactive Terrain Rendering. In Proceedings of the Vision Modeling and Visualization, Erlangen, Germany, 16–18 November 2005; pp. 666–675. [Google Scholar]
- Bike-Sharing Data from Beijing Engineering Laboratory of Beidou Navigation & LBS Technology. Available online: https://www.chinalbs.org/engineer.html (accessed on 15 January 2020).
Level | DGGRID | The Proposed Algorithm | Efficiency Ratio | ||||
---|---|---|---|---|---|---|---|
Cells | Time (ms) | Efficiency (cells/ms) | Cells | Time (ms) | Efficiency (cells/ms) | ||
7 | 960 | 0.0808 | 11,881.188 | 676 | 0.0183 | 36,799.129 | 3.10 |
8 | 3534 | 0.3017 | 11,713.622 | 2524 | 0.0713 | 35,399.719 | 3.02 |
9 | 14,022 | 1.1721 | 11,963.143 | 10,444 | 0.3531 | 29,578.023 | 2.47 |
10 | 55,370 | 4.6023 | 12,030.941 | 39,676 | 1.5535 | 25,539.748 | 2.12 |
11 | 220,050 | 18.2345 | 12,067.784 | 154,588 | 7.1138 | 21,730.721 | 1.80 |
12 | 880,277 | 73.1306 | 12,037.054 | 621,076 | 32.5028 | 19,108.384 | 1.59 |
Level | DGGRID | The Proposed Algorithm | Efficiency Ratio | ||||
---|---|---|---|---|---|---|---|
Cells | Time (ms) | Efficiency (cells/ms) | Cells | Time (ms) | Efficiency (cells/ms) | ||
8→9 | 13,899 | 3.2014 | 4341.538 | 10,096 | 0.0165 | 611,878.787 | 140.94 |
9→10 | 55,615 | 7.2554 | 7665.325 | 40,384 | 0.0778 | 519,074.550 | 67.72 |
10→11 | 220,539 | 20.4784 | 10,769.347 | 161,536 | 0.3125 | 516,915.200 | 48.00 |
11→12 | 878,323 | 74.2415 | 11,830.620 | 646,144 | 1.2279 | 516,218.747 | 43.63 |
12→13 | 3,517,353 | 293.9663 | 11,965.157 | 2,584,567 | 5.6475 | 457,647.985 | 38.25 |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhou, J.; Ben, J.; Wang, R.; Zheng, M.; Du, L. Lattice Quad-Tree Indexing Algorithm for a Hexagonal Discrete Global Grid System. ISPRS Int. J. Geo-Inf. 2020, 9, 83. https://doi.org/10.3390/ijgi9020083
Zhou J, Ben J, Wang R, Zheng M, Du L. Lattice Quad-Tree Indexing Algorithm for a Hexagonal Discrete Global Grid System. ISPRS International Journal of Geo-Information. 2020; 9(2):83. https://doi.org/10.3390/ijgi9020083
Chicago/Turabian StyleZhou, Jianbin, Jin Ben, Rui Wang, Mingyang Zheng, and Lingyu Du. 2020. "Lattice Quad-Tree Indexing Algorithm for a Hexagonal Discrete Global Grid System" ISPRS International Journal of Geo-Information 9, no. 2: 83. https://doi.org/10.3390/ijgi9020083
APA StyleZhou, J., Ben, J., Wang, R., Zheng, M., & Du, L. (2020). Lattice Quad-Tree Indexing Algorithm for a Hexagonal Discrete Global Grid System. ISPRS International Journal of Geo-Information, 9(2), 83. https://doi.org/10.3390/ijgi9020083