Terrain data fusion method, device, equipment and medium

By meshing and fusion processing of terrain data, the problem of long-term fusion of terrain data and poor display effect is solved, and more efficient and flexible terrain display is achieved, avoiding the problem of steep hurdles.

CN119295322APending Publication Date: 2025-01-10SHANGHAI HUACE NAVIGATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411304661.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In the prior art, terrain data fusion takes a long time, is low in flexibility, and has poor display effect, especially when loading multiple terrain data sources.

Method used

By obtaining the first and second precision tile data of the target terrain, meshing and accuracy boundary determination are performed, the data in the fused grid are fused separately, the fused tile data is generated, and the rendering engine WebGL is used to generate the fused tile data. Load to improve presentation.

Benefits of technology

It improves the flexibility and efficiency of terrain data fusion, avoids steep hurdles caused by single terrain loading, and improves the quality of terrain display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119295322A_ABST
    Figure CN119295322A_ABST
Patent Text Reader

Abstract

The invention provides a topographic data fusion method and device, equipment and a medium, and the method comprises the steps: obtaining the tile data of a to-be-displayed target topography, the tile data comprising at least one piece of first precision tile data and at least one piece of second precision tile data; according to the tile data of the target terrain, performing grid division on the target terrain to obtain a plurality of grids corresponding to the target terrain and resolution levels and longitude and latitude identifiers of the grids; acquiring boundary information of a target area with first precision in the target terrain; determining at least one to-be-fused grid of the plurality of grids and a precision boundary in each to-be-fused grid according to the resolution hierarchy and the latitude and longitude identifier of each grid and the boundary information of the target area; according to the precision boundary in each to-be-fused grid, performing fusion processing on each to-be-fused grid to obtain fused tile data of each to-be-fused grid; and displaying the target terrain according to the fused tile data of each to-be-fused grid. And the topographic data fusion efficiency and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of geographic information technology, and in particular to a terrain data fusion method, device, equipment and medium. Background Art

[0002] As a rendering engine, Web Graphics Library (WebGL) only supports loading one terrain and cannot load multiple terrain data sources. As a result, the areas with terrain and those without terrain have large fluctuations, steep slopes, and poor rendering effects.

[0003] At present, loading multiple terrain data sources requires data fusion, using tools such as ArcMap to overlay and correct low-precision terrain data and high-precision terrain data, merge them into a tag image file (Tag Image File, referred to as TIF), and then slice the merged TIF. Among them, the low-precision terrain data is a large-area digital elevation model (Digital Elevation Model, referred to as DEM). The original data of large-area DEM is large, the processing process is complex, time-consuming and inflexible. In addition, if the rendered terrain needs to be updated, the data needs to be re-fused and sliced, and the terrain display effect is poor.

[0004] Therefore, how to improve the flexibility and efficiency of terrain fusion and enhance the display effect of the fused terrain is an urgent problem to be solved. Summary of the invention

[0005] The purpose of this application is to provide a terrain data fusion method, device, equipment and medium to address the deficiencies in the above-mentioned prior art, so as to solve the practical problems of terrain data fusion in the prior art, such as long time consumption, poor flexibility and poor display effect.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a terrain data fusion method, the method comprising:

[0008] Acquire tile data of a target terrain to be displayed, the tile data comprising: at least one first precision tile data and at least one second precision tile data;

[0009] According to the tile data of the target terrain, the target terrain is gridded to obtain a plurality of grids corresponding to the target terrain and a resolution level and a longitude and latitude identifier of each grid;

[0010] Acquire boundary information of a target area with a first precision in the target terrain;

[0011] Determine at least one grid to be fused among the multiple grids and the precision boundary in each of the grids to be fused according to the resolution level and the longitude and latitude identifiers of each grid and the boundary information of the target area, wherein the grid to be fused includes first precision tile data and second precision tile data;

[0012] According to the precision boundaries in each of the to-be-fused grids, the first precision tile data and the second precision tile data in each of the to-be-fused grids are fused to obtain fused tile data of each of the to-be-fused grids;

[0013] The target terrain is displayed according to the fused tile data of each of the grids to be fused.

[0014] As an optional implementation manner, determining at least one grid to be fused among the multiple grids and the precision boundaries in each of the grids to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area includes:

[0015] Determine the longitude and latitude of the boundary points of the grid according to the resolution level of the grid and the longitude and latitude identifiers;

[0016] According to the boundary information of the target area, obtaining the longitude and latitude of the boundary points of the target area;

[0017] Determining whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area;

[0018] If so, the precision boundary in the to-be-fused grid is determined according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0019] As an optional implementation, the longitude and latitude of the boundary points of the grid include: the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point, and the longitude and latitude of the boundary points of the target area include: the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point;

[0020] The step of determining whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area includes:

[0021] Determine a first rectangle according to the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point;

[0022] Determine a second rectangle according to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point;

[0023] Based on a rectangle intersection algorithm, determining a spatial position relationship between the first rectangle and the second rectangle, wherein the spatial position relationship includes: being separated, contained, or partially overlapping;

[0024] It is determined whether the grid is a grid to be fused according to the spatial position relationship between the first rectangle and the second rectangle.

[0025] As an optional implementation manner, determining whether the grid is a grid to be merged according to the spatial position relationship between the first rectangle and the second rectangle includes:

[0026] If the spatial position relationship between the first rectangle and the second rectangle is partially overlapped, the grid is determined to be a grid to be fused.

[0027] As an optional implementation manner, the fusing process is performed on the first precision tile data and the second precision tile data in each of the grids to be fused according to the precision boundaries in each of the grids to be fused to obtain the fused tile data of each of the grids to be fused, including:

[0028] Performing resolution level conversion on the second precision tile data in the to-be-fused grid to obtain converted second precision tile data, wherein the resolution level of the converted second precision tile data is the same as the resolution level of the first precision tile data;

[0029] According to the precision boundary in the grid to be fused, respectively extracting the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data;

[0030] Determine each fused elevation point in the to-be-fused grid according to the elevation points in the first-precision tile data in the to-be-fused grid and the elevation points in the converted second-precision tile data;

[0031] According to each fused elevation point of the grid to be fused, fused tile data of the grid to be fused is generated.

[0032] As an optional implementation, generating fused tile data of the grid to be fused according to each fused elevation point of the grid to be fused includes:

[0033] Constructing an irregular triangulated network corresponding to the grid to be fused according to each fused elevation point of the grid to be fused;

[0034] According to the irregular triangulated network, fused tile data of the grid to be fused is obtained.

[0035] As an optional implementation, displaying the target terrain according to the fused tile data of each of the to-be-fused grids includes:

[0036] Determine the boundary elevation difference of each adjacent grid in the plurality of grids according to the fused tile data of each grid to be fused and the tile data of each non-fused grid in the plurality of grids;

[0037] At least one group of adjacent grids to be corrected is determined according to the boundary elevation differences of the adjacent grids, and the elevations of the boundary points of each group of adjacent grids to be corrected are corrected.

[0038] In a second aspect, an embodiment of the present application provides a terrain data fusion device, the device comprising:

[0039] An acquisition module, used for acquiring tile data of a target terrain to be displayed, wherein the tile data includes: at least one first precision tile data and at least one second precision tile data;

[0040] A division module, used for dividing the target terrain into grids according to the tile data of the target terrain, and obtaining a plurality of grids corresponding to the target terrain and a resolution level and a longitude and latitude identifier of each grid;

[0041] The acquisition module is further used to acquire boundary information of a target area with a first accuracy in the target terrain;

[0042] A determination module, configured to determine at least one grid to be fused among the plurality of grids and a precision boundary in each of the grids to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area, wherein the grid to be fused includes first precision tile data and second precision tile data;

[0043] A fusion module, used for fusing the first precision tile data and the second precision tile data in each of the grids to be fused according to the precision boundaries in each of the grids to be fused, so as to obtain fused tile data of each of the grids to be fused;

[0044] The display module is used to display the target terrain according to the fused tile data of each of the grids to be fused.

[0045] As an optional implementation manner, the determining module is specifically used for:

[0046] Determine the longitude and latitude of the boundary points of the grid according to the resolution level of the grid and the longitude and latitude identifiers;

[0047] According to the boundary information of the target area, obtaining the longitude and latitude of the boundary points of the target area;

[0048] Determining whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area;

[0049] If so, the precision boundary in the to-be-fused grid is determined according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0050] As an optional implementation manner, the determining module is specifically used for:

[0051] Determine a first rectangle according to the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point;

[0052] Determine a second rectangle according to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point;

[0053] Based on a rectangle intersection algorithm, determining a spatial position relationship between the first rectangle and the second rectangle, wherein the spatial position relationship includes: being separated, contained, or partially overlapping;

[0054] It is determined whether the grid is a grid to be fused according to the spatial position relationship between the first rectangle and the second rectangle.

[0055] As an optional implementation manner, the determining module is specifically used for:

[0056] If the spatial position relationship between the first rectangle and the second rectangle is partially overlapped, the grid is determined to be a grid to be fused.

[0057] As an optional implementation, the fusion module is specifically used for:

[0058] Performing resolution level conversion on the second precision tile data in the to-be-fused grid to obtain converted second precision tile data, wherein the resolution level of the converted second precision tile data is the same as the resolution level of the first precision tile data;

[0059] According to the precision boundary in the grid to be fused, respectively extracting the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data;

[0060] Determine each fused elevation point in the to-be-fused grid according to the elevation points in the first-precision tile data in the to-be-fused grid and the elevation points in the converted second-precision tile data;

[0061] According to each fused elevation point of the grid to be fused, fused tile data of the grid to be fused is generated.

[0062] As an optional implementation, the fusion module is specifically used for:

[0063] Constructing an irregular triangulated network corresponding to the grid to be fused according to each fused elevation point of the grid to be fused;

[0064] According to the irregular triangulated network, fused tile data of the grid to be fused is obtained.

[0065] As an optional implementation, the display module is specifically used for:

[0066] Determine the boundary elevation difference of each adjacent grid in the plurality of grids according to the fused tile data of each grid to be fused and the tile data of each non-fused grid in the plurality of grids;

[0067] At least one group of adjacent grids to be corrected is determined according to the boundary elevation differences of the adjacent grids, and the elevations of the boundary points of each group of adjacent grids to be corrected are corrected.

[0068] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the terrain data fusion method described in the first aspect above.

[0069] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the terrain data fusion method described in the first aspect are executed.

[0070] The beneficial effects of this application are:

[0071] The present application provides a terrain data fusion method, device, equipment and medium. According to at least one first precision tile data and at least one second precision tile data of the target terrain to be displayed, the target terrain is gridded to obtain multiple grids corresponding to the target terrain and the resolution level and longitude and latitude identification of each grid. According to the resolution level and longitude and latitude identification of each grid, and the boundary information of the first precision terrain data of the target area in the target terrain obtained, it is determined whether each grid is a grid to be fused one by one. If so, the precision boundary in each grid to be fused is determined to distinguish the first precision tile data and the second precision tile data in the grid to be fused, and the first precision tile data and the second precision tile data in the grid to be fused are fused to obtain the fused tile data of each grid to be fused, and the terrain fusion of each grid to be fused is completed. By loading the fused tile data of each grid to be fused and the first precision tile data or the second precision tile data in each non-fused grid, the target terrain is displayed, so that the first precision tile data in the target area of ​​the target terrain is fused in the second precision tile data, the terrain fusion of the target terrain is realized, the steep slope problem caused by the loading of a single terrain is avoided, and the display effect of the target terrain is improved. Furthermore, by fusing the sliced ​​tile data in grid units, the flexibility and efficiency of target terrain data fusion are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0073] Figure 1 A flow chart of a terrain data fusion method provided in an embodiment of the present application;

[0074] Figure 2 A schematic diagram of an interface of multiple grids corresponding to a target terrain after grid division and a target area of ​​a first precision provided in an embodiment of the present application;

[0075] Figure 3 A schematic diagram of an interface for displaying first-precision terrain data provided in an embodiment of the present application;

[0076] Figure 4 A schematic diagram of an interface for displaying fused terrain data provided in an embodiment of the present application;

[0077] Figure 5 A schematic diagram of a flow chart of determining grids to be fused and precision boundaries in each grid to be fused in a terrain data fusion method provided in an embodiment of the present application;

[0078] Figure 6 A schematic diagram of a flow chart of determining whether a grid is a grid to be fused in a terrain data fusion method provided in an embodiment of the present application;

[0079] Figure 7 A schematic diagram of a process of obtaining fused tile data of each grid to be fused in the terrain data fusion method provided in an embodiment of the present application;

[0080] Figure 8 A schematic diagram of a process of generating fused tile data of a grid to be fused according to a terrain data fusion method provided in an embodiment of the present application;

[0081] Fig. 9 A schematic diagram of a flow chart of displaying a target terrain in a terrain data fusion method provided in an embodiment of the present application;

[0082] Fig.10 A module structure diagram of a terrain data fusion device provided in an embodiment of the present application;

[0083] Fig.11 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0084] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0085] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0086] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0087] At present, when fusing terrain data, tools are needed to overlay and correct low-precision terrain data and high-precision terrain data, merge them into a TIF, and then slice them. The processing flow is complicated, time-consuming, and inflexible. If the rendered terrain needs to be updated, the data needs to be re-fused and sliced, resulting in poor terrain display effects.

[0088] Based on the above problems, the embodiment of the present application proposes a terrain data fusion method, which divides the target terrain into grids according to at least one first precision tile data and at least one second precision tile data of the target terrain to be displayed, and obtains multiple grids corresponding to the target terrain and the resolution level and longitude and latitude identification of each grid. According to the resolution level and longitude and latitude identification of each grid, and the boundary information of the target area with the first precision in the obtained target terrain, it is determined whether each grid is a grid to be fused one by one, and if so, the precision boundary in each grid to be fused is determined to distinguish the first precision tile data and the second precision tile data in the grid to be fused, and the first precision tile data and the second precision tile data in the grid to be fused are fused to obtain the fused tile data of each grid to be fused, and the terrain fusion of each grid to be fused is completed. By loading the fused tile data of each grid to be fused and the first precision tile data or the second precision tile data in each non-fused grid, the target terrain is displayed, so that the first precision tile data in the target area of ​​the target terrain is fused in the second precision tile data, and the terrain fusion of the target terrain is realized, the steep slope problem caused by the loading of a single terrain is avoided, and the display effect of the target terrain is improved. Furthermore, by fusing the sliced ​​tile data in grid units, the flexibility and efficiency of target terrain data fusion are greatly improved.

[0089] Figure 1 This is a flow chart of the terrain data fusion method provided in the embodiment of the present application. The execution subject of the method can be any computer device with computing processing capabilities. Figure 1 As shown, the method includes:

[0090] S101. Obtain tile data of a target terrain to be displayed, where the tile data includes: at least one first-precision tile data and at least one second-precision tile data.

[0091] Optionally, first-precision terrain data of the target area collected by the drone device is obtained, and the first-precision terrain data of the target area is sliced ​​to obtain at least one first-precision tile data of the target area. The first-precision terrain data is TIF. For example, the target area may be a mine pit.

[0092] According to the target terrain to be displayed, at least one second precision tile data of the target terrain to be displayed is obtained from the online global tile on the Internet, and according to at least one first precision tile data and at least one second precision tile data, the tile data of the target terrain to be displayed is obtained. Wherein, the target area is located in the target terrain to be displayed, the precision of the first precision tile data is higher than the precision of the second precision tile data, and the first precision tile data and the second precision tile data are independent of each other.

[0093] S102 , dividing the target terrain into grids according to the tile data of the target terrain, and obtaining a plurality of grids corresponding to the target terrain and a resolution level and a longitude and latitude identifier of each grid.

[0094] Optionally, according to at least one first precision tile data and at least one second precision tile data in the tile data of the target terrain, the target terrain is gridded in the form of a pyramid quadtree to obtain a plurality of grids corresponding to the target terrain and a resolution level and longitude and latitude identifiers of each grid. The maximum value of the resolution level of the second precision tile data is 15 levels, and the longitude and latitude identifier of the grid is the longitude number and latitude number of the grid in the global map when the grid is at the current resolution level after grid division, which is used to indicate the longitude and latitude of the grid.

[0095] Figure 2 The interface diagram of multiple grids corresponding to the target terrain after grid division and the target area of ​​the first precision provided in the embodiment of the present application is as follows Figure 2 As shown, 18 grids are obtained after the target terrain is gridded in the form of a pyramid quadtree. Among them, L is used to indicate the resolution level of each grid, X is the longitude serial number of each grid in the global map, which is used to indicate the longitude of each grid, and Y is the longitude serial number of each grid in the global map, which is used to indicate the latitude of each grid. For example, L of grid ① is 15, X is 49969, and Y is 9410, which means that when the current resolution level of grid ① is level 15, the longitude serial number and latitude serial number in the global map are 49969 and 9410 respectively. According to the current resolution level and longitude and latitude identifiers of grid ①, the longitude and latitude of the tile data corresponding to grid ① can be determined.

[0096] S103: Acquire boundary information of a target area with a first precision in the target terrain.

[0097] Optionally, according to the first-precision terrain data of the target area collected by the UAV device, the boundary information of the target area in the target terrain is obtained by processing the first-precision terrain data of the target area. Figure 2, the gray area represents the target area with the first precision in the target terrain, and the gray area includes the first precision tile data. The non-gray areas except the target area in the target terrain are all areas with the second precision in the target terrain, and the non-gray areas include the second precision tile data. Figure 2 The precision of the first precision tile data in the medium-gray area is higher than the precision of the second precision tile data in the non-gray area.

[0098] S104. Determine at least one grid to be fused among the multiple grids and the precision boundaries in each grid to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area. The grid to be fused includes first precision tile data and second precision tile data.

[0099] Optionally, each grid is judged one by one in units of grids, and each grid is judged whether it is a grid to be fused according to the resolution level and longitude and latitude identifier of each grid and the boundary information of the target area, and at least one grid to be fused among the multiple grids is determined. If the grid is a grid to be fused, the precision boundary in each grid to be fused is determined, and the precision boundary is used to distinguish the first precision tile data and the second precision tile data in the grid to be fused. If the grid is a non-fused grid, the first precision tile data or the second precision tile data in each non-fused grid is directly loaded in the rendering engine WebGL.

[0100] S105 , fusing the first precision tile data and the second precision tile data in each grid to be fused according to the precision boundary in each grid to be fused, to obtain fused tile data of each grid to be fused.

[0101] Optionally, the first precision tile data within the precision boundary and the second precision tile data outside the precision boundary in each grid to be fused are fused to obtain fused tile data of each grid to be fused, and the terrain fusion of each grid to be fused is completed one by one.

[0102] S106: Display the target terrain according to the fused tile data of each grid to be fused.

[0103] Optionally, the fused tile data of each grid to be fused is loaded in the rendering engine WebGL, and the target terrain is displayed according to the fused tile data of each grid to be fused and the first precision tile data or the second precision tile data in each non-fused grid.

[0104] Figure 3 A schematic diagram of an interface for displaying first-precision terrain data provided in an embodiment of the present application, such as Figure 3As shown, when displaying the mine terrain in the prior art, only the first precision terrain data is loaded in the rendering engine WebGL, which will cause the area with terrain data and the area without terrain data to fluctuate too much and form steep slopes, resulting in poor display effect. Figure 4 A schematic diagram of an interface for displaying fused terrain data provided in an embodiment of the present application, such as Figure 4 As shown, when the embodiment of the present application displays the mine terrain, the fused tile data of each grid to be fused and the first precision tile data or the second precision tile data in each non-fused grid are loaded in the rendering engine WebGL, so that the first precision tile data of the mine terrain is fused into the second precision tile data, thereby realizing the terrain fusion of the mine terrain, solving the steep slope problem caused by the loading of a single terrain, and improving the display effect of the mine terrain.

[0105] In this embodiment, according to at least one first precision tile data and at least one second precision tile data of the target terrain to be displayed, the target terrain is grid-divided to obtain a plurality of grids corresponding to the target terrain and the resolution level and longitude and latitude identification of each grid. According to the resolution level and longitude and latitude identification of each grid, and the boundary information of the target area with the first precision in the obtained target terrain, it is determined whether each grid is a grid to be fused one by one. If so, the precision boundary in each grid to be fused is determined to distinguish the first precision tile data and the second precision tile data in the grid to be fused, and the first precision tile data and the second precision tile data in the grid to be fused are fused to obtain the fused tile data of each grid to be fused, and the terrain fusion of each grid to be fused is completed. By loading the fused tile data of each grid to be fused and the first precision tile data or the second precision tile data in each non-fused grid, the target terrain is displayed, so that the first precision tile data in the target area of ​​the target terrain is fused in the second precision tile data, and the terrain fusion of the target terrain is realized, the steep slope problem caused by the loading of a single terrain is avoided, and the display effect of the target terrain is improved. Furthermore, by fusing the sliced ​​tile data in grid units, the flexibility and efficiency of target terrain data fusion are greatly improved.

[0106] The following describes in detail the process of determining at least one grid to be fused among multiple grids and the precision boundaries in each grid to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area.

[0107] Figure 5 A schematic diagram of a flow chart of determining the grids to be fused and the precision boundaries in each grid to be fused in the terrain data fusion method provided in an embodiment of the present application, such as Figure 5As shown, the step of determining at least one grid to be fused among the multiple grids and the precision boundaries of the grids to be fused in the above step S104 according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area includes:

[0108] S501: Determine the longitude and latitude of the boundary points of the grid according to the resolution level and longitude and latitude identifiers of the grid.

[0109] Optionally, according to the resolution level L, longitude identifier X and latitude identifier Y of the grid, the tile data corresponding to the grid is requested to determine the longitude and latitude of the tile data corresponding to the grid. Based on the longitude and latitude of the tile data corresponding to the grid, the longitude and latitude of the boundary point of the grid are determined.

[0110] For example, continue to refer to Figure 2 , taking grid ⑧ as an example, L of grid ⑧ is 15, X is 49970, and Y is 9411. When the current resolution level of grid ⑧ is 15, the longitude and latitude numbers in the global map are 49970 and 9411 respectively. According to the current resolution level of grid ⑧ 15, longitude and latitude identifiers 49970 and 9411, the tile data corresponding to grid ⑧ is requested and the longitude and latitude of the tile data corresponding to grid ⑧ are determined, and then the longitude and latitude of the boundary point of grid ⑧ are determined.

[0111] S502: Acquire the longitude and latitude of the boundary points of the target area according to the boundary information of the target area.

[0112] Optionally, the longitude and latitude of the boundary points of the target area are determined according to the boundary information of the target area with the first accuracy in the target terrain. Figure 2 The gray area is a target area with a first accuracy in the target terrain. The longitude and latitude of the boundary points of the gray area are determined according to the obtained boundary information of the gray area.

[0113] S503: Determine whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0114] Optionally, the spatial position corresponding to the longitude and latitude of the grid is determined according to the longitude and latitude of the boundary point of the grid. The spatial position corresponding to the longitude and latitude of the target area is determined according to the longitude and latitude of the boundary point of the target area. The grid is determined to be a grid to be fused or a non-fused grid through the spatial position relationship between the spatial position corresponding to the longitude and latitude of the grid and the spatial position corresponding to the longitude and latitude of the target area.

[0115] S504: If yes, determine the precision boundary in the grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0116] Optionally, if the grid is determined to be a grid to be fused, the precision boundary in the grid to be fused is determined based on the longitude and latitude of the boundary points of multiple boundary points on the grid to be fused and the longitude and latitude of the boundary points of multiple boundary points in the target area to distinguish the first precision tile data and the second precision tile data in the grid to be fused.

[0117] In this embodiment, according to the resolution level and longitude and latitude identifier of the grid, the tile data corresponding to the grid is requested to determine the longitude and latitude of the tile data corresponding to the grid. The longitude and latitude of the boundary points of the grid are determined based on the longitude and latitude of the tile data corresponding to the grid. According to the boundary information of the target area with the first precision in the target terrain, the longitude and latitude of the boundary points of the target area are determined. According to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area, the grid is determined to be a grid to be fused or a non-fused grid. If the grid is determined to be a grid to be fused, the precision boundary in the grid to be fused is determined according to the longitude and latitude of the boundary points on the grid to be fused and the longitude and latitude of the boundary points of the target area, so as to distinguish the first precision tile data and the second precision tile data in the grid to be fused. It is convenient to fuse the first precision tile data and the second precision tile data in the grid to be fused according to the precision boundary in the grid to be fused.

[0118] As an optional implementation, the longitude and latitude of the boundary points of the grid include: the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point, and the longitude and latitude of the boundary points of the target area include: the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point.

[0119] Optionally, the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point of the grid are determined according to the longitude and latitude of the tile data corresponding to the grid, wherein the first boundary point of the grid may be the lower left boundary point of the grid, and the second boundary point of the grid may be the upper right boundary point of the grid. The longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point of the target area are determined according to the boundary information of the target area with the first precision in the target terrain, wherein the third boundary point of the target area may be the lower left boundary point of the target area, and the fourth boundary point of the target area may be the upper right boundary point of the target area.

[0120] The following describes in detail the process of determining whether a grid is a grid to be fused based on the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0121] Figure 6 A schematic diagram of a flow chart of determining whether a grid is a grid to be fused in the terrain data fusion method provided in an embodiment of the present application, such as Figure 6 As shown, the step of determining whether a grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area in the above step S503 includes:

[0122] S601: Determine a first rectangle according to the longitude and latitude of a first boundary point and the longitude and latitude of a second boundary point.

[0123] Optionally, according to the longitude and latitude of a first boundary point of the lower left boundary point of the grid and the longitude and latitude of a second boundary point of the upper right boundary point, a first rectangle corresponding to the grid is determined by the two boundary points, and the first rectangle represents the spatial position corresponding to the longitude and latitude of the grid.

[0124] For example, continue to refer to Figure 2 , according to the longitude and latitude of the first boundary point of the lower left boundary point of grid⑧ and the longitude and latitude of the second boundary point of the upper right boundary point, determine the first rectangle corresponding to grid⑧, indicating the spatial position corresponding to the longitude and latitude of grid⑧.

[0125] S602: Determine a second rectangle according to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point.

[0126] Optionally, according to the latitude and longitude of the third boundary point of the lower left boundary point of the target area and the latitude and longitude of the fourth boundary point of the upper right boundary point, a second rectangle corresponding to the target area is determined by the two boundary points, and the second rectangle represents the spatial position corresponding to the longitude and latitude of the target area.

[0127] For example, continue to refer to Figure 2 , according to the latitude and longitude of the third boundary point of the lower left boundary point of the gray area and the latitude and longitude of the fourth boundary point of the upper right boundary point, the second rectangle corresponding to the gray area is determined, indicating the spatial position corresponding to the longitude and latitude of the gray area.

[0128] S603: Determine the spatial position relationship between the first rectangle and the second rectangle based on a rectangle intersection algorithm, where the spatial position relationship includes: being separated, being included, or being partially overlapped.

[0129] Optionally, a rectangle intersection algorithm is used to determine whether the spatial position relationship between the first rectangle and the second rectangle is separated, contained, or partially overlapped. Specifically, a rectangle intersection algorithm is used to determine whether the first rectangle and the second rectangle intersect. If no return value exists, the spatial position relationship between the first rectangle and the second rectangle is determined to be separated; if a return value exists, the first rectangle and the second rectangle are determined to intersect, and then based on the two intersection points in the return value, the spatial position relationship between the first rectangle and the second rectangle is further determined to be contained or partially overlapped.

[0130] If the overlapping figure constructed according to the two intersection points in the return value is the first rectangle or the second rectangle, the spatial position relationship between the first rectangle and the second rectangle is determined to be contained; otherwise, the spatial position relationship between the first rectangle and the second rectangle is determined to be partially overlapped.

[0131] For example, continue to refer to Figure 2Based on the rectangle intersection algorithm, it can be determined that the spatial position relationship between the first rectangle corresponding to grid⑧ and the second rectangle corresponding to the gray area is partially overlapped, the spatial position relationship between the first rectangle corresponding to grid① and the second rectangle corresponding to the gray area is separated, and the spatial position relationship between the first rectangle corresponding to grid⑨ and the second rectangle corresponding to the gray area is contained.

[0132] S604: Determine whether the grid is a grid to be merged according to the spatial position relationship between the first rectangle and the second rectangle.

[0133] Optionally, based on the spatial position relationship between the first rectangle corresponding to the grid and the second rectangle corresponding to the target area, the grid is determined to be a grid to be fused or a non-fused grid, so as to determine whether the tile data in the grid is to be fused. The specific method for determining the grid to be fused will be explained in detail in the following embodiments.

[0134] In this embodiment, according to the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point of the grid, the first rectangle corresponding to the grid is determined by the two boundary points, and the spatial position corresponding to the longitude and latitude of the grid is represented by the first rectangle. According to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point of the target area, the second rectangle corresponding to the target area is determined by the two boundary points, and the spatial position corresponding to the longitude and latitude of the target area is represented by the second rectangle. Through the rectangle intersection algorithm, it is determined that the spatial position relationship between the first rectangle and the second rectangle is separated, contained or partially overlapped, and then the grid is determined to be a grid to be fused or a non-fused grid. Each grid to be fused is determined by the spatial position relationship between the second rectangle and each first rectangle.

[0135] As an optional implementation, the step of determining whether the grid is a grid to be merged according to the spatial position relationship between the first rectangle and the second rectangle in the above step S604 includes:

[0136] If the spatial position relationship between the first rectangle and the second rectangle is partially overlapped, it is determined that the grid is a grid to be fused.

[0137] Optionally, if the spatial position relationship between the first rectangle corresponding to the grid and the second rectangle corresponding to the target area is partially overlapped, the grid is determined to be a grid to be fused, and the first precision tile data and the second precision tile data in the grid to be fused need to be fused according to the precision boundary in the grid to be fused. If the spatial position relationship between the first rectangle corresponding to the grid and the second rectangle corresponding to the target area is separated or contained, the grid is determined to be a non-fused grid, wherein if the spatial position is separated, the second precision tile data in the non-fused grid is directly loaded in the rendering engine WebGL; if the spatial position is contained, the first precision tile data in the non-fused grid is directly loaded in the rendering engine WebGL.

[0138] For example, continue to refer to Figure 2 , grid ①, grid ⑥, grid ⑦, grid Grid and Grid The spatial position relationship between the corresponding first rectangles and the second rectangle corresponding to the target area is that the grid ①, grid ⑥, grid ⑦, grid Grid and Grid For non-fused grids, load the first precision tile data of these 6 non-fused grids respectively. Grid ②, Grid ③, Grid ④, Grid ⑤, Grid ⑧, Grid Grid Grid Grid and Grid The spatial position relationship between the corresponding first rectangles and the second rectangle corresponding to the target area is partially overlapped, grid ②, grid ③, grid ④, grid ⑤, grid ⑧, grid Grid Grid Grid and Grid The grids to be fused need to be fused according to the precision boundaries of the 10 grids to be fused. The spatial position relationship between each first rectangle corresponding to grid ⑨ and grid ⑩ and the second rectangle corresponding to the target area is inclusive. Grid ⑨ and grid ⑩ are non-fused grids, and the second precision tile data in these two non-fused grids are loaded respectively.

[0139] In this embodiment, if the spatial position relationship between the first rectangle corresponding to the grid and the second rectangle corresponding to the target area partially overlaps, the grid is used as the grid to be fused, so as to fuse the first precision tile data and the second precision tile data in the grid to be fused according to the precision boundary in the grid to be fused, thereby realizing the terrain fusion of the grid to be fused.

[0140] The following describes in detail the process of fusing the first precision tile data and the second precision tile data in each grid to be fused according to the precision boundary in each grid to be fused to obtain the fused tile data of each grid to be fused.

[0141] Figure 7 A schematic diagram of a process for obtaining fused tile data of each grid to be fused in the terrain data fusion method provided in an embodiment of the present application, such as Figure 7 As shown, in the above step S105, the first precision tile data and the second precision tile data in each grid to be fused are fused according to the precision boundary in each grid to be fused to obtain the fused tile data of each grid to be fused, including:

[0142] S701 . Perform resolution level conversion on the second precision tile data in the grid to be fused to obtain converted second precision tile data, where the resolution level of the converted second precision tile data is the same as the resolution level of the first precision tile data.

[0143] Optionally, since the maximum value of the resolution level of the second precision tile data is 15, if the resolution level of the current first precision tile data is greater than 15, the nearest neighbor method is required to resample the second precision tile data in the to-be-fused grid to convert the resolution level of the second precision tile data so that the resolution level of the converted second precision tile data is the same as the resolution level of the current first precision tile data. Specifically, the nearest neighbor method is used to take the pixel value closest to the pixel position in the second precision tile data as the new value of the pixel to obtain the converted second precision tile data.

[0144] Exemplarily, if the resolution level of the current first-precision tile data in the grid to be fused is level 16, the nearest neighbor method is required for resampling, and the resolution level of the second-precision tile data with a resolution level of 15 in the grid to be fused is converted, so that the resolution level of the second-precision tile data after conversion is level 16, which is the same as the resolution level of the current first-precision tile data.

[0145] S702: extracting elevation points in the first precision tile data in the grid to be fused and elevation points in the converted second precision tile data respectively according to the precision boundary in the grid to be fused.

[0146] Optionally, according to the precision boundary in the grid to be fused, the elevation points in the first precision tile data within the precision boundary and the elevation points in the converted second precision tile data outside the precision boundary in the grid to be fused are respectively extracted. Figure 2 , grid ② is the grid to be fused, the precision boundary in grid ② is the boundary of the overlapping area between the non-gray area and the gray area, and the elevation points in the first precision tile data of the gray area within the precision boundary in grid ② and the elevation points in the converted second precision tile data of the non-gray area outside the precision boundary are extracted respectively.

[0147] S703: Determine each fused elevation point in the grid to be fused according to the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data.

[0148] Optionally, the elevation points in the first precision tile data in the grid to be fused and the elevation points in the second precision tile data after conversion are combined into fused elevation points in the grid to be fused, and the proximity interpolation algorithm is used to process each fused elevation point, replacing the abnormal values ​​and vertex elevations of 0 in each fused elevation point to ensure the data smoothness of each fused elevation point and prevent terrain cliffs caused by excessive terrain fluctuations after reconstructing the triangulated network.

[0149] S704: Generate fused tile data of the grid to be fused according to each fused elevation point of the grid to be fused.

[0150] Optionally, according to each fused elevation point of the processed grid to be fused, a series of connected triangles are used to fit the surface, construct digital elevation, generate fused tile data of the grid to be fused, and realize terrain data fusion of a single grid to be fused.

[0151] In this embodiment, the nearest neighbor method is used to resample the second precision tile data in the grid to be fused, and the resolution level of the second precision tile data is converted so that the resolution level of the converted second precision tile data is the same as the resolution level of the current first precision tile data, so as to prepare for the fusion data of the grid to be fused. According to the precision boundary in the grid to be fused, the elevation points in the first precision tile data in the grid to be fused that are located within the precision boundary and the elevation points in the converted second precision tile data that are located outside the precision boundary are extracted respectively, and the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data are combined into each fused elevation point in the grid to be fused, and the adjacent interpolation algorithm is used to process each fused elevation point to avoid terrain cliffs after terrain fusion. According to each fused elevation point of the processed grid to be fused, the surface structure digital elevation is fitted to generate the fused tile data of the grid to be fused, and the terrain data fusion of a single grid to be fused is realized. The terrain data fusion of each grid to be fused is realized in units of grids, which improves the flexibility and accuracy of terrain data fusion.

[0152] The following describes in detail the process of generating fused tile data of the grid to be fused according to each fused elevation point of the grid to be fused.

[0153] Figure 8 A schematic diagram of a process of generating fused tile data of a grid to be fused according to a terrain data fusion method provided in an embodiment of the present application, such as Figure 8 As shown, the step of generating fused tile data of the grid to be fused according to each fused elevation point of the grid to be fused in the above step S704 includes:

[0154] S801. Construct an irregular triangulated network corresponding to the grid to be fused according to each fused elevation point of the grid to be fused.

[0155] Optionally, according to the longitude and latitude and elevation of each fused elevation point of the processed mesh to be fused, the Delaunay subdivision method is used to construct a triangle network, and the triangulated network is reconstructed to generate a triangulated network corresponding to the mesh to be fused, so as to ensure the triangles with the most connections in the triangulated network and reduce the generation of holes. The triangulated network corresponding to the mesh to be fused is optimized using the minimum angle maximization principle to obtain an irregular triangulated network (Triangulated Irregular Network, referred to as TIN) that conforms to the Delaunay rule, that is, the TIN corresponding to the mesh to be fused is obtained.

[0156] S802, obtaining fused tile data of the grid to be fused according to the reconstructed triangulated irregular triangulated network.

[0157] Optionally, the TIN corresponding to the grid to be fused obtained after reconstructing and optimizing the triangulated network is used as the fused tile data of the grid to be fused, that is, the triangulated network is reconstructed and optimized through the processed fused elevation points of the grid to be fused, and the fused tile data of the grid to be fused is obtained, thereby realizing the fusion of terrain data of the grid to be fused.

[0158] In this embodiment, according to each fused elevation point of the processed mesh to be fused, the triangulated network is reconstructed to generate the triangulated network corresponding to the mesh to be fused, and the triangulated network corresponding to the mesh to be fused is optimized using the minimum angle maximization principle to obtain the TIN corresponding to the mesh to be fused. The TIN corresponding to the mesh to be fused is used as the fused tile data of the mesh to be fused to realize the fusion of the terrain data of the mesh to be fused, thereby improving the flexibility and fusion effect of the fusion of the terrain data of the mesh to be fused.

[0159] The following describes in detail the process of displaying the target terrain based on the fused tile data of each grid to be fused.

[0160] Fig. 9 A flow chart of displaying target terrain according to the terrain data fusion method provided in the embodiment of the present application is shown as follows: Fig. 9 As shown, the step of displaying the target terrain according to the fused tile data of each grid to be fused in the above step S106 includes:

[0161] S901 , determining the boundary elevation difference between adjacent grids in the plurality of grids according to the fused tile data of each grid to be fused and the tile data of each non-fused grid in the plurality of grids.

[0162] Optionally, since the meshes to be fused are reconstructed into triangulated networks, the elevation points of the boundaries of the adjacent meshes in the multiple meshes may be inconsistent, resulting in cracks. According to the fused tile data of the meshes to be fused and the tile data of the non-fused meshes, the elevations of the elevation points of the boundaries of the adjacent meshes in the multiple meshes of the target terrain are determined, and then the maximum elevation difference of the boundaries of the adjacent meshes is determined, and the maximum elevation difference of the boundaries of the adjacent meshes is used as the boundary elevation difference of the adjacent meshes.

[0163] S902: Determine at least one group of adjacent grids to be corrected according to the boundary elevation difference of each adjacent grid, and correct the elevation of the boundary points of each group of adjacent grids to be corrected.

[0164] Optionally, it is determined whether to correct the elevation of the boundary points of the adjacent grids according to the boundary elevation difference of the adjacent grids. Specifically, if the boundary elevation difference of the adjacent grids is, it means that the elevation points of the boundaries of the adjacent grids are consistent, and there is no need to correct the elevation of the boundary points of the adjacent grids. If the boundary elevation difference of the adjacent grids is not zero, it means that the elevation points of the boundaries of the adjacent grids are inconsistent, and it is necessary to use the boundary elevation difference of the adjacent grids as the skirt height, and correct the elevation of the boundary points of the adjacent grids to fill the skirt cracks.

[0165] In this embodiment, the elevation of each elevation point on the boundary of each adjacent grid in the multiple grids is determined based on the fused tile data of each grid to be fused and the tile data of each non-fused grid, and the maximum elevation difference of each boundary on the adjacent grid is used as the boundary elevation difference of each adjacent grid. According to the boundary elevation difference of the adjacent grids, it is determined whether to correct the elevation of the boundary points of the adjacent grids. If the boundary elevation difference of the adjacent grids is not zero, it is necessary to use the boundary elevation difference of the adjacent grids as the skirt height, and correct the elevation of the boundary points of the adjacent grids to fill the skirt cracks. By correcting the elevation of the boundary points of each adjacent grid to be corrected, the cracks are filled, and the terrain data fusion effect is improved.

[0166] Based on the same inventive concept, a terrain data fusion device corresponding to the terrain data fusion method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned terrain data fusion method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0167] Fig.10 The module structure diagram of the terrain data fusion device provided in the embodiment of the present application is as follows: Fig.10 As shown, the device comprises:

[0168] The acquisition module 1001 is used to acquire tile data of a target terrain to be displayed, where the tile data includes: at least one first precision tile data and at least one second precision tile data.

[0169] The division module 1002 is used to divide the target terrain into grids according to the tile data of the target terrain, and obtain a plurality of grids corresponding to the target terrain and the resolution level and longitude and latitude identification of each grid.

[0170] The acquisition module 1001 is further used to acquire boundary information of a target area with a first precision in the target terrain.

[0171] Determination module 1003 is used to determine at least one grid to be fused among multiple grids and the precision boundary in each grid to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area, wherein the grid to be fused includes first precision tile data and second precision tile data.

[0172] The fusion module 1004 is used to fuse the first precision tile data and the second precision tile data in each grid to be fused according to the precision boundary in each grid to be fused, so as to obtain the fused tile data of each grid to be fused.

[0173] The display module 1005 is used to display the target terrain according to the fused tile data of each grid to be fused.

[0174] As an optional implementation manner, the determination module 1003 is specifically configured to:

[0175] Determine the longitude and latitude of the grid boundary points based on the grid resolution level and longitude and latitude identifiers.

[0176] According to the boundary information of the target area, the longitude and latitude of the boundary points of the target area are obtained.

[0177] According to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area, it is determined whether the grid is a grid to be fused.

[0178] If yes, the precision boundary in the grid to be fused is determined according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

[0179] As an optional implementation manner, the determination module 1003 is specifically configured to:

[0180] A first rectangle is determined according to the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point.

[0181] A second rectangle is determined according to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point.

[0182] Based on a rectangle intersection algorithm, a spatial position relationship between the first rectangle and the second rectangle is determined, where the spatial position relationship includes: being separated, contained, or partially overlapping.

[0183] Whether a grid is a grid to be merged is determined according to the spatial position relationship between the first rectangle and the second rectangle.

[0184] As an optional implementation manner, the determination module 1003 is specifically configured to:

[0185] If the spatial position relationship between the first rectangle and the second rectangle is partially overlapped, it is determined that the grid is a grid to be fused.

[0186] As an optional implementation, the fusion module 1004 is specifically used for:

[0187] The second precision tile data in the to-be-fused grid is subjected to resolution level conversion to obtain converted second precision tile data, wherein the resolution level of the converted second precision tile data is the same as the resolution level of the first precision tile data.

[0188] According to the precision boundary in the grid to be fused, the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data are respectively extracted.

[0189] According to the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data, each fused elevation point in the grid to be fused is determined.

[0190] According to each fused elevation point of the grid to be fused, fused tile data of the grid to be fused is generated.

[0191] As an optional implementation, the fusion module 1004 is specifically used for:

[0192] According to each fused elevation point of the grid to be fused, an irregular triangulated network corresponding to the grid to be fused is constructed.

[0193] According to the irregular triangulated network, the fused tile data of the grid to be fused is obtained.

[0194] As an optional implementation manner, the display module 1005 is specifically used for:

[0195] The boundary elevation difference of each adjacent grid in the multiple grids is determined according to the fused tile data of each grid to be fused and the tile data of each non-fused grid in the multiple grids.

[0196] At least one group of adjacent grids to be corrected is determined according to the boundary elevation difference of each adjacent grid, and the elevation of the boundary points of each group of adjacent grids to be corrected is corrected.

[0197] The present application also provides a computer device, such as Fig.111 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, including: a processor 111, a memory 112 and a bus 113. The memory 112 stores machine-readable instructions executable by the processor 111 (for example, Fig.10 In the device, the execution instructions corresponding to the acquisition module 1001, the division module 1002, the determination module 1003, the fusion module 1004 and the display module 1005 are obtained, etc. When the computer device is running, the processor 111 communicates with the memory 112 through the bus 113. When the machine-readable instructions are executed by the processor 111, the steps of the terrain data fusion method in the above embodiment are executed.

[0198] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the terrain data fusion method in the above embodiment are executed.

[0199] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0200] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0201] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A terrain data fusion method, characterized in that: include: Acquire tile data of a target terrain to be displayed, the tile data comprising: at least one first precision tile data and at least one second precision tile data; According to the tile data of the target terrain, the target terrain is gridded to obtain a plurality of grids corresponding to the target terrain and a resolution level and a longitude and latitude identifier of each grid; Acquire boundary information of a target area with a first precision in the target terrain; Determine at least one grid to be fused among the multiple grids and the precision boundary in each of the grids to be fused according to the resolution level and the longitude and latitude identifiers of each grid and the boundary information of the target area, wherein the grid to be fused includes first precision tile data and second precision tile data; According to the precision boundaries in the grids to be fused, the first precision tile data and the second precision tile data in the grids to be fused are fused to obtain fused tile data of the grids to be fused; The target terrain is displayed according to the fused tile data of each of the grids to be fused.

2. The method according to claim 1, characterized in that The determining, according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area, at least one grid to be fused among the multiple grids and the precision boundaries in each of the grids to be fused includes: Determine the longitude and latitude of the boundary points of the grid according to the resolution level of the grid and the longitude and latitude identifiers; According to the boundary information of the target area, obtaining the longitude and latitude of the boundary points of the target area; Determining whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area; If so, the precision boundary in the to-be-fused grid is determined according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area.

3. The method according to claim 2, characterized in that The longitude and latitude of the boundary points of the grid include: the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point, and the longitude and latitude of the boundary points of the target area include: the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point; The step of determining whether the grid is a grid to be fused according to the longitude and latitude of the boundary points of the grid and the longitude and latitude of the boundary points of the target area includes: Determine a first rectangle according to the longitude and latitude of the first boundary point and the longitude and latitude of the second boundary point; Determine a second rectangle according to the longitude and latitude of the third boundary point and the longitude and latitude of the fourth boundary point; Based on a rectangle intersection algorithm, determining a spatial position relationship between the first rectangle and the second rectangle, wherein the spatial position relationship includes: being separated, contained, or partially overlapping; It is determined whether the grid is a grid to be fused according to the spatial position relationship between the first rectangle and the second rectangle.

4. The method according to claim 3, characterized in that The determining, according to the spatial position relationship between the first rectangle and the second rectangle, whether the grid is a grid to be fused includes: If the spatial position relationship between the first rectangle and the second rectangle is partially overlapped, the grid is determined to be a grid to be fused.

5. The method according to claim 1, characterized in that The fusing process is performed on the first precision tile data and the second precision tile data in each of the grids to be fused according to the precision boundaries in each of the grids to be fused, so as to obtain the fused tile data of each of the grids to be fused, including: Performing resolution level conversion on the second precision tile data in the to-be-fused grid to obtain converted second precision tile data, wherein the resolution level of the converted second precision tile data is the same as the resolution level of the first precision tile data; According to the precision boundary in the grid to be fused, respectively extracting the elevation points in the first precision tile data in the grid to be fused and the elevation points in the converted second precision tile data; Determine each fused elevation point in the to-be-fused grid according to the elevation points in the first-precision tile data in the to-be-fused grid and the elevation points in the converted second-precision tile data; According to each fused elevation point of the grid to be fused, fused tile data of the grid to be fused is generated.

6. The method according to claim 5, characterized in that The step of generating fused tile data of the grid to be fused according to each fused elevation point of the grid to be fused comprises: Constructing an irregular triangulated network corresponding to the grid to be fused according to each fused elevation point of the grid to be fused; According to the irregular triangulated network, fused tile data of the grid to be fused is obtained.

7. The method according to any one of claims 1 to 6, characterized in that: The step of displaying the target terrain according to the fused tile data of each of the to-be-fused grids comprises: Determine the boundary elevation difference of each adjacent grid in the plurality of grids according to the fused tile data of each grid to be fused and the tile data of each non-fused grid in the plurality of grids; At least one group of adjacent grids to be corrected is determined according to the boundary elevation differences of the adjacent grids, and the elevations of the boundary points of each group of adjacent grids to be corrected are corrected.

8. A terrain data fusion device, characterized in that: The device comprises: An acquisition module, used for acquiring tile data of a target terrain to be displayed, wherein the tile data includes: at least one first precision tile data and at least one second precision tile data; A division module, used for dividing the target terrain into grids according to the tile data of the target terrain, and obtaining a plurality of grids corresponding to the target terrain and a resolution level and a longitude and latitude identifier of each grid; The acquisition module is further used to acquire boundary information of a target area with a first accuracy in the target terrain; A determination module, configured to determine at least one grid to be fused among the plurality of grids and a precision boundary in each of the grids to be fused according to the resolution level and longitude and latitude identifiers of each grid and the boundary information of the target area, wherein the grid to be fused includes first precision tile data and second precision tile data; A fusion module, used for fusing the first precision tile data and the second precision tile data in each of the grids to be fused according to the precision boundaries in each of the grids to be fused, so as to obtain fused tile data of each of the grids to be fused; The display module is used to display the target terrain according to the fused tile data of each of the grids to be fused.

9. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the terrain data fusion method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the terrain data fusion method according to any one of claims 1 to 7 are executed.