Encoding, operation method and device of a rhombic triacontahedron global discrete grid system

By dividing the rhombic 30-sided polyhedron into a composite structure and designing a three-axis integer coordinate system, the shortcomings of the rhombic 30-sided polyhedron grid system in multi-resolution encoding and computation are solved, realizing efficient multi-level grid analysis and large-area geospatial data processing.

CN117689840BActive Publication Date: 2026-11-24Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311482291.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-11-24
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

Existing rhombic 30-sided grid systems lack in-depth research on multi-resolution coding and computation, cannot support continuous multi-level grid analysis, and involve frequent cross-face operations, which limits their application in large-area geospatial data processing and analysis.

Method used

A coding and computation method for a rhombic icosahedral global discrete grid system is proposed. By dividing the rhombic icosahedron into 10 combined structures, a three-axis integer coordinate system is established. Different four-hole hierarchical subdivision and coding methods are adopted, and a fast proximity query and hierarchical query for cell coding, as well as mutual conversion between coding and geographic coordinates are designed.

Benefits of technology

It improves the fit between the rhombic icosahedron and the Earth, constructs a grid system with smaller deformation and better properties, simplifies the processing capability of large-area geospatial data, and realizes fast proximity query and efficient data integration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117689840B_ABST
    Figure CN117689840B_ABST
Patent Text Reader

Abstract

This invention discloses a coding and computation method and apparatus for a rhombic icosahedral global discrete grid system. First, a rhombic icosahedron is selected to construct the Discrete Global Grid System (DGGS). Three adjacent rhombic faces of the icosahedron are combined into a composite structure. Within each composite structure, a three-axis integer coordinate system is established to uniformly represent the spatial position of grid cells. Second, based on the composite structure, a novel rhombic icosahedral hierarchical partitioning and quadtree coding scheme is established, and a fast mutual conversion between the code and the three-axis integer coordinates is constructed. Then, the coding computation method of this scheme is proposed. Hierarchical queries are easily implemented, and the cells within the composite structure directly utilize the three-axis integer coordinates to achieve proximity queries. Based on the coding characteristics, a method for boundary cells to directly use code symbol replacement to achieve proximity queries is summarized. Finally, through the rigorous geometric relationship between projected coordinates and three-axis integer coordinates, a precise conversion between geographic coordinates and the code is derived.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of geographic information technology and can be applied to the organization, management and fusion analysis of wide-area multi-source heterogeneous geospatial data. In particular, it relates to a coding and calculation method and device for a rhombic icosahedral global discrete grid system. Background Technology

[0002] Currently, geospatial data exhibits characteristics of big data, including wide coverage, massive volume, diverse formats, and complex structures. The data processing capabilities of traditional Geographic Information Systems (GIS) are insufficient to meet these demands, necessitating new solutions to support the fusion and processing of massive global geospatial data. Global discrete grid systems divide Earth's space into seamless, non-overlapping multi-scale spatial hierarchical structures, resembling a spreadsheet covering the Earth's space, and represent a highly promising framework for the unified organization, processing, and mining of spatiotemporal data. Traditional latitude and longitude grids suffer from severe unit deformation in high-latitude regions, resulting in significant data redundancy when used for data organization. In contrast, polyhedral global discrete grid systems employ specific methods to recursively subdivide the polyhedral surface and then project it onto the Earth's surface, forming a globally continuous, approximately regular, and uniform spherical hierarchical grid structure, thus becoming a current research and application hotspot.

[0003] Grid subdivision cell types are generally divided into triangular, quadrilateral, and hexagonal shapes. Among them, the hexagonal shape has more ideal geometric properties due to its adjacency consistency, highest spatial sampling rate, and angular resolution. The subdivision aperture refers to the ratio of the areas of adjacent layer cells. Hexagonal grids have three, four, and seven apertures. Three-aperture grids offer higher resolution and the smoothest transition between adjacent layers; however, the 30° periodic change in the direction of adjacent layer cells leads to different arrangement rules for odd and even layer cells, making hierarchical encoding operations more complex. Seven-aperture grids achieve near-consistency and better solve the cell membership problem; however, the area variation between adjacent layer cells in a seven-aperture grid is too large, and the direction also rotates by 19.1°. Four-aperture grids maintain the same direction for adjacent layer cells, facilitating the creation of multi-layer structures. White et al. statistically analyzed the influence of five Platonic polyhedra on the deformation properties of the grid and found that the icosahedron caused the least deformation. Therefore, most current research uses the icosahedron hierarchical encoding scheme. In addition, common open source libraries such as DGGRID, OpenEAGGR, and Geogrid all use the icosahedron to construct DGGS.

[0004] Recently, some scholars have attempted to construct grid systems with superior geometric properties using Catalan polyhedra with a higher number of faces, opening up a completely new design approach for DGGS. Hall et al. used 120-sided polyhedra to construct DGGS, but each face was an irregular triangular face, which was only suitable for constructing triangular grids, and the hierarchical relationship was complex. Liang et al. constructed a rhombic 30-sided hexagonal grid, where each face is a "golden" rhombus of the same size, which is suitable for the subdivision of various elements. Moreover, a set of adjacent edges of the rhombic face is a natural row and column coordinate system, which is easy to describe the position of elements. They also proved that it has advantages over the regular icosahedral grid system in terms of shape compactness and grid deformation. Wang et al. used a rhombic 30-sided SD equal-area projection hexagonal grid to achieve rapid grid generation in irregular regions. Summary of the Invention

[0005] Existing 30-faceted rhombic grid system encoding schemes all employ single-resolution integer coordinate schemes, lacking in-depth research on multi-resolution encoding and its computation, and thus unable to support continuous multi-level grid analysis. Furthermore, frequent cross-face operations between the thirty rhombic faces limit the application of grid systems in large-area geospatial data processing and analysis. To address these problems, this invention proposes an encoding and computation method and apparatus for a 30-faceted rhombic global discrete grid system (DGGS). The resulting global discrete grid system can be applied to geospatial data organization and storage, indexing, and computation. Based on simplifying cross-face operations, this invention designs a hierarchical subdivision and encoding method for hexagonal grid cells on the 30-faceted rhombic, and designs operations such as fast proximity lookup and hierarchical lookup for cell encoding, and mutual conversion between encoding and geographic coordinates.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] This invention proposes a method for encoding and calculating a rhombic icosahedral global discrete grid system, comprising:

[0008] Step 1: Divide the rhombic icosahedron into 10 composite structures, numbered sequentially from 0 to 9. Each composite structure is composed of three adjacent rhombic faces: the top, middle, and bottom faces. Establish a three-axis integer coordinate system in each composite structure.

[0009] Step 2: For each composite structure, construct initial units, including upper rhombic hexagonal units, middle rhombic pentagonal units, and lower rhombic hexagonal units. Number the upper rhombic hexagonal units as 0, the middle rhombic pentagonal units as 1, and the lower rhombic hexagonal units as 2. In addition, number the initial pentagonal units at the north and south vertices of the rhombic icosahedron as 3, and assign them to composite structures 2 and 7, respectively. Different four-hole hierarchical subdivision and coding methods are used for different initial units.

[0010] Step 3: Construct the mutual conversion between hierarchical encoding and three-axis integer coordinates;

[0011] Step 4: Design the encoding and operation method;

[0012] Step 5: Construct a mutual conversion between geographic coordinates and grid codes to integrate geospatial data into the grid system, resulting in a rhombic icosahedral global discrete grid system.

[0013] Furthermore, the method of using different four-hole hierarchical subdivision and encoding for different initial units includes: for the initial pentagonal unit at the north and south vertices, after each hierarchical subdivision, there is only one center-aligned sub-unit, identified by code element 0.

[0014] Furthermore, the method of using different four-hole hierarchical partitioning and encoding for different initial units includes:

[0015] The initial units other than the initial pentagonal units at the north and south vertices are hierarchically partitioned and encoded using four holes. Sub-units at different positions are represented by codes 0 to 3: 0 identifies the central sub-unit, 1 to 2 identify the boundary sub-units, and 3 identifies the boundary or external sub-units. The upper and lower rhombic hexagonal units and their sub-units are partitioned using a hexagonal quadtree and Morton code encoding scheme, so that all three boundary sub-units are adjacent to the current unit. The middle rhombic pentagonal unit and its sub-units are hierarchically partitioned and encoded, so that one sub-unit is completely outside the current unit in terms of spatial location.

[0016] Further, step 3 includes:

[0017] Step 3.1: Convert the three-axis integer coordinates to the encoding. For the rhombus surface on the composite structure, first transform the three-axis integer coordinates (I,J,K) of the composite structure according to equation (1) to obtain the transition coordinates (i,j) of the rhombus surface:

[0018]

[0019] Where num = 2 n , indicating the number of cells on one edge of the rhombus face at the current grid level;

[0020] Then, according to equation (2), the binary components of the transition coordinates are added together to obtain the Morton code:

[0021] M = B i +2B j (2)

[0022] Among them B i and B j These represent the binary numbers corresponding to the unit transition coordinates i and j, respectively.

[0023] Step 3.2: Convert the encoding to three-axis integer coordinates. For the rhomboid surface on the combined structure, based on the relationship between the Morton code and the spatial position of the unit, the transition coordinates are multiplied and translated by judging the Morton code layer by layer, and finally the three-axis integer coordinates are obtained by inverse transformation.

[0024] Further, step 3.2 includes:

[0025] Step 3.2.1: Set the transition coordinates of the initial grid cell of layer 0 to (i,j)=(0,0);

[0026] Step 3.2.2: Perform the following operations on each Morton code bit to obtain the transition coordinates of the unit: Calculate the transition coordinates i = 2i, j = 2j of the next layer center sub-unit. If the r-th Morton code bit M[r] = 0, that is, the unit is the center sub-unit, then i = i, j = j; if M[r] = 1, that is, the unit is the upper left boundary sub-unit, then i = i + 1, j = j; if M[r] = 2, that is, the unit is the lower boundary sub-unit, then i = i, j = j + 1; if M[r] = 3, that is, the unit is the lower left boundary sub-unit, then i = i + 1, j = j + 1.

[0027] Step 3.2.3: Convert the transition coordinates into three-axis integer coordinates. This process is the reverse of formula (1).

[0028] Further, step 4 includes:

[0029] Step 4.1: Design a hierarchical coding operation method, which is divided into finding the parent unit code and finding the child unit code. When finding the parent unit code, remove the last bit of the code; when finding the child unit code, add the code element set {0,1,2,3} to the last bit of the code according to the spatial position of the child unit and the parent unit.

[0030] Step 4.2: Design the proximity coding operation method. The proximity operation of hexagonal cells is divided into three cases: the hexagon and its neighboring cells are both located inside the combined structure; the hexagon is located on the boundary of the combined structure; and the hexagon is located inside the combined structure but some of its neighboring cells belong to the adjacent combined structure. The cells corresponding to the first case are called internal cells, the cells corresponding to the second case are called boundary cells, and the cells corresponding to the third case are called semi-boundary cells.

[0031] Further, step 4.2 includes:

[0032] Step 4.2.1: The proximity operation of the internal cells is completed by adding or subtracting 1 from the three-axis integer coordinates;

[0033] Step 4.2.2: For boundary elements, firstly, search for neighboring elements inside the composite structure using the method in step 4.2.1. Other neighboring elements are located on adjacent composite structures. Composite structures numbered 0 to 4 are classified as the first category, denoted as S1, and composite structures numbered 5 to 9 are denoted as S2. (0), (1), and (2) represent the upper, middle, and lower rhomboid surfaces of the composite structure, respectively. Based on the different element positions, the boundary elements query the adjacent composite structure half-boundary elements using three Morton symbol replacement methods, as shown below:

[0034]

[0035]

[0036] Where M[r] represents the Morton symbol of the unit before transformation, and M′[r] represents the Morton symbol after transformation;

[0037] Step 4.2.3: For a semi-boundary unit, first search for neighboring units inside the combined structure using the method in step 4.2.1, and then find other neighboring units on the adjacent combined structure through the inverse process of the above symbol replacement.

[0038] Further, step 5 includes:

[0039] Step 5.1, convert geographic coordinates to encoding: First, project the geographic coordinates onto the icosahedral rhombus face to obtain the projected coordinates (x, y); then, based on the geometric characteristics of grid partitioning, convert the projected coordinates into three-axis integer coordinates (I, J, K); finally, convert the three-axis integer coordinates into encoding using the method in step 3.1.

[0040] Step 5.2, convert the code to geographic coordinates: First, convert the code to three-axis integer coordinates (I,J,K) using the method in step 3.2; then calculate the rhombus projection coordinates (x,y); finally, calculate the geographic coordinates (B,L) of the cell center through inverse projection.

[0041] Furthermore, following step 5, the following steps are also included:

[0042] Step 6: Evaluate and compare the quality of the established rhombic icosahedral global discrete grid system.

[0043] Another aspect of the present invention proposes an encoding and computation device for a rhombic icosahedral global discrete grid system, comprising:

[0044] The first construction module is used to divide the rhombic icosahedron into 10 combined structures, numbered sequentially from 0 to 9. Each combined structure is composed of three adjacent rhombic faces: the top, middle, and bottom faces. A three-axis integer coordinate system is established in each combined structure.

[0045] The hierarchical subdivision and coding module is used to construct initial units for each composite structure, including upper rhombic hexagonal units, middle rhombic pentagonal units, and lower rhombic hexagonal units. The upper rhombic hexagonal units are numbered 0, the middle rhombic pentagonal units are numbered 1, and the lower rhombic hexagonal units are numbered 2. In addition, the initial pentagonal units at the north and south vertices of the rhombic icosahedron are numbered 3, belonging to composite structures 2 and 7 respectively. Different four-hole hierarchical subdivision and coding methods are used for different initial units.

[0046] The second building module is used to construct the mutual conversion between hierarchical encoding and three-axis integer coordinates;

[0047] The encoding operation design module is used to design encoding operation methods;

[0048] The third module is used to construct the mutual conversion between geographic coordinates and grid codes, so that geospatial data can be integrated into the grid system to obtain a rhombic icosahedral global discrete grid system.

[0049] Furthermore, it also includes:

[0050] The quality evaluation and comparison module is used to evaluate and compare the quality of the established rhombic icosahedral global discrete grid system.

[0051] Compared with the prior art, the present invention has the following beneficial effects:

[0052] (1) The rhombic icosahedron has a higher degree of fit with the Earth and can construct a grid system with smaller deformation and better properties, which is beneficial to the integration of global geospatial data and the calculation of Earth system models.

[0053] (2) It is proposed to combine three adjacent rhombus faces of an icosahedron into a combined structure, simplifying the frequent cross-face operations between 30 rhombus faces into operations between 10 combined structures, thereby improving the processing capability of large-area geospatial data.

[0054] (3) A quadtree hierarchical encoding is used to identify grid cells, and a combined structure triaxial integer coordinate is used to describe the spatial position of the cells. This combines the advantages of hierarchical encoding and integer coordinate encoding, and a fast proximity query method is designed accordingly. Attached Figure Description

[0055] Figure 1 This is a schematic diagram of a rhombic icosahedral composite structure.

[0056] Figure 2 Example diagram of a three-axis integer coordinate system for a composite structure;

[0057] Figure 3 This is a schematic diagram of hierarchical partitioning and coding;

[0058] Figure 4 A schematic diagram of the global grid generation results;

[0059] Figure 5 Example diagram for converting three-axis coordinates to Morton code;

[0060] Figure 6 Example diagram for encoding conversion to transition coordinates;

[0061] Figure 7 This is a diagram illustrating a cell proximity query.

[0062] Figure 8 Example diagram of proximity query rules for internal units of a composite structure;

[0063] Figure 9 Example diagram for converting projected coordinates to three-axis integer coordinates;

[0064] Figure 10 Example diagram of converting three-axis integer coordinates to projected coordinates;

[0065] Figure 11 A comparison of encoding efficiency for latitude and longitude;

[0066] Figure 12 A comparison of the efficiency of converting encoding to latitude and longitude;

[0067] Figure 13 Comparison of the efficiency of nearest neighbor queries for encoding. Detailed Implementation

[0068] The present invention will be further explained below with reference to the accompanying drawings and specific embodiments:

[0069] A method for encoding and calculating a rhombic icosahedral global discrete grid system includes:

[0070] Step 1: Propose a method for describing the combined structure and unit positions of a rhombic icosahedron: combine three adjacent rhombic faces (top, middle, and bottom) into a single structure, such as... Figure 1 As shown, the rhombic icosahedron is composed of 10 identical "combination structures," numbered sequentially from 0 to 9; a three-axis integer coordinate system IJK is established in each combination structure, as shown in the figure. Figure 2 As shown, the spatial positions of all units within the composite structure are uniformly described, without needing to consider the cross-face problem between the three rhomboid faces within the same composite structure.

[0071] Step 2: Design a hierarchical partitioning and coding scheme based on the rhombic icosahedral combined structure.

[0072] like Figure 3 As shown, the initial unit partitioning method for any composite structure is specified ( Figure 3(a)), the white hexagonal unit on the upper rhombus face is numbered 0, the gray pentagonal unit on the middle rhombus face is numbered 1, and the blue hexagonal unit on the lower rhombus face is numbered 2. Different four-hole hierarchical subdivision and encoding methods are used for different initial units. Figure 3 (b) Using 0 to 3 symbols to represent sub-units at different positions, the white and blue initial units and their sub-units adopt a hexagonal quadtree partitioning and Morton code encoding scheme, so that the three boundary sub-units are all adjacent to the current unit; the gray initial unit and its sub-units are hierarchically partitioned and encoded so that one sub-unit is exactly outside the current unit in spatial position. The Morton code Z-curve of the second-layer grid is as follows. Figure 3 As shown in (c), each unit has a unique code, and each bit of the code is related to the geographic location. In addition, there is an initial pentagonal unit at the north and south vertices of the icosahedron, which belongs to the No. 2 and No. 7 combination structures respectively and is numbered 3. Each subsequent layer has only a unique center-aligned sub-unit, and a 0 is added after the unit code of this layer to identify the sub-unit.

[0073] The hierarchical coding rules are shown in the table below. The grid has n levels. Each time the level increases, the cell code adds a Morton symbol. The coding form is simple and easy to understand and implement. This invention calls it "Rhombic Triacontahedron Hexagonal Quadtree on Combined Structure" (RTHQCS).

[0074] Table 1 Hierarchical Coding Scheme

[0075]

[0076]

[0077] This enables seamless, non-overlapping grid partitioning and encoding globally, such as... Figure 4 The results of generating the second and third layer grids are shown. The cells in the 10 combined structures are arranged exactly the same, and the pentagonal cells at the north and south vertices are marked in red.

[0078] Step 3 establishes the mutual conversion between hierarchical encoding and three-axis integer coordinates. This specifically includes steps 3.1-3.2.

[0079] Step 3.1: Convert the three-axis integer coordinates to the encoded form. For example... Figure 5 As shown, taking the rhombus surface on the composite structure as an example, the three-axis integer coordinates (I,J,K) of the composite structure are first transformed to obtain the transition coordinates (i,j) of the rhombus surface. The transformation method is shown in formula (1), where num=2 nnum represents the number of cells on one edge of the rhombus face at the current grid level, such as num for the second grid level being 4.

[0080]

[0081] Then, the binary components of the transition coordinates are added together to obtain the Morton code. The binary numbers corresponding to the unit transition coordinates i and j are B and B, respectively. i and B j The Morton code is obtained by adding the binary coordinate components, as shown in formula (2).

[0082] M = B i +2B j (2)

[0083] Step 3.2: Convert the encoding to three-axis integer coordinates. For example... Figure 6 As shown, taking the rhomboid surface on the composite structure as an example, based on the relationship between the Morton code and the spatial position of the unit, the transition coordinates are multiplied and translated by judging the Morton code layer by layer, and finally the three-axis integer coordinates can be obtained by inverse transformation, specifically including steps 3.2.1-3.2.3.

[0084] Step 3.2.1, starting from the initial grid cell of layer 0, as follows... Figure 6 The black dashed line unit has transition coordinates of i = j = 0.

[0085] Step 3.2.2: Perform the following operations for each Morton cell to obtain the transition coordinates of that cell. First, calculate the transition coordinates i = 2i, j = 2j for the next layer's central sub-cell. Second, if M[r] = 0 (r = 1, 2, ..., n), meaning the cell is a central sub-cell, then i = i, j = j; if M[r] = 1, meaning the cell is a top-left boundary sub-cell, then i = i + 1, j = j; if M[r] = 2, meaning the cell is a bottom boundary sub-cell, then i = i, j = j + 1; if M[r] = 3, meaning the cell is a bottom-left boundary sub-cell, then i = i + 1, j = j + 1.

[0086] Step 3.2.3: Convert the transition coordinates into three-axis integer coordinates. This process is the reverse of formula (1).

[0087] It is worth noting that the treatment of the middle and lower rhombus faces is similar to that of the upper rhombus face, and will not be repeated here.

[0088] Step 4 involves designing an encoding operation method for RTHQCS. This specifically includes steps 4.1-4.2.

[0089] Step 4.1: Design the hierarchical encoding operation method. This involves finding the parent unit encoding and finding the child unit encoding. Based on the hierarchical partitioning rules of this invention, when finding the parent unit, simply remove the last bit of the encoding; when finding the child unit, add the code element set {0,1,2,3} to the last bit of the encoding according to the spatial position of the child unit relative to the parent unit.

[0090] Step 4.2, design the proximity coding operation method. For example... Figure 7 As shown, the proximity operation of hexagonal elements is divided into three cases: the hexagon and its neighboring elements are all located inside the composite structure (referred to as internal elements in this invention); the hexagon is located on the boundary of the composite structure (referred to as boundary elements in this invention); and the hexagon is located inside the composite structure but some of its neighboring elements belong to adjacent composite structures (referred to as semi-boundary elements in this invention). The proximity operation of the three types of elements specifically includes steps 4.2.1-4.2.3.

[0091] Step 4.2.1, design the nearest neighbor calculation method for internal cells. For example... Figure 7 As shown in the gray cells, the nearest neighbor operation does not need to consider the cross-plane problem; it simply adds or subtracts 1 from the integer coordinates of the three axes. There are three cases: When the cell is located between the I-axis and the K-axis, let its coordinates be (i, 0, k), then the nearest neighbor operation rule is as follows: Figure 8 As shown in (a); when the cell is located on the I-axis, let its coordinates be (i,0,0), then the nearest neighbor operation rule is as follows: Figure 8 As shown in (b); when the cell is located between the I-axis and the J-axis, let its coordinates be (i,j,0), then the nearest neighbor operation rule is as follows: Figure 8 As shown in (c).

[0092] Step 4.2.2: Design the nearest neighbor calculation method for boundary elements. For example... Figure 7 As shown in the green unit, firstly through Figure 8 The method searches for neighboring units within the same composite structure, while other neighboring units are located on adjacent composite structures, requiring the study of cross-face neighbor search methods. Composite structures numbered 0 to 4 are classified as the first category, denoted as S1, and composite structures numbered 5 to 9 are denoted as S2. (0), (1), and (2) represent the upper, middle, and lower rhomboid faces of the composite structure, respectively. This invention finds that the cross-face operation of unit encoding between adjacent composite structures has certain rules, specifically referring to the code substitution rules between the encoding of the boundary unit and the encoding of the upper half boundary unit of another composite structure. According to the different unit positions, there are three Morton code substitution methods. Let the Morton code of the unit before transformation be M[r] (r=1,2,…,n), and the Morton code after transformation be M′[r], as shown in Table 2.

[0093] Table 2. Symbol replacement methods for cross-combinatorial proximity queries.

[0094]

[0095] Step 4.2.3: Design the nearest neighbor calculation method for semi-boundary elements. For example... Figure 7 As shown in the blue unit, firstly through Figure 8 The method searches for neighboring units within the combined structure, and then finds other neighboring units on the adjacent combined structure through the inverse process of the above symbol replacement. The inverse transformation is easy to implement, and will not be described in detail in this invention.

[0096] Step 5 involves establishing a mutual conversion mechanism between geographic coordinates and grid codes to ensure the smooth integration of commonly used geospatial data into the grid system. This specifically includes steps 5.1 and 5.2.

[0097] Step 5.1: Convert geographic coordinates to encoded data. First, project the geographic coordinates onto the icosahedral rhombus face to obtain projected coordinates (x, y); then, based on the geometric characteristics of grid partitioning, convert the projected coordinates into three-axis integer coordinates (I, J, K); finally, convert the three-axis integer coordinates into encoded data using the method in Step 3.1. Taking the rhombus face on the composite structure as an example, the specific process of converting the projected coordinates to three-axis integer coordinates is as follows:

[0098] First, given the projected coordinates (x, y) of any point P, such as... Figure 9 As shown, in the projected coordinate system, the equation of the line containing the lower right rhombus side, i.e., the K-axis, is y = tan(58.285°)x - cos(31.715°)L, and the equation of the line containing the I-axis is y = -cos(31.715°)L, where L is the side length of the rhombus face; calculate the Euclidean distance d between point P and the K-axis and the I-axis respectively. I and d K Then, using geometric relationships, point P is decomposed into floating-point coordinates l on coordinate axes I and K. I and l K The calculation formula is as follows, where The distance between the centers of adjacent hexagonal cells along the K-axis and J-axis directions. Let be the distance between the centers of adjacent hexagonal cells along the I-axis, and let them satisfy the following relationship:

[0099]

[0100] Secondly, m I and m K They are l I and l K The result after rounding is that the decimal part of point P on the I-axis is r. I =l I -m I The fractional part on the K-axis is r. K =lK -m K , Figure 9 The r corresponding to points A, B, and C in the middle K The values ​​are respectively Therefore, the integer coordinates of the unit can be calculated using equation (4), where, according to the triangle sine theorem, we can obtain...

[0101]

[0102] Finally, as Figure 9 As shown by the red dashed lines, these boundary units belong to adjacent combination structures and require cross-plane processing. First, their I coordinates are reduced by 1, which is equivalent to translating them to a neighboring half-boundary unit. Then, the three-axis integer coordinates of the neighboring unit are converted into codes. Finally, the code of the boundary unit is obtained through the inverse process of symbol replacement shown in Table 2.

[0103] Step 5.2: Convert the encoding to geographic coordinates. First, convert the encoding to three-axis integer coordinates (I, J, K) using the method in Step 3.2; then calculate the rhombus projection coordinates (x, y); finally, calculate the geographic coordinates (B, L) of the cell center through inverse projection. Taking the rhombus surface on the composite structure as an example, the specific process of converting the three-axis integer coordinates to the cell center projection coordinates is as follows:

[0104] like Figure 10 As shown, given that the coordinates of any point P are (I, 0, K), then the coordinates of the center element O of the upper rhombus surface are... And its grid center is the origin of the projected coordinate system. First, calculate the coordinate difference between point P and the central element O using equation (5):

[0105]

[0106] Then, the projected coordinates of point P are calculated using geometric relationships, as shown in equation (6).

[0107]

[0108] It is worth noting that the treatment of the middle and lower rhombus faces is similar to that of the upper rhombus face, and will not be repeated here.

[0109] Step 6: Evaluate and compare the quality of the rhombic icosahedral global discrete grid system established in this invention. Existing rhombic icosahedral grid systems lack hierarchical coding schemes. Therefore, this invention selects HLQT and HHUT, two highly efficient icosahedral four-hole hexagonal grids, as comparison objects. A total of 1.62 million points are traversed globally at 0.2-degree latitude and longitude intervals. High-level grids of 13-20 are selected, and the average time for three operations—converting latitude and longitude coordinates to codes, converting codes to latitude and longitude coordinates, and nearest neighbor lookup—is tested at similar resolutions. Each operation is run 10 times and the average value is taken. The time unit is microseconds (μs), where the efficiency ratio is the ratio of the time taken by HLQT or HHUT to the time taken by RTHQBS. All programs were compiled into Release versions and tested on a compatible machine (hardware configuration: Intel Core i5-10400F CPU@2.90GHz, 16G RAM, KIOXIA-EXCERIA480G SSD; operating system: Windows 10x64 Enterprise LTSC; development tool: Microsoft Visual C++ Enterprise 2022).

[0110] Because different DGGS schemes use different projection methods, the impact of different projection methods on conversion efficiency varies during the conversion between latitude / longitude and coding. Therefore, to more fairly compare various coding schemes, the time for orthographic and inverse projections was eliminated, and only the conversion time between the polyhedral surface projection coordinates and the coding was considered.

[0111] like Figure 11 As shown, the efficiency of converting latitude and longitude coordinates to codes in RTHQCS is the highest at all levels. Figure 11 (a)), and the efficiency advantage gradually increases with increasing level. Figure 11 (b) This invention achieves a speedup 27.01 times that of HLQT and 4.29 times that of HHUT. This is due to the fast conversion algorithm from three-axis integer coordinates to quaternary Morton codes, which is almost unaffected by the grid hierarchy. HLQT, on the other hand, consists of 12 vertex tiles and 20 face tiles, making its structure more complex. Furthermore, both HLQT and HHUT require encoding and addition operations on each symbol to obtain the final code, and the code length increases with the level, leading to an increase in the computational cost of encoding and addition.

[0112] like Figure 12 As shown, the RTHQCS scheme has the highest efficiency in converting encoding to latitude and longitude at all levels. Figure 12 (a)) The efficiency advantage increases with increasing level ( Figure 12(b) This approach achieves 46.86 times the efficiency of HLQT and 2.36 times that of HHUT. This is because the code in this paper only has 0, 1, 2, and 3 symbols, which has a simple structure and fewer judgment cases. When the symbol is 0, it does not need to participate in the calculation. After converting the encoding into three-axis integer coordinates, the projection plane coordinates can be calculated through simple geometric relationships. In contrast, each layer of symbols in HLQT needs to participate in the calculation, and its first symbol is complex, consuming a lot of processing time. Although HHUT does not need to participate in the calculation when the symbol is 0, after scaling and accumulating the complex base number encoding, it can only obtain the tile Cartesian coordinates, and multiple judgments are required to calculate the projection plane coordinates.

[0113] like Figure 13 As shown, the RTHQCS scheme has the highest efficiency in encoded proximity lookup at all levels. Figure 13 (a)), and the efficiency ratio gradually increases with increasing level. Figure 13 (b) This approach achieves 40.97 times the efficiency of HLQT and 4.35 times that of HHUT. Firstly, the rhombic icosahedron has more faces than the regular icosahedron, resulting in more cross-face operations during proximity queries, thus reducing efficiency. However, this paper solves the problem of cross-rhombic face proximity queries within the combined structure by forming a combined structure with three adjacent rhombic faces and establishing a three-axis integer coordinate system. Furthermore, the cross-face problem between adjacent combined structures can be directly solved by replacing coded symbols. The complexity of proximity queries is mainly related to the efficiency of converting the encoding to three-axis integer coordinates; therefore, the proposed scheme exhibits the slowest decrease in proximity query efficiency as the grid level increases. HLQT's proximity query is achieved through coded addition operations with six direction vectors, resulting in the lowest efficiency. In the HHUT scheme, some neighboring units can be directly obtained by changing the last bit of the encoding, but other units also require coded addition. Both of these comparative schemes require searching the coded addition lookup table symbol by symbol; therefore, as the grid level increases, the encoding length increases, and the computational efficiency slows down.

[0114] Based on the above embodiments, the present invention also proposes an encoding and computation device for a rhombic icosahedral global discrete grid system, comprising:

[0115] The first construction module is used to divide the rhombic icosahedron into 10 combined structures, numbered sequentially from 0 to 9. Each combined structure is composed of three adjacent rhombic faces: the top, middle, and bottom faces. A three-axis integer coordinate system is established in each combined structure.

[0116] The hierarchical subdivision and coding module is used to construct initial units for each composite structure, including upper rhombic hexagonal units, middle rhombic pentagonal units, and lower rhombic hexagonal units. The upper rhombic hexagonal units are numbered 0, the middle rhombic pentagonal units are numbered 1, and the lower rhombic hexagonal units are numbered 2. In addition, the initial pentagonal units at the north and south vertices of the rhombic icosahedron are numbered 3, belonging to composite structures 2 and 7 respectively. Different four-hole hierarchical subdivision and coding methods are used for different initial units.

[0117] The second building module is used to construct the mutual conversion between hierarchical encoding and three-axis integer coordinates;

[0118] The encoding operation design module is used to design encoding operation methods;

[0119] The third module is used to construct the mutual conversion between geographic coordinates and grid codes, so that geospatial data can be integrated into the grid system to obtain a rhombic icosahedral global discrete grid system.

[0120] Furthermore, the method of using different four-hole hierarchical subdivision and encoding for different initial units includes: for the initial pentagonal unit at the north and south vertices, after each hierarchical subdivision, there is only one center-aligned sub-unit, identified by code element 0.

[0121] Furthermore, the method of using different four-hole hierarchical partitioning and encoding for different initial units includes:

[0122] The initial units other than the initial pentagonal units at the north and south vertices are hierarchically partitioned and encoded using four holes. Sub-units at different positions are represented by codes 0 to 3: 0 identifies the central sub-unit, 1 to 2 identify the boundary sub-units, and 3 identifies the boundary or external sub-units. The upper and lower rhombic hexagonal units and their sub-units are partitioned using a hexagonal quadtree and Morton code encoding scheme, so that all three boundary sub-units are adjacent to the current unit. The middle rhombic pentagonal unit and its sub-units are hierarchically partitioned and encoded, so that one sub-unit is completely outside the current unit in terms of spatial location.

[0123] Furthermore, the second building module is specifically used to perform the following steps:

[0124] Step 3.1: Convert the three-axis integer coordinates to the encoding. For the rhombus surface on the composite structure, first transform the three-axis integer coordinates (I,J,K) of the composite structure according to equation (1) to obtain the transition coordinates (i,j) of the rhombus surface:

[0125]

[0126] Where num = 2 n, indicating the number of cells on one edge of the rhombus face at the current grid level;

[0127] Then, according to equation (2), the binary components of the transition coordinates are added together to obtain the Morton code:

[0128] M = B i +2B j (2)

[0129] Among them B i and B j These represent the binary numbers corresponding to the unit transition coordinates i and j, respectively.

[0130] Step 3.2: Convert the encoding to three-axis integer coordinates. For the rhomboid surface on the combined structure, based on the relationship between the Morton code and the spatial position of the unit, the transition coordinates are multiplied and translated by judging the Morton code layer by layer, and finally the three-axis integer coordinates are obtained by inverse transformation.

[0131] Further, step 3.2 includes:

[0132] Step 3.2.1: Set the transition coordinates of the initial grid cell of layer 0 to (i,j)=(0,0);

[0133] Step 3.2.2: Perform the following operations on each Morton code bit to obtain the transition coordinates of the unit: Calculate the transition coordinates i = 2i, j = 2j of the next layer center sub-unit. If the r-th Morton code bit M[r] = 0, that is, the unit is the center sub-unit, then i = i, j = j; if M[r] = 1, that is, the unit is the upper left boundary sub-unit, then i = i + 1, j = j; if M[r] = 2, that is, the unit is the lower boundary sub-unit, then i = i, j = j + 1; if M[r] = 3, that is, the unit is the lower left boundary sub-unit, then i = i + 1, j = j + 1.

[0134] Step 3.2.3: Convert the transition coordinates into three-axis integer coordinates. This process is the reverse of formula (1).

[0135] Furthermore, the encoding operation design module is specifically used to perform the following steps:

[0136] Step 4.1: Design a hierarchical coding operation method, which is divided into finding the parent unit code and finding the child unit code. When finding the parent unit code, remove the last bit of the code; when finding the child unit code, add the code element set {0,1,2,3} to the last bit of the code according to the spatial position of the child unit and the parent unit.

[0137] Step 4.2: Design the proximity coding operation method. The proximity operation of hexagonal cells is divided into three cases: the hexagon and its neighboring cells are both located inside the combined structure; the hexagon is located on the boundary of the combined structure; and the hexagon is located inside the combined structure but some of its neighboring cells belong to the adjacent combined structure. The cells corresponding to the first case are called internal cells, the cells corresponding to the second case are called boundary cells, and the cells corresponding to the third case are called semi-boundary cells.

[0138] Further, step 4.2 includes:

[0139] Step 4.2.1: The proximity operation of the internal cells is completed by adding or subtracting 1 from the three-axis integer coordinates;

[0140] Step 4.2.2: For boundary elements, firstly, search for neighboring elements inside the composite structure using the method in step 4.2.1. Other neighboring elements are located on adjacent composite structures. Composite structures numbered 0 to 4 are classified as the first category, denoted as S1, and composite structures numbered 5 to 9 are denoted as S2. (0), (1), and (2) represent the upper, middle, and lower rhomboid surfaces of the composite structure, respectively. Based on the different element positions, the boundary elements query the adjacent composite structure half-boundary elements using three Morton symbol replacement methods, as shown below:

[0141]

[0142]

[0143] Where M[r] represents the Morton symbol of the unit before transformation, and M′[r] represents the Morton symbol after transformation;

[0144] Step 4.2.3: For a semi-boundary unit, first search for neighboring units inside the combined structure using the method in step 4.2.1, and then find other neighboring units on the adjacent combined structure through the inverse process of the above symbol replacement.

[0145] Furthermore, the third building module is specifically used to perform the following steps:

[0146] Step 5.1, convert geographic coordinates to encoding: First, project the geographic coordinates onto the icosahedral rhombus face to obtain the projected coordinates (x, y); then, based on the geometric characteristics of grid partitioning, convert the projected coordinates into three-axis integer coordinates (I, J, K); finally, convert the three-axis integer coordinates into encoding using the method in step 3.1.

[0147] Step 5.2, convert the code to geographic coordinates: First, convert the code to three-axis integer coordinates (I,J,K) using the method in step 3.2; then calculate the rhombus projection coordinates (x,y); finally, calculate the geographic coordinates (B,L) of the cell center through inverse projection.

[0148] Furthermore, it also includes:

[0149] The quality evaluation and comparison module is used to evaluate and compare the quality of the established rhombic icosahedral global discrete grid system.

[0150] In summary, this invention proposes combining three adjacent rhombic faces of an icosahedron into a single composite structure, simplifying the frequent cross-face operations between 30 rhombic faces into operations between 10 composite structures, thus improving the processing capability for large-area geospatial data. A quadtree hierarchical encoding method is used to identify grid cells, and a composite structure with triaxial integer coordinates is used to describe the spatial location of the cells, integrating the advantages of both hierarchical encoding and integer coordinate encoding. Based on this, a fast nearest neighbor lookup method is designed.

[0151] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for encoding and calculating a rhombic icosahedral global discrete grid system, characterized in that, include: Step 1: Divide the rhombic icosahedron into 10 composite structures, numbered sequentially from 0 to 9. Each composite structure is composed of three adjacent rhombic faces: the top, middle, and bottom faces. Establish a three-axis integer coordinate system in each composite structure. Step 2: For each composite structure, construct initial units, including upper rhombic hexagonal units, middle rhombic pentagonal units, and lower rhombic hexagonal units. Number the upper rhombic hexagonal units as 0, the middle rhombic pentagonal units as 1, and the lower rhombic hexagonal units as 2. In addition, number the initial pentagonal units at the north and south vertices of the rhombic icosahedron as 3, and assign them to composite structures 2 and 7, respectively. Different four-hole hierarchical subdivision and coding methods are used for different initial units. Step 3: Construct the mutual conversion between hierarchical encoding and three-axis integer coordinates; include: Step 3.1: Convert the three-axis integer coordinates to encoding. For the rhombus surface on the composite structure, first convert the three-axis integer coordinates of the composite structure to encoding. The coordinate transformation is performed according to equation (1) to obtain the transition coordinates of the rhombus surface. : (1) in This indicates the number of cells on one edge of the rhombus face at the current grid level. For grid levels; Then, according to equation (2), the binary components of the transition coordinates are added together to obtain the Morton code: (2) in and These represent the unit transition coordinates. and The corresponding binary number; Step 3.2: Convert the encoding to three-axis integer coordinates. For the rhomboid surface on the composite structure, according to the relationship between the Morton code and the spatial position of the unit, the transition coordinates are multiplied and translated by judging the Morton code layer by layer, and finally the three-axis integer coordinates are obtained by inverse transformation. Step 4: Design the encoding and operation method; Step 5: Construct a mutual conversion between geographic coordinates and grid coding to integrate geospatial data into the grid system, resulting in a rhombic icosahedral global discrete grid system; including: Step 5.1, convert geographic coordinates to encoding: First, project the geographic coordinates onto the icosahedral rhombus face to obtain the projected coordinates. Then, based on the geometric properties of grid partitioning, the projected coordinates are converted into triaxial integer coordinates. Finally, the three-axis integer coordinates are converted into codes using the method in step 3.

1. Step 5.2, convert the encoding to geographic coordinates: First, convert the encoding to triaxial integer coordinates using the method in step 3.

2. Then calculate the projected coordinates of the rhombus surface. Finally, the geographic coordinates of the cell center are calculated using inverse projection. .

2. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 1, characterized in that, The method of using different four-hole hierarchical subdivision and encoding for different initial units includes: for the initial pentagonal unit at the north and south vertices, after each hierarchical subdivision, there is only one center-aligned sub-unit, which is identified by the code element 0.

3. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 2, characterized in that, The method of using different four-hole hierarchical partitioning and encoding for different initial units includes: The initial units other than the initial pentagonal units at the north and south vertices are hierarchically partitioned and encoded using four holes. Sub-units at different positions are represented by codes 0 to 3: 0 indicates the central sub-unit, 1 to 2 indicate the boundary sub-units, and 3 indicates the boundary or external sub-units. The upper rhombic hexagonal unit and the lower rhombic hexagonal unit and their sub-units are partitioned using a hexagonal quadtree and Morton code encoding scheme, so that all three boundary sub-units are adjacent to the current unit. The middle rhombic pentagonal unit and its sub-units are hierarchically partitioned and encoded, so that one sub-unit is completely outside the current unit in terms of spatial location.

4. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 1, characterized in that, Step 3.2 includes: Step 3.2.1: Set the transition coordinates of the initial grid cells in layer 0 to... =(0,0); Step 3.2.2: Perform the following operations on each Morton code bit to obtain the transition coordinates of the unit: Calculate the transition coordinates of the next layer's central sub-unit. If the r-th Morton symbol of the sub-unit That is, if the unit is the central subunit, then ;like That is, if the element is the upper left boundary sub-element, then ;like That is, if the element is the lower boundary sub-element, then ;like That is, if the element is the lower left boundary sub-element, then ; Step 3.2.3: Convert the transition coordinates into three-axis integer coordinates. This process is the reverse of formula (1).

5. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 1, characterized in that, Step 4 includes: Step 4.1: Design a hierarchical coding operation method, which is divided into finding the parent unit code and finding the child unit code. When finding the parent unit code, remove the last bit of the code; when finding the child unit code, add a set of code elements to the last bit of the code based on the spatial position of the child unit and the parent unit. ; Step 4.2: Design the proximity coding operation method. The proximity operation of hexagonal cells is divided into three cases: the hexagon and its neighboring cells are both located inside the combined structure; the hexagon is located on the boundary of the combined structure; and the hexagon is located inside the combined structure but some of its neighboring cells belong to the adjacent combined structure. The cells corresponding to the first case are called internal cells, the cells corresponding to the second case are called boundary cells, and the cells corresponding to the third case are called semi-boundary cells.

6. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 5, characterized in that, Step 4.2 includes: Step 4.2.1: The proximity operation of the internal cells is completed by adding or subtracting 1 from the three-axis integer coordinates; Step 4.2.2: For boundary elements, firstly, search for neighboring elements within the composite structure using the method in Step 4.2.

1. Other neighboring elements are located on adjacent composite structures. Composite structures numbered 0~4 are classified into the first category, denoted as... Accordingly, the combination structures numbered 5 to 9 are denoted as ,use These represent the upper, middle, and lower rhombus faces of the composite structure, respectively. Based on the different cell positions, there are three Morton symbol replacement methods, where the boundary cell queries the adjacent half-boundary cells of the composite structure, as shown below: in This represents the Morton symbol of the unit before the transformation. This represents the transformed Morton code; Step 4.2.3: For a semi-boundary unit, first search for neighboring units inside the combined structure using the method in step 4.2.1, and then find other neighboring units on the adjacent combined structure through the inverse process of the above symbol replacement.

7. The encoding and computation method for a rhombic icosahedral global discrete grid system according to claim 1, characterized in that, Following step 5, the following is also included: Step 6: Evaluate and compare the quality of the established rhombic icosahedral global discrete grid system.

8. A coding and computing device for a rhombic icosahedral global discrete grid system, characterized in that, For performing the encoding and operation method according to any one of claims 1-6, comprising: The first construction module is used to divide the rhombic icosahedron into 10 combined structures, numbered sequentially from 0 to 9. Each combined structure is composed of three adjacent rhombic faces: the top, middle, and bottom faces. A three-axis integer coordinate system is established in each combined structure. The hierarchical subdivision and coding module is used to construct initial units for each composite structure, including upper rhombic hexagonal units, middle rhombic pentagonal units, and lower rhombic hexagonal units. The upper rhombic hexagonal units are numbered 0, the middle rhombic pentagonal units are numbered 1, and the lower rhombic hexagonal units are numbered 2. In addition, the initial pentagonal units at the north and south vertices of the rhombic icosahedron are numbered 3, belonging to composite structures 2 and 7 respectively. Different four-hole hierarchical subdivision and coding methods are used for different initial units. The second building module is used to construct the mutual conversion between hierarchical encoding and three-axis integer coordinates; The encoding operation design module is used to design encoding operation methods; The third module is used to construct the mutual conversion between geographic coordinates and grid codes, so that geospatial data can be integrated into the grid system to obtain a rhombic icosahedral global discrete grid system.

Citation Information

Patent Citations

  • Method for rapidly converting geographic coordinates into spherical triangle discretization grid codes

    CN107229725A

  • Local equidistant optimization spherical grid coding method, system and device and medium

    CN115801024A