Terrain data display method and device, electronic equipment and storage medium
By processing terrain data requests, re-blocking and resampling are performed if the target hierarchy resolution is less than the preset threshold. If it is greater than, global stitching map is used, which solves the problem of low terrain data display efficiency in the prior art and realizes the More efficient data loading and storage.
Patent Information
- Application Number
- CN202411267131.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-09-10
AI Technical Summary
When presenting terrain data, the front-end needs to read all data of multiple original terrain data files from the back-end, resulting in increased memory and reduced operating efficiency.
By receiving terrain data requests, determine the regional range and target hierarchy resolution of the target geographical area. If the target hierarchy resolution is less than the preset threshold, the original terrain data will be reblocked and resampled. If the target hierarchy resolution is greater than the preset Threshold, the target terrain data is obtained based on the pre-stored global stitching map, and only the data required for the target geographical area is sent.
Improve data loading efficiency, reduce memory usage on the display side, and quickly obtain target terrain data when the target hierarchy resolution is greater than the preset threshold, reducing storage space usage.
Smart Images

Figure CN119441364A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terrain data processing, and in particular to a terrain data display method, device, electronic device and storage medium. Background Art
[0002] In the 1960s, elevation information could only be obtained through manual measurement of terrain for mapping. With the development of computer technology, the production and research of terrain elevation data has become faster and more intuitive. At present, the information data of terrain and landforms can be aggregated into three-dimensional space for unified management and display through visualization technology, which is conducive to accelerating the construction of geospatial information data infrastructure, promoting the process of information integration in the field of geography and geology, and opening up a wider space for the cross-application of terrain data in more disciplines.
[0003] At present, the visualization method of terrain data is usually that the front end (i.e., the display end) requests the back end (i.e., the server end) for the terrain data of the geographical area to be displayed by the front end, and the back end searches the terrain data requested by the front end from the pre-stored terrain database and sends it to the front end for display. However, the back end terrain database pre-stores multiple original terrain data, each of which has a spatial resolution of 30m resolution, and each file of original terrain data has about 3000 to 4000 rows and columns, and a longitude and latitude span of about 1 degree. When the geographical area requested by the front end covers multiple original terrain data, the terrain data requested by the front end cannot be covered in one original terrain data file, and multiple adjacent original terrain data files need to be read from the back end. However, the geographical area requested by the front end only requires part of the data in multiple original terrain data files, not all of them, which results in an increase in the memory required by the front end to read terrain data, reducing operating efficiency. Summary of the invention
[0004] In order to solve the problems in the related art, the embodiments of the present disclosure provide a terrain data display method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for displaying terrain data, including: receiving a terrain data request, wherein the terrain data request carries an area range parameter of a target geographical area to be displayed; Determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; When the target level resolution is less than a preset threshold, the original terrain data corresponding to the target geographical area is re-blocked and resampled to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; When the target level resolution is greater than a preset threshold, acquiring target terrain data of the target geographical area based on a pre-stored global mosaic map corresponding to the target level resolution; The target terrain data of the target geographical area is sent to a display end, so that the display end displays a terrain image of the target geographical area based on the target terrain data.
[0006] In a possible implementation manner, after re-blocking and resampling the original terrain data corresponding to the target geographical area, obtaining the target terrain data corresponding to the target geographical area includes: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain terrain data within the area where the target geographical area is located; Resample the terrain data within the target geographical area according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
[0007] In a possible implementation, the acquiring terrain data of the target geographical area based on a pre-stored global mosaic corresponding to the target level resolution includes: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
[0008] In a possible implementation manner, the original terrain data and the global mosaic map are data in a two-dimensional image format, and sending the target terrain data of the target geographical area to the display terminal includes: Converting target terrain data of the target geographical area in a two-dimensional picture format into target terrain data in a three-dimensional format; The target terrain data of the target geographical area in a three-dimensional format is sent to the display terminal.
[0009] In a possible implementation manner, the terrain data request also carries a level resolution parameter of the target geographical area to be displayed.
[0010] In a second aspect, an embodiment of the present disclosure provides a terrain data display device, which is applied to a server, and includes: A receiving module configured to receive a terrain data request, wherein the terrain data request carries an area range parameter of a target geographical area to be displayed; A determination module, configured to determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; The first processing module is configured to, when the target level resolution is less than a preset threshold, re-block and re-sample the original terrain data corresponding to the target geographical area to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; The second processing module is configured to obtain target terrain data of the target geographical area based on a pre-stored global mosaic map corresponding to the target level resolution when the target level resolution is greater than a preset threshold; The sending module is configured to send the target terrain data of the target geographical area to the display end, so that the display end displays the terrain image of the target geographical area based on the target terrain data.
[0011] In a possible implementation, the first processing module is configured to: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain terrain data within the area where the target geographical area is located; Resample the terrain data within the target geographical area according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
[0012] In a possible implementation manner, the second processing module is configured as follows: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspects.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, a method as described in any one of the first aspects is implemented.
[0015] According to the technical solution provided by the embodiment of the present disclosure, after receiving a terrain data request, the area range and target level resolution of the target geographical area to be displayed are determined according to the terrain data request; then, it is determined whether the target level resolution is less than or equal to a preset threshold. When the target level resolution is less than the preset threshold, the original terrain data corresponding to the target geographical area is re-blocked and re-sampled to obtain target terrain data corresponding to the target geographical area and send it to the display end for display. The target terrain data is terrain data with a target level resolution in the area where the target geographical area is located. In this way, the display end only reads terrain data in the area where the target geographical area is located from the server end, rather than all terrain data in multiple blocks of original terrain data involved in the target geographical area, thereby improving data loading efficiency and reducing memory usage of the display end. When the target level resolution is greater than the preset threshold, based on the pre-stored global mosaic map corresponding to the target level resolution, the target terrain data of the target geographical area is quickly obtained and sent to the display end for display, thereby improving data loading efficiency. Moreover, when the target level resolution is greater than the preset threshold, the data volume of the global mosaic map corresponding to the target level resolution is small, and the storage space occupied is small.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0018] Figure 1 A flowchart of a terrain data display method according to an embodiment of the present disclosure is shown.
[0019] Figure 2 A schematic diagram of a quadtree pyramid construction process provided by this embodiment is shown.
[0020] Figure 3 A schematic flow chart showing a method for displaying terrain data according to an embodiment of the present disclosure is shown.
[0021] Figure 4 A structural block diagram of a terrain display device provided by an embodiment of the present disclosure is shown.
[0022] FIG5 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure.
[0023] FIG6 is a schematic diagram showing the structure of a computer system suitable for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0025] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0026] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] Figure 1 FIG. 1 is a flow chart showing a method for displaying terrain data according to an embodiment of the present disclosure. Figure 1 As shown, the terrain data display method includes the following steps S101-S105:
[0028] In step S101, a terrain data request is received, wherein the terrain data request carries area range parameters of a target geographical area to be displayed; In step S102, the area range and target level resolution of the target geographical area to be displayed are determined according to the terrain data request; In step S103, when the target level resolution is less than or equal to a preset threshold, the original terrain data corresponding to the target geographical area is re-blocked and resampled to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; In step S104, when the target level resolution is greater than a preset threshold, target terrain data of the target geographical area is acquired based on a pre-stored global mosaic map corresponding to the target level resolution; In step S105, the target terrain data of the target geographical area is sent to a display end, so that the display end displays a terrain image of the target geographical area based on the target terrain data.
[0029] In a possible implementation, the terrain data display method is applicable to a computer, computing device, server, server cluster, or other device capable of executing terrain data display.
[0030] In a possible implementation, when a user uses a display terminal (i.e., a front end) to view certain terrain data, the user may input a display instruction, which indicates the target geographical area of the terrain data that the user needs the display terminal to display. After receiving the display instruction input by the user, the display terminal may send a terrain data request to the server based on the target geographical area indicated by the display instruction. The terrain data request is used to request the server to return the terrain data of the target geographical area required by the corresponding user for display. The terrain data request carries an area range parameter of the target geographical area, which may be the latitude and longitude parameters of the target geographical area. The terrain data request may be a URL (Uniform Resource Locator) request.
[0031] In one possible implementation, after receiving the terrain data request, the server can determine the area range of the target geographic area to be displayed based on the area range parameters of the target geographic area to be displayed carried in the terrain data request, and then determine the target level resolution based on the area range of the target geographic area. For example, the longitude and latitude span of the target geographic area can be calculated according to the longitude and latitude range of the target geographic area. Different level resolutions correspond to different longitude and latitude span ranges (which are predetermined), and the level resolution corresponding to the longitude and latitude span of the target geographic area is the target level resolution.
[0032] In a possible implementation, the following Table 1 shows a description of pyramid levels and level resolutions: Tiers Level resolution (°) 512 single piece longitude and latitude span (°) 0 0.3515625 180 1 0.17578125 90 2 0.087890625 45 3 0.0439453125 22.5 4 0.02197265625 11.25 5 0.010986328125 5.625 6 0.0054931640625 2.8125 7 0.00274658203125 1.40625 8 0.001373291015625 0.703125 9 0.0006866455078125 0.3515625 Table 1 As shown in Table 1, a global topographic map can be used as level 0, and its single-piece longitude and latitude span (that is, the longitude and latitude span of a single image) is 180°, and the pixel width and height of a picture are 512 pixels × 512 pixels, then the corresponding level resolution is 180° / 512=0.3515625°. Level 1 is to divide a global topographic map of level 0 into four images, and its single-piece longitude and latitude span is 90°, and the pixel width and height of a picture are 512 pixels × 512 pixels, then the corresponding level resolution is 90° / 512=0.17578125°. Subsequently, an image of the previous level is divided into four images according to the level, and the pixel width and height of each image are 512 pixels × 512 pixels. In this way, as the level increases, the number of images increases layer by layer like a pyramid, and the single-piece longitude and latitude span and the level resolution gradually decrease as shown in Table 1.
[0033] In a possible implementation, assuming that the pyramid level for displaying terrain data is 10 layers as shown in Table 1, then after multiple experiments, the preset threshold can be pre-set to the level resolution of level 5 in Table 1, that is, the preset threshold is 0.010986328125° resolution. In addition to using the longitude and latitude span to represent the preset threshold, the preset threshold can also be represented by a distance identifier. For example, the level resolution of level 5 can also be 1000m resolution. Of course, the preset threshold can also be any value between the level resolution of level 4 and the level resolution of level 6, or it can also be the level resolution of level 4 or the level resolution of level 6, which is not limited here. It should be noted here that the pyramid level of the terrain data may not be 10 layers. In this case, the preset threshold can be set according to the pyramid level of the terrain data.
[0034] In a possible implementation, the original terrain data may be terrain data acquired and stored by the server from other data sources. The original terrain data is the highest resolution and clearest terrain data. The server may provide the display terminal with terrain data of the required resolution based on the original terrain data. For example, the resolution of a block of original terrain data may be 30m resolution, the number of pixel rows and columns of each block of original terrain data may be about 3000 to 4000, and the longitude and latitude span may be about 1 degree.
[0035] In a possible implementation, if the target level resolution is less than a preset threshold, it means that more detailed terrain data needs to be displayed. In this case, in order to reduce the amount of transmitted data and improve display efficiency, the multiple blocks of original terrain data involved in the target geographical area can be re-blocked, and only the original terrain data in the area where the target geographical area is located can be obtained. At this time, part of the multiple blocks of original terrain data involved in the target geographical area can be obtained, rather than obtaining all the data in the multiple blocks of original terrain data involved in the target geographical area; since the original terrain data is the highest resolution terrain data, if the target level resolution is not the highest resolution, it is necessary to resample the original terrain data corresponding to the target geographical area and reduce the resolution to obtain the target terrain data corresponding to the target geographical area. The target terrain data is terrain data with a target level resolution. In this way, the target terrain data with a target level resolution of the target geographical area is obtained. The server can send the target terrain data to the display end, and the display end displays the target terrain data.
[0036] In a possible implementation, for low-resolution data, the data volume is small, and the server can pre-globally stitch the original terrain data to obtain a global stitching map, and then resample the global stitching map according to the layer resolution greater than the preset threshold and with a lower resolution based on a preset threshold, to obtain a global stitching map corresponding to the corresponding layer resolution. Since the layer resolution greater than the preset threshold has a lower resolution and a smaller data volume, the global stitching maps corresponding to these layer resolutions also occupy a smaller storage space, so the server pre-stores the global stitching maps corresponding to these layer resolutions and does not occupy storage space. After the server receives the terrain data request, if the target layer resolution is greater than the preset threshold, the server can directly call the pre-stored global stitching map corresponding to the target layer resolution, and crop it to obtain the target terrain data of the target geographical area. After that, the server can send the target terrain data to the display end, and the display end will display the target terrain data.
[0037] After receiving a terrain data request, this embodiment can determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; then determine whether the target level resolution is less than or equal to a preset threshold. When the target level resolution is less than the preset threshold, the original terrain data corresponding to the target geographical area is re-blocked and re-sampled to obtain target terrain data corresponding to the target geographical area and send it to the display end for display. The target terrain data is terrain data with a target level resolution in the area where the target geographical area is located. In this way, the display end only reads terrain data in the area where the target geographical area is located from the server end, rather than all terrain data in multiple blocks of original terrain data involved in the target geographical area, thereby improving data loading efficiency and reducing memory usage of the display end; when the target level resolution is greater than the preset threshold, based on the pre-stored global mosaic map corresponding to the target level resolution, the target terrain data of the target geographical area is quickly obtained and sent to the display end for display, thereby improving data loading efficiency. Moreover, when the target level resolution is greater than the preset threshold, the data volume of the global mosaic map corresponding to the target level resolution is small, and the storage space occupied is small.
[0038] In a possible implementation manner, after re-blocking and resampling the original terrain data corresponding to the target geographical area, obtaining the target terrain data corresponding to the target geographical area includes: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain original terrain data within the area where the target geographical area is located; The original terrain data in the area where the target geographical area is located is resampled according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
[0039] In this implementation, when the target level resolution is less than a preset threshold, multiple pieces of original terrain data related to the target geographic area can be searched from all the original terrain data stored in the server. Among these multiple pieces of original terrain data, there may be original terrain data in which only part of the data is terrain data within the area where the target geographic area is located. At this time, the multiple pieces of original terrain data related to the target geographic area can be spliced first. Among the spliced original terrain data, only part of the data may be terrain data within the target geographic area. At this time, the terrain data within the target geographic area can be cropped out from the spliced original terrain data. In this way, the original terrain data within the area where the target geographic area is located can be obtained.
[0040] In this embodiment, after obtaining the original terrain data within the area where the target geographical area is located, since the original terrain data is the highest resolution terrain data, if the target level resolution is not the highest resolution, it is necessary to resample the original terrain data corresponding to the target geographical area to reduce the resolution and obtain the target terrain data corresponding to the target geographical area. The level resolution of the target terrain data is the target level resolution after resampling.
[0041] For example, the server can use spatial processing technology to splice and clip the original terrain data in tif format. For example, you can choose the gdal library (a converter library for raster and vector geospatial data formats) based on python (a computer programming language) to splice multiple pieces of original terrain data and clip the spliced terrain data.
[0042] In a possible implementation, the acquiring terrain data of the target geographical area based on a pre-stored global mosaic corresponding to the target level resolution includes: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
[0043] In this embodiment, the server pre-stores global mosaic maps corresponding to multiple levels of resolution greater than a preset threshold. After the server receives a terrain data request, if the target level resolution is greater than the preset threshold, the server can directly call the pre-stored global mosaic map corresponding to the target level resolution, and crop the target terrain data of the target geographic area from the global mosaic map corresponding to the target level resolution.
[0044] In a possible implementation manner, the original terrain data and the global mosaic map are data in a two-dimensional image format, and sending the target terrain data of the target geographical area to the display terminal includes: Converting target terrain data of the target geographical area in a two-dimensional picture format into target terrain data in a three-dimensional format; The target terrain data of the target geographical area in a three-dimensional format is sent to the display terminal.
[0045] In this implementation, usually, in order to reduce storage space, the original terrain data and the global mosaic map stored in the server are data in two-dimensional image format. In order to enable the display end to display three-dimensional terrain data, the target terrain data in the two-dimensional image format of the target geographical area can be converted into target terrain data in three-dimensional format, and the target terrain data in the three-dimensional format of the target geographical area can be sent to the display end, so that the display end can display the three-dimensional target terrain data.
[0046] For example, the two-dimensional image format can be a tif format, and the three-dimensional format can be a terrain format. The data in the terrain format is the data stored in a quadtree pyramid format. The quadtree pyramid adopts a "layered and blocked" strategy and can represent multi-resolution data. It is an ideal structure for organizing massive terrain data. By combining it with a tree structure, it has the function of fast data indexing. Its indexing only involves addition, subtraction, doubling and halving operations, which can be achieved through efficient bit operations.
[0047] Figure 2 FIG. 4 shows a schematic diagram of a quadtree pyramid construction process provided by this embodiment. Figure 2 As shown in the middle left picture, Figure 1 Each black dot represents an object. The coordinate position of each object is known. A node in the quadtree is used to store an object. The structure is as follows: Figure 2 The quadtree structure shown in the middle right figure. The whole process of converting tif format to terrain format can be realized by code. After the server converts the target terrain data in tif format to the target terrain data in terrain format, the display end can obtain the target terrain data in terrain format of the target geographical area through the Cesium platform (a code library for displaying three-dimensional global maps) for display.
[0048] In a possible implementation manner, the terrain data request also carries a level resolution parameter of the target geographical area to be displayed.
[0049] In this implementation, the display end can determine the target level resolution based on the area range of the target geographical area indicated by the display instruction, and carry the level resolution parameter representing the target level resolution in the terrain data request, so that when the server receives the terrain data request, it can directly determine the target level resolution corresponding to the level resolution parameter.
[0050] Figure 3 A complete flow chart of the terrain display method provided by an embodiment of the present disclosure is shown, such as Figure 3 As shown, the method comprises the following steps: In step S301, the display end sends a terrain data request to the server end; The terrain data request carries an area range parameter of a target geographical area to be displayed and a level resolution parameter of the target geographical area to be displayed; In step S302, the server determines the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; In step S303, when the target layer resolution is less than or equal to a preset threshold, the server re-blocks and resamples the original terrain data corresponding to the target geographical area to obtain target terrain data corresponding to the target geographical area; The target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; the original terrain data is data in a two-dimensional picture format; In step S304, when the target level resolution is greater than a preset threshold, the server acquires target terrain data of the target geographical area based on a pre-stored global mosaic corresponding to the target level resolution; The global mosaic image is data in a two-dimensional image format; In step S305, the server converts the target terrain data of the target geographical area in the two-dimensional picture format into target terrain data in the three-dimensional format; In step S306, the server sends the target terrain data of the target geographical area in a three-dimensional format to the display terminal.
[0051] In step S307, the display terminal displays a three-dimensional terrain map within the target geographical area based on the target terrain data in the three-dimensional format of the target geographical area.
[0052] The present disclosure also provides a terrain display device, Figure 4 The structure block diagram of a terrain display device provided by an embodiment of the present disclosure is shown. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the terrain display device includes:
[0053] The receiving module 401 is configured to receive a terrain data request, wherein the terrain data request carries an area range parameter of a target geographical area to be displayed; A determination module 402 is configured to determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; The first processing module 403 is configured to, when the target level resolution is less than a preset threshold, re-block and re-sample the original terrain data corresponding to the target geographical area to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; The second processing module 404 is configured to obtain target terrain data of the target geographical area based on a pre-stored global mosaic map corresponding to the target level resolution when the target level resolution is greater than a preset threshold; The sending module 405 is configured to send the target terrain data of the target geographical area to the display end, so that the display end displays the terrain image of the target geographical area based on the target terrain data.
[0054] In a possible implementation, the first processing module is configured to: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain terrain data within the area where the target geographical area is located; Resample the terrain data within the target geographical area according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
[0055] In a possible implementation manner, the second processing module is configured as follows: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
[0056] The technical terms and technical features mentioned in the implementation manner of the present device are the same as or similar to those mentioned in the implementation manner of the above method. For the explanation and description of the technical terms and technical features involved in the present device, reference may be made to the explanation and description of the implementation manner of the above method, and they will not be repeated here.
[0057] The present disclosure also discloses an electronic device. FIG5 shows a structural block diagram of the electronic device according to an embodiment of the present disclosure.
[0058] As shown in FIG. 5 , the electronic device 500 includes a memory 501 and a processor 502 , wherein the memory 501 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 502 to implement the method according to an embodiment of the present disclosure.
[0059] FIG6 is a schematic diagram showing the structure of a computer system suitable for implementing the method of the embodiment of the present disclosure.
[0060] As shown in FIG6 , the computer system 600 includes a processing unit 601, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The processing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0061] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed. Among them, the processing unit 601 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0062] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.
[0063] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0064] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0065] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.
[0066] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for displaying terrain data, characterized in that: Applied to the server, including: receiving a terrain data request, wherein the terrain data request carries an area range parameter of a target geographical area to be displayed; Determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; When the target level resolution is less than or equal to a preset threshold, the original terrain data corresponding to the target geographical area is re-blocked and resampled to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; When the target level resolution is greater than a preset threshold, acquiring target terrain data of the target geographical area based on a pre-stored global mosaic map corresponding to the target level resolution; The target terrain data of the target geographical area is sent to a display end, so that the display end displays a terrain image of the target geographical area based on the target terrain data.
2. The method according to claim 1, characterized in that After re-blocking and resampling the original terrain data corresponding to the target geographical area, target terrain data corresponding to the target geographical area is obtained, including: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain original terrain data within the area where the target geographical area is located; The original terrain data in the area where the target geographical area is located is resampled according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
3. The method according to claim 1, characterized in that The acquiring of terrain data of the target geographical area based on the pre-stored global mosaic map corresponding to the target level resolution includes: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
4. The method according to claim 1, characterized in that: The original terrain data and the global mosaic map are data in a two-dimensional image format, and sending the target terrain data of the target geographical area to the display terminal includes: Converting target terrain data of the target geographical area in a two-dimensional picture format into target terrain data in a three-dimensional format; The target terrain data of the target geographical area in a three-dimensional format is sent to the display terminal.
5. The method according to claim 1, characterized in that: The terrain data request also carries a level resolution parameter of the target geographical area to be displayed.
6. A terrain display device, characterized in that: Applied to the server, including: A receiving module configured to receive a terrain data request, wherein the terrain data request carries an area range parameter of a target geographical area to be displayed; A determination module, configured to determine the area range and target level resolution of the target geographical area to be displayed according to the terrain data request; The first processing module is configured to, when the target level resolution is less than a preset threshold, re-block and re-sample the original terrain data corresponding to the target geographical area to obtain target terrain data corresponding to the target geographical area, wherein the target terrain data is terrain data with a target level resolution within the area where the target geographical area is located; The second processing module is configured to obtain target terrain data of the target geographical area based on a pre-stored global mosaic map corresponding to the target level resolution when the target level resolution is greater than a preset threshold; The sending module is configured to send the target terrain data of the target geographical area to the display end, so that the display end displays the terrain image of the target geographical area based on the target terrain data.
7. The device according to claim 6, characterized in that The first processing module is configured to: Acquire a plurality of pieces of original terrain data involved in the target geographical area; splicing and cutting a plurality of pieces of original terrain data involved in the target geographical area to obtain terrain data within the area where the target geographical area is located; Resample the terrain data within the target geographical area according to the target level resolution to obtain target terrain data corresponding to the target geographical area.
8. The device according to claim 6, characterized in that The second processing module is configured to: Based on pre-stored global mosaics corresponding to multiple levels of resolution, obtaining a global mosaic corresponding to the target level of resolution; The target terrain data of the target geographical area is obtained from the global mosaic map corresponding to the target level resolution.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Organization and management method for space-time map tile data
CN106844537A
Unmanned aerial vehicle remote sensing image real-time splicing method and system
CN110310248A
Map data processing method and device, equipment, storage medium and program product
CN113010793A
Three-dimensional geographic scene model construction method and device based on stereoscopic remote sensing image
CN113506370A
Meteorological data processing method and device, electronic equipment and storage medium
CN115984119A