A method and system for geospatial three-dimensional grid generation

Through cube projection, Hilbert curve filling and Google S2 encoding, combined with binary elevation encoding, the rapid segmentation and encoding of the earth's three-dimensional space is realized, which solves the problem that existing technology cannot meet the problem of three-dimensional space data organization and retrieval. Improved data query efficiency.

CN114140599BActive Publication Date: 2024-08-23CHINA ZHENGYUAN GEOMATICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111465185.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-08-23
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

Existing technology cannot achieve effective segmentation and encoding of the earth's three-dimensional space, and cannot meet the data organization and efficient retrieval needs of the entire space of sea, land, air, and ground (underground).

Method used

The cube projection is used to map the earth into a two-dimensional plane, and the Hilbert curve is used to fill in the multi-level plane grid, which is combined with the Google S2 algorithm for encoding. At the same time, the elevation is binary encoded and integrated to obtain a three-dimensional grid encoding.

Benefits of technology

It achieves rapid segmentation and coding of the earth's three-dimensional space, improves the efficiency of data query and retrieval, reduces the complexity of segmentation and coding, and meets the needs for unified organization, management and efficient retrieval of multi-source data above and below ground.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140599B
    Figure CN114140599B
Patent Text Reader

Abstract

The present invention relates to a method and system for dividing a three-dimensional grid of earth space, the method comprising: mapping the earth by a cube projection method to obtain a two-dimensional plane; filling the two-dimensional plane by a Hilbert curve to obtain a multi-level plane grid; encoding the multi-level plane grid by a Google S2 algorithm to determine the plane grid codes at each level; dividing the set elevation division range to obtain a plurality of elevation levels; each elevation level includes a plurality of elevation units; encoding the plurality of elevation units by a binary coding method to determine the elevation unit codes at each level; determining three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units; integrating the plane grid codes at each level and the elevation unit codes at each level based on a three-dimensional network to obtain three-dimensional grid codes of different levels. The present invention can realize the division and coding of the three-dimensional space of the earth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional grid partitioning, and in particular to a method and system for partitioning three-dimensional grids in earth space. Background Art

[0002] The development of spatiotemporal information acquisition technologies such as remote sensing technology, satellite navigation technology, geographic information technology, and earth observation technology has made it possible to quickly and efficiently obtain high-resolution, content-rich spatiotemporal data. At the same time, as people's understanding of ground and underground space resources continues to deepen, heterogeneous multi-source spatiotemporal data including space-ground integration, indoor and outdoor, ground and underground are rapidly converging. The rapid growth of data volume has brought huge challenges to the unified organization and management of multi-source data and efficient retrieval. The unified organization and management of spatiotemporal data and efficient retrieval need to be based on a spatial reference system. At present, the traditional spatial reference system usually uses coordinates such as longitude and latitude, and there are problems such as low efficiency in retrieving a certain target in massive city-level data.

[0003] In order to improve the efficiency of data query and retrieval, a spatial reference system based on grid coding has been gradually proposed and applied. This spatial reference system divides and codes the earth at multiple levels according to certain rules, and provides an earth spatial reference framework for spatial data organization and retrieval through grid coding. However, most of the existing mature grid coding technologies are two-dimensional grid coding, which can only realize the division and coding of the earth's spherical surface, and cannot realize the three-dimensional division and coding of the entire space above and below the ground, covering sea, land, air, and ground (underground).

[0004] There are two mature 2D grid coding methods in the world: Geohash and Google S2. Compared with Geohash, which has only 12 levels, Google S2 has 30 levels, and the level changes are relatively smooth, making it easier to select grid levels in practical applications. Compared with Geohash's Z-order curve, Google S2 encodes based on the Hilbert curve. When the order tends to infinity, the position of the points on the curve basically tends to be stable, which has obvious advantages in grid coding. Although Google S2 has more advantages in coding, it still cannot achieve the segmentation and coding of three-dimensional space. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for dividing the three-dimensional grid of the earth space, so as to realize the division and coding of the three-dimensional space of the earth.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] A method for geospatial three-dimensional grid generation, comprising:

[0008] Map the earth using cube projection to obtain a two-dimensional plane;

[0009] Filling the two-dimensional plane with a Hilbert curve to obtain a multi-level plane grid;

[0010] Encoding the multi-level plane grids using the Google S2 algorithm to determine the plane grid codes at each level;

[0011] Dividing the set elevation subdivision range to obtain a plurality of elevation levels; each elevation level includes a plurality of elevation units;

[0012] Encoding the plurality of elevation units using a binary encoding method to determine elevation unit codes at each level;

[0013] Determine three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units;

[0014] Based on the three-dimensional network, the plane grid codes at each level and the elevation unit codes at each level are integrated to obtain three-dimensional grid codes at different levels.

[0015] Optionally, mapping the earth by means of cube projection to obtain a two-dimensional plane specifically includes:

[0016] A circumscribed cube is enclosed in the earth;

[0017] Projection and correction are performed from the center of the earth to the bottom and side of the circumscribed cube to obtain a two-dimensional plane.

[0018] Optionally, encoding the plurality of elevation units in a binary encoding manner to determine the elevation unit codes at each level specifically includes:

[0019] The elevation units in each elevation level are encoded respectively using binary encoding to obtain effective elevation codes;

[0020] The effective elevation code is added with a mark bit and an invalid bit to obtain elevation unit codes at each level.

[0021] Optionally, the adding of a mark bit and an invalid bit to the valid elevation code to obtain elevation unit codes at various levels specifically includes:

[0022] Adding a marker bit after the valid elevation code;

[0023] Determine whether the sum of the number of digits of the effective elevation code and the number of digits of the mark bit is less than a set number of digits, and obtain a determination result;

[0024] If the judgment result indicates that the sum of the number of bits of the valid elevation code and the number of bits of the mark bit is less than the set number of bits, an invalid bit is added after the mark bit; the sum of the number of bits of the valid elevation code, the number of bits of the mark bit and the number of invalid bits is the set number of bits.

[0025] A three-dimensional grid partitioning system for earth space, comprising:

[0026] The spherical projection module is used to map the earth using a cube projection method to obtain a two-dimensional plane;

[0027] A plane mesh generation module, used for filling the two-dimensional plane with a Hilbert curve to obtain a multi-level plane mesh;

[0028] A plane grid encoding module is used to encode the multi-level plane grids using the Google S2 algorithm to determine the plane grid encoding at each level;

[0029] The elevation unit subdivision module is used to divide the set elevation subdivision range into multiple elevation levels; each elevation level includes multiple elevation units;

[0030] An elevation unit coding module is used to encode the plurality of elevation units using a binary coding method to determine elevation unit codes at each level;

[0031] A three-dimensional grid determination module, used to determine three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units;

[0032] The three-dimensional grid coding module is used to integrate the plane grid codes at various levels and the elevation unit codes at various levels based on the three-dimensional network to obtain three-dimensional grid codes at different levels.

[0033] Optionally, the spherical projection module specifically includes:

[0034] A coat submodule, for forming a circumscribed cube on the earth coat;

[0035] The projection and correction submodule is used to project and correct from the center of the earth to the bottom and side of the circumscribed cube respectively to obtain a two-dimensional plane.

[0036] Optionally, the elevation unit encoding module specifically includes:

[0037] The effective elevation code determination submodule is used to encode the elevation units in each elevation level respectively using a binary encoding method to obtain an effective elevation code;

[0038] The elevation unit coding submodule is used to add a mark bit and an invalid bit to the valid elevation code to obtain elevation unit codes at each level.

[0039] Optionally, the elevation unit encoding submodule specifically includes:

[0040] A marker adding unit, used for adding a marker after the effective elevation code;

[0041] A judging unit, used for judging whether the sum of the number of digits of the effective elevation code and the number of digits of the marking digit is less than a set number of digits, and obtaining a judging result;

[0042] An invalid bit adding unit is used to add invalid bits after the mark bit if the judgment result indicates that the sum of the number of bits of the valid elevation code and the number of bits of the mark bit is less than the set number of bits; the sum of the number of bits of the valid elevation code, the number of bits of the mark bit and the number of bits of the invalid bits is the set number of bits.

[0043] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0044] The present invention provides a method and system for dividing the three-dimensional grid of earth space, which maps the earth by a cube projection to obtain a two-dimensional plane; fills the two-dimensional plane by a Hilbert curve to obtain a multi-level plane grid; encodes the multi-level plane grid by a Google S2 algorithm to determine the plane grid codes at each level; divides the set elevation division range to obtain multiple elevation levels; each elevation level includes multiple elevation units; encodes multiple elevation units by a binary encoding method to determine the elevation unit codes at each level; determines three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units; integrates the plane grid codes at each level and the elevation unit codes at each level based on a three-dimensional network to obtain three-dimensional grid codes of different levels. Expanding on the existing Google S2, it can realize the rapid division and encoding of three-dimensional space. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 A flow chart of the method for three-dimensional grid partitioning of earth space provided by the present invention;

[0047] Figure 2A flowchart of the method for three-dimensional grid partitioning of earth space provided by the present invention in practical application;

[0048] Figure 3 It is a schematic diagram of the coding structure of each level of elevation units;

[0049] Figure 4 This is a schematic diagram of the coding structure of the 20th level elevation unit;

[0050] Figure 5 It is a schematic diagram of a three-dimensional grid coding structure;

[0051] Figure 6 A schematic diagram of the three-dimensional grid partitioning system of the earth space provided by the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] The purpose of the present invention is to provide a method and system for dividing the three-dimensional grid of the earth space, so as to realize the division and coding of the three-dimensional space of the earth.

[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0055] like Figure 1 As shown, the present invention provides a method for geospatial three-dimensional grid generation, comprising:

[0056] Step 101: Map the earth by using a cube projection method to obtain a two-dimensional plane. Step 101 specifically includes: placing a circumscribed cube on the earth; and projecting and correcting from the center of the earth to the bottom and side of the circumscribed cube to obtain a two-dimensional plane.

[0057] Step 102: Fill the two-dimensional plane using the Hilbert curve to obtain a multi-level plane grid.

[0058] Step 103: Encode the multi-level plane grids using the Google S2 algorithm to determine the plane grid codes at each level.

[0059] Step 104: Divide the set elevation subdivision range to obtain a plurality of elevation levels; each elevation level includes a plurality of elevation units.

[0060] Step 105: Encode the plurality of elevation units using a binary encoding method to determine the elevation unit codes at each level.

[0061] Step 106: Determine three-dimensional grids of different levels in the three-dimensional space according to the multi-level plane grids and the elevation units.

[0062] Step 107: Integrate the plane grid codes at each level and the elevation unit codes at each level based on the three-dimensional network to obtain three-dimensional grid codes at different levels.

[0063] Wherein, the step 105 specifically includes: using binary coding to encode the elevation units in each elevation level respectively to obtain a valid elevation code; adding a mark bit and an invalid bit to the valid elevation code to obtain elevation unit codes at each level. The step of adding a mark bit and an invalid bit to the valid elevation code to obtain elevation unit codes at each level specifically includes: adding a mark bit after the valid elevation code; judging whether the sum of the number of digits of the valid elevation code and the number of digits of the mark bit is less than the set number of digits to obtain a judgment result; if the judgment result indicates that the sum of the number of digits of the valid elevation code and the number of digits of the mark bit is less than the set number of digits, then adding an invalid bit after the mark bit; the sum of the number of digits of the valid elevation code, the number of digits of the mark bit and the number of digits of the invalid bit is the set number of digits. If the judgment result indicates that the sum of the number of digits of the valid elevation code and the number of digits of the mark bit is equal to the set number of digits, then no invalid bit is added after the mark bit.

[0064] like Figure 2 As shown, the present invention also provides a specific workflow of a three-dimensional grid division method for the earth space in practical applications, gridding and encoding the earth and the space in the air and underground (that is, the entire space above ground and underground), dividing and encoding the earth plane through steps 1-3, dividing and encoding the earth's above-ground and underground elevation space through steps 4-5, and then determining each three-dimensional grid unit and code in the above-ground and underground space according to the plane and elevation division units through steps 6-7.

[0065] Step 1: Unfold the earth using cube projection and map the three-dimensional sphere onto a two-dimensional plane.

[0066] Step 1.1: Put a circumscribed cube outside the earth, and project from the center of the sphere to the six faces of the circumscribed cube respectively. That is, the point that passes through the surface of the sphere from the center of the earth to the plane of the cube is the projection of the point on the surface of the sphere, so that all the points on the sphere are projected onto the six faces of the circumscribed cube.

[0067] Step 1.2: Correct the area of ​​each projected shape so that the area of ​​the spherical rectangle projected onto the square is as equal as possible.

[0068] Through step 1.1, a three-dimensional sphere can be mapped to a two-dimensional plane. However, due to the different angles on the sphere, the same arc interval at different latitudes will be projected onto the square at different lengths, resulting in uneven projection area. A projection correction is required. The correction method is to fine-tune the length, shorten the long ones, and lengthen the short ones, so as to make the projection area as evenly distributed as possible.

[0069] Step 2: Use the Hilbert curve to fill the two-dimensional plane obtained in step 1 and divide it into multi-level plane grids. The two-dimensional plane obtained by step 1 is filled with multiple levels (1-30) through the Hilbert curve, so that the two-dimensional plane obtained by step 1 is divided into multi-level plane grids. The plane grid level is 1-30, with level 1 being the lowest and level 30 being the highest. The higher the level, the more grids it contains.

[0070] Step 2.1: The Hilbert curve is a space-filling curve that can fill a plane square. It can effectively reduce the dimensionality of multi-dimensional space and has the characteristics of continuity and local stability. It can divide the data space into grids of equal size through space filling. The 2-dimensional h-order (h represents any positive integer, the same below) Hilbert curve can divide the plane into 2 equal-sized grids. h ×2 h grids and passes through the center point of each grid in turn.

[0071] The specific operation of Hilbert curve space filling is: first divide a square into four small squares, starting from the center of the square in the southwest corner north to the center of the northwest square, then east to the center of the square in the northeast corner, and then south to the center of the square in the southeast corner. This is an iteration. If you continue the above process for the four small squares, divide them down, and repeat it, you will eventually get a curve that can fill the entire square.

[0072] Step 2.2: Considering that the plane mesh obtained by Hilbert curve decomposition needs to be encoded based on the Google S2 algorithm, and the Google S2 encoding level is 1-30, the Hilbert curve filling order is set to 1-30.

[0073] Step 2.3: Through the Hilbert curve, the two-dimensional plane mapped in step 1 is filled with multiple orders (1-30 orders), so as to divide the two-dimensional plane mapped in step 1 into multi-level plane grids. The plane grid level is 1-30, with level 1 being the lowest and level 30 being the highest. The higher the level, the more grids it contains.

[0074] Step 3: Encode the multi-level plane grid obtained by step 2 based on the Google S2 algorithm to determine the plane grid coding at each level.

[0075] Step 4: Divide the entire elevation subdivision range into multiple elevation levels, each elevation level includes multiple elevation units.

[0076] Step 4.1: The elevation subdivision range should cover all effective spaces above and below the ground as much as possible. Considering that the radius of the earth is 6371 kilometers, the elevation subdivision range is set to (-6371, 6371) km. This subdivision range can realize the subdivision of all underground spaces from the earth's surface to the center of the earth, as well as the effective space above the ground, and meet the grid subdivision requirements for all effective spaces above and below the ground in practical applications.

[0077] Step 4.2: In order to meet the needs of data scheduling at each level, the elevation unit level needs to match the plane grid level determined in step 2. Considering that the plane grid level determined in step 2 is 1-30, the elevation subdivision level is set to 1-30.

[0078] Step 4.3: Divide the entire elevation range (-6371, 6371) km into 1-30 elevation levels. Each elevation level includes multiple elevation units. The number of elevation units in level L (L represents elevation level, 1≤L≤30, L is an integer, the same below) is 2 L The specific operation of elevation subdivision is:

[0079] The entire elevation subdivision range (-6371, 6371) km is divided into two equal parts to obtain the first level elevation grade, and the two equal-divided elevation segments are used as the elevation units of the first level elevation grade, namely (-6371, 0) km and (0, 6371) km; the first level elevation grade is divided into two equal parts to obtain the second level elevation grade, and the four equal-divided elevation segments are used as the elevation units of the second level elevation grade, namely (-6371, -3185.50) km, (-3185.50, 0) km, (0, 3185.50) km, (3185.50, 6371) km. 1)Km; the second level elevation level is divided into two equal parts to obtain the third level elevation unit, and the eight equal parts are used as the elevation units of the third level elevation level, namely (-6371,-4778.25)Km, (-4778.25,-3185.50)Km, (-3185.50,-1592.75)Km, (-1592.75,0)Km, (0,1592.75)Km, (1592.75,3185.50)Km, (3185.50,4778.25)Km, (4778.25,6 371)Km; the 4th level elevation unit is obtained by dividing the 3rd level elevation grade into 4 equal parts, and the 16 equal parts are used as the 4th level elevation unit, namely (-6371,-5574.63)Km, (-5574.63,-4778.25)Km, (-4778.25,-3981.88)Km, (-3981.88,-3185.50)Km, (-3185.50,-2389.13)Km, (-2389.13,-1592.75)Km, (-1592.75, -796.38)Km, (-796.38,0)Km, (0,796.38)Km, (796.38,1592.75)Km, (1592.75,2389.13)Km, (2389.13,3185.50)Km, (3185.50,3981.88)Km, (3981.88,4778.25)Km, (4778.25,5574.63)Km, (5574.63,6371)Km; and so on, we get the 30th level of elevation, and divide the 2 30 The elevation segments are used as the elevation units of the 30th elevation level.

[0080] Step 5: Use binary coding method to encode the elevation units of each elevation level obtained in step 4 and determine the elevation unit codes at each level.

[0081] Step 5.1: Use binary coding method to encode the elevation units of level 1-30 obtained in step 4 respectively to determine the effective elevation code. Lelevation unit, the number of effective elevation code bits is L. The specific coding method of effective elevation code is:

[0082] For the two elevation units of the first level elevation level, a 1-bit binary number is used for encoding, and the valid elevation codes include 0 and 1; for the four elevation units of the second level elevation level, a 2-bit binary number is used for encoding, and the valid elevation codes include 00, 01, 10, and 11; for the eight elevation units of the third level elevation level, a 3-bit binary number is used for encoding, and the valid elevation codes include 000, 100, 010, 001, and 110. , 101, 011, 111; for the 16 elevation units of the 4th elevation level, 4-bit binary numbers are used for encoding, and the valid elevation codes include 0000, 1000, 0100, 0010, 0001, 1100, 1010, 1001, 0110, 0101, 0011, 0111, 1011, 1101, 1110, 1111; and so on, for the 2 elevation units of the 30th elevation level, 4-bit binary numbers are used for encoding, and the valid elevation codes include 0000, 1000, 0100, 0010, 0001, 1100, 1101 30 The elevation unit is encoded in 30 bits of binary.

[0083] Step 5.2: According to the effective elevation code determined in step 5.1, determine the elevation unit code of each level. Figure 3 The coding structure of each level of elevation unit is shown in the figure. The coding structure of each level of elevation unit is 31 bits in total, including three parts: valid elevation coding bit, mark bit and invalid bit. The valid elevation coding bit is the valid elevation code determined in step 5.1. The bit after the valid elevation coding bit is the mark bit, and the value is 1. When the sum of the valid elevation coding bit and the mark bit is less than 31, the following bits are invalid bits and are all filled with 0. When the sum of the valid elevation coding bit and the mark bit is equal to 31, there is no invalid bit.

[0084] like Figure 4 As shown in the figure, taking the 20-level elevation code as an example, the first 20 bits are the valid elevation code determined in step 5.1, the 21st bit is the mark bit, the value is 1, and the last 10 bits are invalid bits, the value is 0. The function of the mark bit is to quickly extract the valid elevation code, that is, to search forward from the last bit at the end, and the first position that is not 0 is the mark bit, and the code from the mark bit to the first bit is the valid elevation code.

[0085] Step 6: According to the plane grid obtained by step 2 and the elevation unit obtained by step 4, determine the three-dimensional grids of different levels in the three-dimensional space.

[0086] The three-dimensional grid levels include 1-30, with 1 being the lowest and 30 being the highest. The minimum area of ​​the 30-level three-dimensional grid plane is 0.44cm 2 , the maximum plane area is 0.93cm 2The grid height is 1.19 cm, and the segmentation accuracy reaches cm level, which can meet the accuracy requirements of full-space data management above and below the ground in actual work. In actual application, the appropriate segmentation level can be selected according to needs. The plane area, height and number of grid units of each level of three-dimensional grid are shown in Table 1.

[0087] Table 1 Plane area, height and number of grid units of three-dimensional grids at each level

[0088]

[0089] Step 7: Integrate the plane grid code obtained in step 3 with the elevation unit code obtained in step 5, and add custom attribute information to obtain three-dimensional grid codes of different levels.

[0090] The three-dimensional grid code is stored in Uint128, such as Figure 5 As shown, the three-dimensional grid coding structure includes three parts, wherein the first part is the plane grid code determined in step 3, and the storage position is the 1st to 64th bits; the second part is the elevation unit code determined in step 5, and the storage position is the 65th to 95th bits; the third part is the custom attribute code, which stores custom time, grid rendering color and other extended attribute information, which should be customized and extended as needed in actual application, and the storage position is the 96th to 128th bits.

[0091] like Figure 6 As shown, the present invention provides a three-dimensional grid partitioning system for earth space, comprising:

[0092] The spherical projection module 201 is used to map the earth by using a cube projection method to obtain a two-dimensional plane.

[0093] The plane mesh generation module 202 is used to fill the two-dimensional plane with the Hilbert curve to obtain a multi-level plane mesh.

[0094] The plane grid coding module 203 is used to code the multi-level plane grids using the Google S2 algorithm to determine the plane grid coding at each level.

[0095] The elevation unit segmentation module 204 is used to divide the set elevation segmentation range into multiple elevation levels; each elevation level includes multiple elevation units.

[0096] The elevation unit coding module 205 is used to encode the plurality of elevation units using a binary coding method to determine the elevation unit codes at each level.

[0097] The three-dimensional grid determination module 206 is used to determine three-dimensional grids of different levels in the three-dimensional space according to the multi-level plane grids and the elevation units.

[0098] The three-dimensional grid coding module 207 is used to integrate the plane grid codes at various levels and the elevation unit codes at various levels based on the three-dimensional network to obtain three-dimensional grid codes at different levels.

[0099] The spherical projection module 201 specifically includes: a casing submodule, used to casing a circumscribed cube on the earth; a projection and correction submodule, used to project and correct from the center of the earth to the bottom and side of the circumscribed cube to obtain a two-dimensional plane.

[0100] The elevation unit coding module 205 specifically includes: a valid elevation code determination submodule, which is used to encode the elevation units in each elevation level respectively using binary coding to obtain a valid elevation code; an elevation unit coding submodule, which is used to add a mark bit and an invalid bit to the valid elevation code to obtain elevation unit codes at each level. The elevation unit coding submodule specifically includes: a mark bit adding unit, which is used to add a mark bit after the valid elevation code; a judgment unit, which is used to judge whether the sum of the number of bits of the valid elevation code and the number of bits of the mark bit is less than a set number of bits, and obtain a judgment result; an invalid bit adding unit, which is used to add an invalid bit after the mark bit if the judgment result indicates that the sum of the number of bits of the valid elevation code and the number of bits of the mark bit is less than a set number of bits; the sum of the number of bits of the valid elevation code, the number of bits of the mark bit and the number of bits of the invalid bit is the set number of bits.

[0101] The method and system provided by the present invention can realize the segmentation and coding of above-ground and underground three-dimensional space, and provide a basic framework for the positioning and indexing of three-dimensional geographic space. Compared with the existing floating-point calculation of spatial coordinates, the present invention uses the three-dimensional grid code as the unique identifier of the three-dimensional grid, and operates completely based on binary integers. The operation speed is several times faster than floating points, which helps to improve the efficiency of spatiotemporal data query retrieval and application analysis. The present invention chooses to expand on the basis of the existing mature coding scheme Google S2, which can realize the rapid segmentation and coding of three-dimensional space, and because it directly uses the existing coding scheme for expansion, it greatly reduces the complexity of segmentation and coding on the basis of meeting the unified organization and management and efficient retrieval requirements of multi-source data above and below the ground.

[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0103] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for three-dimensional grid generation in earth space, characterized in that: include: The earth is mapped using cube projection to obtain a two-dimensional plane; Filling the two-dimensional plane with a Hilbert curve to obtain a multi-level plane grid; Encoding the multi-level plane grids using the Google S2 algorithm to determine the plane grid codes at each level; Dividing the set elevation subdivision range to obtain a plurality of elevation levels; each elevation level includes a plurality of elevation units; The plurality of elevation units are encoded using a binary encoding method to determine the elevation unit codes at each level, specifically including: The binary coding method is used to code the elevation units of each elevation level, and the elevation unit codes of each level are determined; for the 2nd level of the Lth elevation level, L elevation unit, the number of effective elevation code bits is L; According to the determined valid elevation code, determine the elevation unit code of each level; the elevation unit code structure of each level is 31 bits in total, including three parts: valid elevation code bit, mark bit and invalid bit; the valid elevation code bit is the determined valid elevation code, and the bit after the valid elevation code bit is the mark bit, with a value of 1. When the sum of the number of valid elevation code bits and the number of mark bits is less than 31, the following bits are invalid bits and are all filled with 0; when the sum of the number of valid elevation code bits and the number of mark bits is equal to 31, there is no invalid bit; Determine three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units; Based on the three-dimensional grid, the plane grid codes at each level and the elevation unit codes at each level are integrated to obtain three-dimensional grid codes at different levels; The 2D h-order Hilbert curve divides the plane into 2 equal-sized h ×2 h grids, h represents any positive integer; Set the Hilbert curve filling order to 1-30; The entire elevation range (-6371, 6371) km is equally divided into 1-30 elevation levels, each of which includes multiple elevation units. The number of elevation units included in the L-level elevation level is 2. L , L represents the elevation level, 1≤L≤30, and L is an integer.

2. The method for three-dimensional grid generation in earth space according to claim 1, characterized in that: The method of mapping the earth by using a cube projection to obtain a two-dimensional plane specifically includes: A circumscribed cube is enclosed in the earth; Projection and correction are performed from the center of the earth to the bottom and side of the circumscribed cube to obtain a two-dimensional plane.

3. A three-dimensional grid partitioning system for earth space, characterized in that: include: The spherical projection module is used to map the earth using a cube projection method to obtain a two-dimensional plane; A plane mesh generation module is used to fill the two-dimensional plane with a Hilbert curve to obtain a multi-level plane mesh; A plane grid encoding module is used to encode the multi-level plane grids using the Google S2 algorithm to determine the plane grid encoding at each level; The elevation unit subdivision module is used to divide the set elevation subdivision range into multiple elevation levels; each elevation level includes multiple elevation units; An elevation unit coding module is used to encode the plurality of elevation units using a binary coding method to determine elevation unit codes at each level; The elevation unit encoding module specifically includes: The binary coding method is used to code the elevation units of each elevation level, and the elevation unit codes of each level are determined; for the 2nd level of the Lth elevation level, L elevation unit, the number of effective elevation code bits is L; According to the determined valid elevation code, determine the elevation unit code of each level; the elevation unit code structure of each level is 31 bits in total, including three parts: valid elevation code bit, mark bit and invalid bit; the valid elevation code bit is the determined valid elevation code, and the bit after the valid elevation code bit is the mark bit, with a value of 1. When the sum of the number of valid elevation code bits and the number of mark bits is less than 31, the following bits are invalid bits and are all filled with 0; when the sum of the number of valid elevation code bits and the number of mark bits is equal to 31, there is no invalid bit; A three-dimensional grid determination module, used to determine three-dimensional grids of different levels in a three-dimensional space according to the multi-level plane grids and the elevation units; A three-dimensional grid coding module, used for integrating the plane grid codes at various levels and the elevation unit codes at various levels based on the three-dimensional grid to obtain three-dimensional grid codes at different levels; The 2D h-order Hilbert curve divides the plane into 2 equal-sized h ×2 h grids, h represents any positive integer; Set the Hilbert curve filling order to 1-30; The entire elevation range (-6371, 6371) km is equally divided into 1-30 elevation levels, each of which includes multiple elevation units. The number of elevation units included in the L-level elevation level is 2. L , L represents the elevation level, 1≤L≤30, and L is an integer.

4. The three-dimensional grid generation system of earth space according to claim 3, characterized in that: The spherical projection module specifically comprises: A coat submodule, for forming a circumscribed cube on the earth coat; The projection and correction submodule is used to project and correct from the center of the earth to the bottom and side of the circumscribed cube respectively to obtain a two-dimensional plane.

Citation Information

Patent Citations

  • Subdivision identification generation method and data search method of multi-source space data

    CN103136371A

  • Area space multi-dimension grid encoding method and device

    CN107665242A

  • A three-dimensional space indexing method and system

    CN109885638A

  • Urban three-dimensional space grid compression coding method and device and terminal equipment

    CN111260784A

  • Multi-resolution digital terrain integration method based on three-dimensional subdivision grid

    CN113269870A