Method, device and system for processing map data

By segmenting and snapshot generation of map data to be displayed, the display failure problem caused by excessive amount of spatial data is solved, and efficient data transmission and display are achieved.

CN114064828BActive Publication Date: 2025-06-10NAVINFO
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010779331.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-05
Publication Date
2025-06-10
Estimated Expiration
2040-08-05

AI Technical Summary

Technical Problem

In the prior art, when the amount of spatial data is too large, the visualization platform cannot load, resulting in the display of spatial data failure.

Method used

By obtaining the target display data size of the first server, dividing the map data to be displayed, multiple target tiles are obtained, and snapshots are generated for each tiles, and transmitting them to the first server for display.

Benefits of technology

The problem of failed display of spatial data is solved, the data transmission speed and display efficiency are improved, and the first server can display a large amount of map data normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064828B_ABST
    Figure CN114064828B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and system for processing map data. The method includes: obtaining map data to be displayed, where the map data to be displayed is determined according to a data display instruction sent by a first server; obtaining a target display data size corresponding to the first server; splitting the map data to be displayed according to the target display data size to obtain a plurality of target tiles, and determining snapshots corresponding to the respective target tiles; sending the snapshots corresponding to the respective target tiles to the first server, so that the first server can display the snapshots corresponding to the target tiles, and can normally display the map data to be displayed with a large data volume, thereby avoiding the problem of failed display of spatial data in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of map technology, and in particular, to a method, device, and system for processing map data. Background Art

[0002] Spatial big data refers to big data related to spatial information and location. With the development of technology and the progress of society, the amount of spatial big data has increased explosively. In the process of actually using spatial big data, it is often necessary to display it. For example, when studying the terrain in a certain area, it is necessary to display the spatial data corresponding to that area.

[0003] In the prior art, when displaying spatial data, generally a visualization platform is used to display the spatial data. That is, the visualization platform obtains the spatial data to be displayed from the server cluster storing the spatial data, and then loads the spatial data to display it.

[0004] However, the inventors found that there are at least the following problems in the prior art: when the amount of spatial data that the visualization platform needs to display is large, that is, when it has exceeded the amount of data it can display, the visualization platform may not be able to load the spatial data, resulting in the failure of displaying the spatial data. Summary of the Invention

[0005] Embodiments of the present invention provide a method, device, and system for processing map data to solve the technical problem in the prior art that the display of spatial data fails due to the large amount of spatial data.

[0006] In a first aspect, embodiments of the present invention provide a method for processing map data, which is applied to a first device. The method includes:

[0007] Obtain the map data to be displayed, where the map data to be displayed is determined according to a data display instruction sent by a first server;

[0008] Obtain the target display data size corresponding to the first server;

[0009] Slice the map data to be displayed according to the target display data size to obtain a plurality of target tiles, and determine the snapshots corresponding to each target tile;

[0010] Send the snapshots corresponding to each target tile to the first server, so that the first server displays the snapshots corresponding to the target tiles.

[0011] In a possible design, the slicing the map data to be displayed according to the target display data size to obtain a plurality of target tiles includes:

[0012] Obtain the size of the map data to be displayed, where the map data to be displayed is gridded map data;

[0013] When it is determined that the size of the map data to be displayed is greater than the size of the target display data, slice the map data to be displayed according to the size of the target display data to obtain the multiple target tiles, where the size of the target tile is less than or equal to the size of the target display data, and the size of the target display data is the number of grids displayed by the first server.

[0014] In a possible design, the slicing the map data to be displayed according to the size of the target display data to obtain multiple target tiles includes:

[0015] Obtain the size of the map data to be displayed;

[0016] When it is determined that the size of the map data to be displayed is greater than the preset display data size, perform a preliminary slice on the map data to be displayed to obtain multiple first tiles;

[0017] Obtain the map data corresponding to each first tile, and slice the map data corresponding to each first tile according to the size of the target display data to obtain the multiple target tiles, where the target tile has additional map information relative to the first tile, the size of the target tile is less than or equal to the size of the target display data, and the size of the target display data is the number of grids displayed by the first server.

[0018] In a possible design, the sending the snapshots corresponding to the respective target tiles to the first server includes:

[0019] Determine the arrangement order of the target tiles according to the positions of the target tiles in the map data to be displayed;

[0020] Determine the numbers of the snapshots corresponding to the respective target tiles according to the arrangement order of the target tiles;

[0021] Send the combination of the snapshots corresponding to the target tiles and the numbers of the snapshots corresponding to the target tiles to the first server so that the first server combines the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles and displays the combined snapshots corresponding to the target tiles.

[0022] In a possible design, the slicing the map data corresponding to each first tile according to the size of the target display data includes:

[0023] For the map data corresponding to each first tile, cut the map data corresponding to the first tile according to the preset display data size to obtain first map data;

[0024] When it is determined that the size of the first map data is greater than the size of the target display data, slice the first map data to obtain corresponding target tiles.

[0025] In a possible design, the obtaining the map data corresponding to each first tile includes:

[0026] Send the first tile to a second server, so that the second server determines the map data corresponding to each first tile according to a preset spatial index and the first tile;

[0027] Obtain the map data corresponding to each first tile sent by the second server.

[0028] In a possible design, the data display instruction includes a data display range and at least one display layer, then the method further includes:

[0029] When the number of the display layers is greater than 1, superimpose all the display layers;

[0030] Based on the superimposed display layers, search for the map data corresponding to the data display range to obtain the map data to be displayed.

[0031] In a second aspect, an embodiment of the present invention provides a method for processing map data, which is applied to a first server, and the method includes:

[0032] Send a data display instruction to a second server, so that the second server determines the map data to be displayed corresponding to the data display instruction and sends the map data to be displayed to a first device;

[0033] Obtain a snapshot corresponding to a target tile sent by the first device, where the snapshot corresponding to the target tile is obtained by the first device slicing the map data to be displayed according to the size of the target display data corresponding to the first server to obtain each target tile, and after determining the snapshot corresponding to each target tile, sending it;

[0034] Display the snapshot corresponding to the target tile.

[0035] In a possible design, the obtaining the snapshot corresponding to the target tile sent by the first device includes:

[0036] Obtain the snapshot corresponding to the target tile sent by the first device and the numbers of the snapshots corresponding to each target tile;

[0037] The displaying the snapshot corresponding to the target tile includes:

[0038] Combine the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles, and display the snapshots corresponding to the combined target tiles.

[0039] Thirdly, an embodiment of the present invention provides a processing device for map data, which is applied to a first device. The device includes:

[0040] A first transceiver module, configured to obtain map data to be displayed, where the map data to be displayed is determined according to a data display instruction sent by a first server;

[0041] A first processing module, configured to obtain a target display data size corresponding to the first server;

[0042] The first processing module is further configured to segment the map data to be displayed according to the target display data size to obtain a plurality of target tiles, and determine snapshots corresponding to the target tiles;

[0043] The first transceiver module is further configured to send the snapshots corresponding to the target tiles to the first server, so that the first server displays the snapshots corresponding to the target tiles.

[0044] In a possible design, the first processing module is further configured to:

[0045] Obtain the size of the map data to be displayed, where the map data to be displayed is gridified map data;

[0046] When it is determined that the size of the map data to be displayed is greater than the target display data size, segment the map data to be displayed according to the target display data size to obtain the plurality of target tiles, where the size of the target tiles is less than or equal to the target display data size, and the target display data size is the number of grids displayed by the first server.

[0047] In a possible design, the first processing module is further configured to:

[0048] Obtain the size of the map data to be displayed;

[0049] When it is determined that the size of the map data to be displayed is greater than a preset display data size, perform a preliminary segmentation on the map data to be displayed to obtain a plurality of first tiles;

[0050] Obtain the map data corresponding to each first tile, and slice the map data corresponding to each first tile according to the target display data size to obtain the multiple target tiles, where the target tiles have additional map information relative to the first tiles, and the size of the target tiles is less than or equal to the target display data size, and the target display data size is the number of grids displayed by the first server.

[0051] In a possible design, the first transceiver module is further configured to:

[0052] Determine the arrangement order of the target tiles according to the positions of the target tiles in the map data to be displayed;

[0053] Determine the numbers of the snapshots corresponding to the target tiles according to the arrangement order of the target tiles;

[0054] Combine and send the snapshots corresponding to the target tiles and the numbers of the snapshots corresponding to the target tiles to the first server so that the first server combines the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles and displays the combined snapshots corresponding to the target tiles.

[0055] In a possible design, the first processing module is further configured to:

[0056] For the map data corresponding to each first tile, cut the map data corresponding to the first tile according to the preset display data size to obtain first map data;

[0057] When it is determined that the size of the first map data is greater than the target display data size, slice the first map data to obtain the corresponding target tiles.

[0058] In a possible design, the first processing module is further configured to:

[0059] Send the first tiles to the second server so that the second server determines the map data corresponding to each first tile according to the preset spatial index and the first tiles;

[0060] Obtain the map data corresponding to each first tile sent by the second server.

[0061] In a possible design, if the data display instruction includes a data display range and at least one display layer, the first processing module is further configured to:

[0062] When the number of the display layers is greater than 1, superimpose all the display layers;

[0063] Based on the superimposed display layer, search for the map data corresponding to the data display range to obtain the map data to be displayed.

[0064] In a fourth aspect, an embodiment of the present invention provides a processing device for map data, which is applied to a first server. The device includes:

[0065] A second transceiver module, configured to send a data display instruction to a second server, so that the second server determines the map data to be displayed corresponding to the data display instruction, and sends the map data to be displayed to a first device;

[0066] The second transceiver module is further configured to obtain a snapshot corresponding to a target tile sent by the first device, where the snapshot corresponding to the target tile is obtained by the first device splitting the map data to be displayed according to the target display data size corresponding to the first server to obtain each target tile, and sending it after determining the snapshot corresponding to each target tile;

[0067] A second processing module, configured to display the snapshot corresponding to the target tile.

[0068] In a possible design, the second transceiver module is further configured to:

[0069] Obtain the snapshot corresponding to the target tile sent by the first device and the numbers of the snapshots corresponding to each target tile;

[0070] The second processing module is further configured to:

[0071] Combine the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to each target tile, and display the combined snapshots corresponding to the target tiles.

[0072] In a fifth aspect, an embodiment of the present invention provides a processing system for map data, including:

[0073] A first server, configured to send a data display instruction to a second server;

[0074] The second server is configured to obtain the map data to be displayed corresponding to the data display instruction, and send the map data to be displayed to a first device;

[0075] The first device is configured to obtain the target display data size corresponding to the first server, and split the map data to be displayed according to the target display data size to obtain a plurality of target tiles;

[0076] The first device is further configured to determine the snapshots corresponding to each target tile, and send the snapshots corresponding to each target tile to the first server;

[0077] The first server is further configured to display a snapshot corresponding to the target tile.

[0078] In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory.

[0079] The memory stores computer-executable instructions.

[0080] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for processing map data described in the first aspect above and various possible designs of the first aspect.

[0081] In a seventh aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory.

[0082] The memory stores computer-executable instructions.

[0083] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for processing map data described in the second aspect above and various possible designs of the second aspect.

[0084] In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for processing data described in the first aspect above and various possible designs of the first aspect is implemented.

[0085] In a ninth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for processing map data described in the second aspect above and various possible designs of the second aspect is implemented.

[0086] The method, device, and system for processing map data provided by the embodiments of the present invention. After obtaining the map data to be displayed, the method obtains the target display data size corresponding to the first server, that is, obtains the maximum data size that the first server can display. If the size of the map data to be displayed is greater than the target display data size, it indicates that the size of the map data to be displayed has exceeded the maximum data size that the first server can display, and the first server cannot directly display the map data to be displayed. Then, the map data to be displayed is sliced to obtain target tiles that the first server can display, and the target tiles are compressed to obtain snapshots corresponding to the target tiles. The snapshots corresponding to the target tiles are sent to the first server, so that the first server can normally display the snapshots corresponding to the target tiles, that is, can normally display the map data to be displayed, thereby avoiding the problem of failed display of spatial data in the prior art. At the same time, since snapshots are transmitted to the first server, the data transmission speed can be increased, thereby improving the data display efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0088] Figure 1 It is a schematic diagram of the architecture of the map data processing system provided by the embodiments of the present invention;

[0089] Figure 2 It is a flowchart of the method for processing map data provided by the embodiments of the present invention Figure 1 ;

[0090] Figure 3 It is a schematic diagram of the tile provided by the embodiments of the present invention;

[0091] Figure 4 It is a flowchart of the method for processing map data provided by the embodiments of the present invention Figure 2 ;

[0092] Figure 5 It is a schematic diagram of the tile and snapshot provided by the embodiments of the present invention;

[0093] Figure 6 It is a flowchart of the method for processing map data provided by the embodiments of the present invention Figure 3 ;

[0094] Figure 7 It is a schematic diagram of the spatial index provided by the embodiments of the present invention;

[0095] Figure 8 Flow schematic of the method for processing map data provided by an embodiment of the present invention Figure 4 ;

[0096] Figure 9 Structural schematic of the map data processing device provided by an embodiment of the present invention Figure 1 ;

[0097] Figure 10 Structural schematic of the map data processing device provided by an embodiment of the present invention Figure 2 ;

[0098] Figure 11 Hardware structure schematic diagram of the electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0099] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts fall within the scope of protection of the present invention.

[0100] In the prior art, when displaying spatial data, generally, a visualization platform obtains the spatial data to be displayed from a server cluster storing the spatial data, and then loads the spatial data to display it. However, when the amount of spatial data that the visualization platform needs to display is large, that is, when it has exceeded the amount of data that the visualization platform can display, the visualization platform may not be able to load the spatial data, resulting in the failure of spatial data display.

[0101] Therefore, in view of the above problems, the technical concept of the present invention is to add a relay server. After the relay server obtains the spatial data that the visualization platform needs to display from the server cluster, that is, after obtaining the map data to be displayed, when it is determined that the size of the map data to be displayed is greater than the maximum data size that the visualization platform can display, the map data to be displayed is grid-cut to obtain corresponding tiles, and the tiles are format-converted to generate corresponding snapshots, realizing the compression of spatial data. The snapshots are sent to the first server, and the first server can normally load the snapshots, realizing the normal and fast display of spatial data.

[0102] The technical solutions of the present invention will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0103] Figure 1 The architecture diagram of the processing system for map data provided by an embodiment of the present invention is shown as Figure 2 shown. The system includes a first server 101, a first device 102, and a second server 103.

[0104] The first server 101 is configured to send a data display instruction to the second server 103. The second server 103 is configured to obtain the map data to be displayed corresponding to the data display instruction, and send the map data to be displayed to the first device 102. The first device 102 is configured to obtain the target display data size corresponding to the first server 101, and split the map data to be displayed according to the target display data size to obtain a plurality of target tiles. The first device 102 is further configured to determine the snapshots corresponding to the target tiles, and send the snapshots corresponding to the target tiles to the first server 101. The first server 101 is further configured to display the snapshots corresponding to the target tiles.

[0105] In this embodiment, after obtaining the data display instruction input by the user, the first server 101 sends the data display instruction to the first device 102 or the second server 103, so that the first device 102 or the second server 103 determines the map data to be displayed according to the data display instruction. If the data display instruction is sent to the second server 103, after determining the map data to be displayed, the second server 103 sends it to the first device, so that the first device processes the map data to be displayed, and sends the processed data to the first server 101, and the first server 101 displays the spatial data.

[0106] Wherein, the second server is a device storing spatial data. The number of second servers can be one or more. When the number of second servers is multiple, a corresponding server cluster is formed.

[0107] Wherein, the first server is a device for displaying map data, that is, spatial data. The first device is a device having data processing capabilities and communication capabilities. For example, the first device is a relay server.

[0108] Figure 2 The flowchart of the method for processing map data provided by an embodiment of the present invention Figure 1 The execution subject of this method can be Figure 1 the first device in Figure 2 shown. The method includes:

[0109] S201. Obtain the map data to be displayed, where the map data to be displayed is determined according to the data display instruction sent by the first server.

[0110] In this embodiment, the data display instruction sent by the first server includes a data display range, and the map data corresponding to the data display range, that is, the spatial data, is determined as the map data to be displayed. That is, the map data to be displayed can be determined according to the data request sent by the first server. The first device acquires the map data to be displayed.

[0111] Among them, when determining the map data to be displayed according to the data display instruction sent by the first server, the map data to be displayed can be determined by the first device according to the data display instruction, or can be sent by the second server to the first device after determining the map data to be displayed according to the data display instruction, so that the first device obtains the map data to be displayed.

[0112] Optionally, the data display instruction includes a data display range and at least one display layer, and the display layer is the layer to be displayed. The map is composed of multiple layers. The map can include one or more layers, and each layer will display a part of the geographical or traffic information. When the number of display layers in the data display instruction is greater than 1, it indicates that multiple layers need to be displayed, so all the display layers are superimposed. Then, based on the superimposed display layers, the map data corresponding to the data display range is searched to obtain the map data to be displayed. When the number of display layers in the data display instruction is equal to 1, it indicates that only one layer needs to be displayed, so the map data corresponding to the data display range is searched from the map data corresponding to the display layer to obtain the map data.

[0113] Specifically, searching for the map data corresponding to the data display range based on the superimposed display layers is actually searching for the map data corresponding to the data display range from the superimposed display layers, and this process is similar to the process of searching for the map data corresponding to the data display range from the map data corresponding to one display layer.

[0114] S202. Obtain the size of the target display data corresponding to the first server.

[0115] In this embodiment, the first server needs to display spatial data, that is, the map data to be displayed. However, the display capability of the first server is limited, that is, the size of the data it can display is limited. Obtaining the size of the target display data corresponding to the first server means the maximum size of the data that the first server can display.

[0116] S203. Segment the map data to be displayed according to the size of the target display data to obtain multiple target tiles, and determine the snapshots corresponding to the target tiles.

[0117] In this embodiment, it is determined whether the size of the map data to be displayed is greater than the target display data size. When the size of the map data to be displayed is greater than the target display data size, it indicates that the size of the map data to be displayed has exceeded the maximum data size that the first server can display directly. The first server cannot directly display the map data to be displayed, so the map data to be displayed is sliced, that is, the map data to be displayed is segmented to obtain multiple target tiles. For example, if the target display data size is 1G and the size of the map data to be displayed is 2G, then the map data to be displayed is sliced to obtain two target tiles, so that the size of each target tile is less than or equal to 1G. For example, as Figure 3 shown, slicing the map data to be displayed is equivalent to slicing the map corresponding to the map data to be displayed to obtain multiple target tiles, Figure 3 and one of the rectangular frames in it is a tile.

[0118] In this embodiment, after obtaining the target tiles, each target tile is respectively formatted to obtain a snapshot corresponding to each target tile, realizing the compression of the target tiles, so that when sending the snapshots corresponding to the target tiles to the first server, the transmission speed can be improved, and the first server can display more data.

[0119] Optionally, the format of the snapshot includes image formats such as lossy compression methods (Joint Photographic Experts Group, JPEG).

[0120] S204. Send the snapshots corresponding to the target tiles to the first server so that the first server can display the snapshots corresponding to the target tiles.

[0121] In this embodiment, sending the snapshots corresponding to the target tiles to the first server can improve the transmission speed of the tiles, that is, improve the data transmission speed, and since the size of the snapshot corresponding to the target tile is small, the first server can display more target tiles, that is, display more map data.

[0122] In this embodiment, when it is determined that the size of the map data to be displayed is greater than the display capacity of the first server, the map data to be displayed is segmented according to the target display data size of the first server to obtain target tiles. Since the size of the target tiles is smaller than the target display data size, the first server can normally display the target tiles, avoiding the failure of the first server to display the map data to be displayed due to the large size of the map data to be displayed. At the same time, in order to ensure the transmission speed of the tiles and enable the first server to display as many target tiles as possible, the target tiles are compressed to obtain snapshots corresponding to the target tiles, and then the snapshots are sent to the first server so that the first server can display the snapshots.

[0123] Optionally, after obtaining the target tile, data visualization analysis can also be performed using the target tile, that is, obtaining the data analysis instruction sent by the first server, generating a corresponding data analysis result according to the data analysis instruction and the target tile. The data analysis result includes the target display tile, and sending the snapshot corresponding to the target display tile to the first server so that the first server can display the snapshot corresponding to the target display tile, enabling the user to intuitively view the data analysis result. For example, the data analysis instruction is a shared bicycle usage statistics instruction, and the instruction includes the area to be statistically analyzed. Then, according to this instruction, relevant cutting processing is performed on the target tile to obtain the target display tile. The data range corresponding to the target display tile is the data range corresponding to the area to be statistically analyzed, that is, from the map data corresponding to the target tile, the map data of the area to be statistically analyzed, that is, the spatial data, is determined. Then, the shared bicycle usage rate corresponding to each area to be statistically analyzed is determined from the corresponding spatial data, and a corresponding data analysis result is generated. The data analysis result includes the map data corresponding to the area to be statistically analyzed and the shared bicycle usage rate corresponding to the area to be statistically analyzed. Visual display of the data analysis result is performed, that is, the snapshot corresponding to the target display tile is sent to the first server so that the first server can display it, enabling the user to intuitively understand the usage situation of shared bicycles in each area.

[0124] It should be noted that visual display of the data analysis result can be understood as displaying the map corresponding to the area to be statistically analyzed and marking the corresponding shared bicycle usage rate on the map.

[0125] Among them, the user can input corresponding data analysis instructions according to actual needs. For example, to count whether there is a chemical plant within a preset range of a certain school, the corresponding chemical plant statistics instruction is input, so that the first device generates a corresponding data analysis result according to this request and displays it through the first server, enabling the user to intuitively understand the chemical plants existing within the preset range of the school.

[0126] In addition, the data display instruction may also include a data analysis instruction, that is, the map data to be displayed is determined according to the data analysis instruction. After obtaining the data analysis instruction, the first server sends it to the second server or the first device to determine the corresponding map data to be displayed according to the data analysis instruction. After determining that the first server cannot directly display the map data to be displayed, the first device slices it to obtain the corresponding target tiles, that is, obtains the corresponding data analysis result, and sends the snapshot corresponding to the target tiles to the first server so that the first server can display the snapshot corresponding to the target tiles. For example, if the data analysis instruction is a request for statistics on the usage of shared bicycles, the data display range and display layer are determined according to the area to be counted in the instruction. The first device obtains the map data to be displayed corresponding to the data display range and display layer, and then determines whether it is necessary to slice the map data to be displayed. When it is determined that it is necessary to slice the map data to be displayed, the map data to be displayed is sliced to obtain a plurality of target tiles, that is, obtains the corresponding data analysis result, and sends the snapshot corresponding to the target tiles to the first server so that the first server can display the snapshot corresponding to the target tiles.

[0127] As can be seen from the above description, after obtaining the map data to be displayed, the first device obtains the size of the target display data corresponding to the first server, that is, obtains the maximum data size that the first server can display. If the size of the map data to be displayed is greater than the size of the target display data, it indicates that the size of the map data to be displayed has exceeded the maximum data size that the first server can display, and the first server cannot directly display the map data to be displayed. Then, the map data to be displayed is sliced to obtain the target tiles that the first server can display, and the target tiles are compressed to obtain the snapshot corresponding to the target tiles, and the snapshot corresponding to the target tiles is sent to the first server so that the first server can normally display the snapshot corresponding to the target tiles, that is, can normally display the map data to be displayed, thus avoiding the problem of failed display of spatial data in the prior art. At the same time, since it is the snapshot that is transmitted to the first server, the data transmission speed can be increased, thereby improving the data display efficiency.

[0128] Specifically, when slicing the map data to be displayed, the map data to be displayed can be sliced according to the size of the target display data. The following describes in detail the process of slicing the map data to be displayed according to the size of the target display data in combination with a specific embodiment.

[0129] Figure 4 For the flowchart of the method for processing map data provided by the embodiment of the present invention Figure 2 This embodiment is in Figure 2Based on the embodiments, the specific implementation process of slicing the map data to be displayed according to the size of the target display data is described in detail. As Figure 4 shown, the method includes:

[0130] S401. Obtain the map data to be displayed, where the map data to be displayed is determined according to the data display instruction sent by the first server.

[0131] S402. Obtain the size of the target display data corresponding to the first server.

[0132] The implementation processes of S401 to S402 in this embodiment are similar to those of S201 to S202 in the above Figure 2 embodiments, and will not be elaborated here.

[0133] S403. Obtain the size of the map data to be displayed, where the map data to be displayed is grid-based map data.

[0134] S404. When it is determined that the size of the map data to be displayed is greater than the size of the target display data, slice the map data to be displayed according to the size of the target display data to obtain a plurality of target tiles, where the size of the target tile is less than or equal to the size of the target display data, and the size of the target display data is the number of grids displayed by the first server.

[0135] In this embodiment, the size of the map data to be displayed is compared with the size of the target display data. When the size of the map data to be displayed is less than or equal to the size of the target display data, it indicates that the first server can directly display the map data to be displayed, and then directly send the map data to be displayed to the first server for the first server to display.

[0136] When the size of the map data to be displayed is greater than the size of the target display data, it indicates that the first server cannot directly display the map data to be displayed, and then slice the map data to be displayed according to the size of the target display data so that the size of the target tile obtained by slicing is less than or equal to the size of the target display data.

[0137] Among them, the size of the target display data can be the resolution size of the first server, that is, the number of grids that the first server can display. For example, the resolution of the first server is determined according to the coordinates of the four vertices of the display screen of the first server. For example, the resolution is 256*256, that is, the number of pixels (grids) in the horizontal / vertical direction is 256. Slicing is performed according to the size of the resolution of the first server to obtain corresponding target tiles, and the size of the target tile is less than or equal to 256*256, that is, at most including 256*256 grids.

[0138] In addition, if the map data to be displayed is raster data, it indicates that the map data to be displayed consists of multiple grids, and it is directly sliced. If the map data to be displayed is vector data, it is converted into raster data, and then the converted map data to be displayed is sliced.

[0139] S405. Determine the snapshots corresponding to each target tile.

[0140] S406. Send the snapshots corresponding to each target tile to the first server so that the first server can display the snapshots corresponding to the target tiles.

[0141] In this embodiment, when slicing the map data to be displayed, since the map data has a composition order, the arrangement order of the target tiles can be determined according to the positions of the target tiles in the map data to be displayed. The numbers of the snapshots corresponding to each target tile are determined according to the arrangement order of the target tiles. The snapshots corresponding to the target tiles and the numbers of the snapshots corresponding to the target tiles are combined and sent to the first server so that the first server can combine the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles and display the combined snapshots corresponding to the target tiles.

[0142] Specifically, according to the positions of the target tiles in the map data to be displayed, the arrangement order of the target tiles is determined. The arrangement order includes the left - right arrangement order of the target tiles in the same layer and the up - down arrangement order of the target tiles in the upper and lower layers. The numbers of the snapshots corresponding to each target tile are determined according to the up - down arrangement order and the left - right arrangement order of the target tiles. All the snapshots corresponding to the target tiles and the numbers of the snapshots corresponding to each target tile are packaged and sent to the first server. The first server determines the snapshots corresponding to the target tiles in the same layer and the left - right arrangement order of the snapshots corresponding to the target tiles in the same layer according to the numbers of the snapshots corresponding to the target tiles, and determines the snapshots corresponding to the target tiles in the upper and lower layers and the up - down arrangement order of the snapshots corresponding to the target tiles in the upper and lower layers, and combines the snapshots corresponding to the target tiles according to the front - back arrangement order and the up - down arrangement order and displays the combined snapshots, thus realizing the display of the map data to be displayed. The snapshots corresponding to the target tiles are combined according to the front - back arrangement order and the up - down arrangement order of the snapshots, and the combined snapshots are displayed, thus realizing the display of the map data to be displayed.

[0143] Taking a specific application scenario as an example, such as Figure 5As shown in a of [the figure], four target tiles are obtained by splitting, namely tile 1, tile 2, tile 3, and tile 4. The snapshot 1 corresponding to tile 1 and the snapshot 2 corresponding to tile 2 are arranged in a left - right order, and the snapshot 3 corresponding to tile 3 and the snapshot 4 corresponding to tile 4 are also arranged in a left - right order. Snapshot 1 and snapshot 3 are arranged in an up - down order, and snapshot 3 and snapshot 4 are arranged in an up - down order. According to the left - right and up - down arrangements of the snapshots, snapshots 1, 2, 3, and 4 are combined, and the combined snapshot is displayed, as Figure 5 shown in b of [the figure].

[0144] It can be understood that since the number of snapshots is small, the first server can generally display the combined snapshot completely, realizing the complete display of the map data to be displayed. Of course, the first server may also not be able to display the combined snapshot completely. If the first server cannot display the combined snapshot completely, only a part of the combined snapshot can be displayed. For example, only snapshots 1 and 3 in the above application scenario are displayed.

[0145] In this embodiment, when it is determined that the first server cannot directly display the map data to be displayed, the map data to be displayed is split so that the size of the obtained target tiles is less than or equal to the target display data size, and the target tiles are format - converted, that is, the target tiles are compressed to obtain the snapshots corresponding to the target tiles, and the snapshots corresponding to the target tiles are quickly transmitted to the first server, improving the tile transmission speed, and enabling the first server to quickly load the target tile snapshots, improving the data display speed, and since the size of the snapshots is small, the first server can display as much of the map data to be displayed as possible.

[0146] In this embodiment, after obtaining the target tiles, the target tiles are compressed to obtain the snapshots corresponding to the target tiles, and the snapshots are sent to the first server. Since the snapshots are obtained by compressing the target tiles, on the one hand, the speed of transmitting data can be improved, thereby improving the efficiency of the first server in displaying data. On the other hand, since the amount of data that the first server can display is certain, therefore, after the target tiles are compressed, the compressed target tiles, that is, the data volume of the snapshots is small, so the first server can display more map data.

[0147] In addition, when slicing the map data to be displayed, the map data to be displayed can be initially sliced according to the preset display data size, and then further sliced. The following describes the process of slicing the map data to be displayed in detail with a specific embodiment.

[0148] Figure 6 is the flow of the method for processing map data provided by the embodiment of the present invention Figure 2 This embodiment is in Figure 2On the basis of the embodiments, the specific implementation process of slicing the map data to be displayed according to the size of the target display data is described in detail. As Figure 6 shown, the method includes:

[0149] S601. Obtain the map data to be displayed, where the map data to be displayed is determined according to the data display instruction sent by the first server.

[0150] S602. Obtain the size of the target display data corresponding to the first server.

[0151] The implementation processes of S601 to S602 in this embodiment are similar to those of S201 to S202 in the above Figure 2 embodiments, and will not be elaborated herein.

[0152] S603. Obtain the size of the map data to be displayed.

[0153] S604. When it is determined that the size of the map data to be displayed is greater than the preset display data size, perform preliminary slicing on the map data to be displayed to obtain a plurality of first tiles.

[0154] In this embodiment, when the size of the map data to be displayed is greater than the preset display data size, perform preliminary slicing on the map data to be displayed to obtain a plurality of first tiles.

[0155] Among them, the size of the first tile is the preset display data size. The preset display data size is a display threshold set by the first device. When the size of the map data to be displayed is greater than the preset display data size, the map data to be displayed is sliced accordingly. For example, if the preset display data size is 1G and the size of the map data to be displayed is 3G, then the map data to be displayed is sliced to obtain three first tiles, so that the size of the first tile is 1G.

[0156] Among them, the preset display data size may be the same as or different from the target display data size.

[0157] Optionally, the preset display data size may be a preset resolution size. For example, the preset resolution is 512*512, that is, the number of pixels (grid points) in the horizontal / vertical direction is 512. Slicing is performed according to the preset resolution size to obtain corresponding first tiles, and the size of the first tile is also 512*512, that is, it includes 512*512 grids.

[0158] In addition, optionally, after obtaining the first tile, the first tile may be sent to the first server so that the first server can know the intermediate processing result of the data to be displayed.

[0159] S605. Obtain the map data corresponding to each first tile, and slice the map data corresponding to each first tile according to the target display data size to obtain multiple target tiles. The target tiles have additional map information relative to the first tiles, and the size of the target tiles is less than or equal to the target display data size. The target display data size is the number of grids displayed by the first server.

[0160] In this embodiment, after obtaining the first tiles, obtain the map data corresponding to each first tile. For the map data corresponding to each first tile, when the size of the map data corresponding to the first tile is greater than the target display data size, it indicates that the first server cannot directly display the map data corresponding to the first tile, so it is necessary to perform refined slicing on it. Then slice the map data corresponding to the first tile to obtain the corresponding target tiles, so as to obtain the target tiles that the first server can directly display, and there will be no problem that the first server cannot display.

[0161] In addition, when the size of the map data corresponding to the first tile is less than the target display data size, it indicates that the first server can directly display the map data corresponding to the first tile, and then directly send the map data corresponding to the first tile to the first server for the first server to display.

[0162] In this embodiment, optionally, obtaining the map data corresponding to each first tile includes:

[0163] Send the first tile to the second server, so that the second server determines the map data corresponding to each first tile according to the preset spatial index and the first tile. Obtain the map data corresponding to each first tile sent by the second server.

[0164] Specifically, after obtaining the first tile, send the first tile to the second server. For each first tile, the second server uses the preset spatial index (such as Figure 7 a rectangular box in it is a spatial index) to obtain the spatial data corresponding to the first tile. The spatial data corresponding to the first tile is the intersection of the spatial data corresponding to the spatial index and the first tile. The second server returns the spatial data corresponding to the first tile to the first server for the first server to process the spatial data corresponding to the first tile.

[0165] Optionally, the spatial index is R-TREE.

[0166] In this embodiment, the map data to be displayed determined according to the data display instruction may include less information and only includes basic information. Therefore, the spatial index can be used to further obtain more detailed spatial data, that is, the map data corresponding to the first tile is obtained by using the spatial index. Thus, the target tile obtained according to the map data corresponding to the first tile has new map information compared with the first tile. For example, the content of the target tile includes the distribution locations of shared bicycles, while the first tile does not. Another example is that the content of the target tile includes road traffic signs, while the first tile does not.

[0167] Optionally, after sending the first tile to the first server, the user can further determine the data range to be displayed, then select the first tile to be displayed from the first tiles, and send the selected first tile to the second server so that the second server determines the geographic data corresponding to the first tile.

[0168] In addition, optionally, after obtaining the map data corresponding to the first tile, for the map data corresponding to each first tile, when the size of the spatial data corresponding to the first tile is greater than the preset display data size, the redundant part of the spatial data corresponding to the first tile is cut off to obtain the corresponding first spatial data. When the size of the spatial data corresponding to the first tile is less than or equal to the preset display data, it indicates that there is no need to cut off the spatial data corresponding to the first tile, and then the spatial data corresponding to the first tile is directly used as the first spatial data. Then, the first spatial data is sliced according to the target display data size to obtain the corresponding target tiles.

[0169] Specifically, the size of the map data corresponding to the first tile is the number of grids it contains. For example, the map data corresponding to the first tile includes 256 * 278 grids, and the preset display data size is 256 * 256. Then, the redundant part of the spatial data corresponding to the first tile needs to be cut off so that the size of the obtained first spatial data is 256 * 256, that is, the length of the first spatial data is 256 grids and the width is 256 grids.

[0170] In addition, after obtaining the first spatial data corresponding to each first tile, the topological relationship verification can also be performed on the first spatial data corresponding to each first tile to avoid errors in the topological relationship between the first tiles caused by cutting off the spatial data corresponding to the first tile.

[0171] Among them, the process of performing topological relationship verification on spatial data is an existing process, and it will not be elaborated here.

[0172] S606. Determine the snapshots corresponding to the target tiles.

[0173] S607. Send the snapshots corresponding to the target tiles to the first server so that the first server can display the snapshots corresponding to the target tiles.

[0174] The implementation processes of S606 to S607 in this embodiment are similar to those of S203 to S204 in the above Figure 2 embodiment, and thus will not be elaborated herein.

[0175] In this embodiment, when the size of the map data to be displayed is greater than the preset display data size, the map data to be displayed is preliminarily segmented to obtain a plurality of first tiles, and the first tiles are returned to the first server, that is, the intermediate processing result corresponding to the map data to be displayed is sent to the first server, so that the user corresponding to the first server can timely learn the intermediate result of data processing, and obtain the spatial data corresponding to the first tiles from the second server, thereby ensuring that the first server does not need to store the map data and guaranteeing the running speed of the first server.

[0176] In this embodiment, after obtaining the map data to be displayed, the map data to be displayed is preliminarily segmented according to the preset display data size to obtain the first tiles. To make the data displayed by the first server more rich and comprehensive, the map data corresponding to the first tiles is obtained. Since the more comprehensive map data is obtained according to the first tiles, the acquisition efficiency of the map data can be improved. Then, the map data corresponding to the first tiles is further segmented according to the target display data size to obtain the corresponding target tiles. Since the target tiles are segmented on the basis of the first tiles obtained by preliminary segmentation, that is, segmented on the basis of the map data with a smaller data volume, the data segmentation efficiency can be improved.

[0177] Figure 8 is a flowchart of the method for processing map data provided by an embodiment of the present invention Figure 4 , and the execution subject of this method can be Figure 1 the first server in Figure 8 as shown, and this method includes:

[0178] S801. Send a data display instruction to the second server so that the second server determines the map data to be displayed corresponding to the data display instruction and sends the map data to be displayed to the first device.

[0179] In this embodiment, after receiving the data display instruction input by the user, the data display instruction is sent to the second server. The second server determines the corresponding map data to be displayed according to the data display instruction and sends the map data to be displayed to the first device.

[0180] Among them, the process by which the second server determines the map data to be displayed according to the data display instruction is similar to the process of determining the map data to be displayed according to the data display instruction in the above embodiment, and thus will not be elaborated herein.

[0181] S802. Obtain the snapshot corresponding to the target tile sent by the first device, where the snapshot corresponding to the target tile is obtained by the first device by slicing the map data to be displayed according to the target display data size corresponding to the first server, obtaining each target tile, and sending the snapshot after determining the snapshot corresponding to each target tile.

[0182] S803. Display the snapshot corresponding to the target tile.

[0183] In this embodiment, after receiving the snapshot corresponding to the target tile sent by the first device, it is necessary to display the snapshots corresponding to all the target tiles. Generally, the total data volume of the snapshots corresponding to all the target tiles is less than or equal to the display size of the first server, that is, the target display data size, and then directly display the snapshots corresponding to all the target tiles to implement the loading of the map data to be displayed.

[0184] In addition, optionally, when the total data volume of the snapshots corresponding to all the target tiles is greater than the display size of the first server, only display the snapshots corresponding to some of the target tiles.

[0185] In addition, optionally, since the map data is in order, when displaying the snapshot corresponding to the target tile, it is necessary to combine the snapshots corresponding to the target tiles in a certain order and display the combined snapshots. The specific process is as follows: Obtain the snapshot corresponding to the target tile sent by the first device and the numbers of the snapshots corresponding to each target tile. Combine the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to each target tile, and display the combined snapshots corresponding to the target tiles.

[0186] In this embodiment, after receiving a data display instruction, the first server sends the data display instruction to the second server so that the second server determines the corresponding map data to be displayed, and then sends the map data to be displayed to the first device. After receiving the displayed map data, the first device obtains the target display data size corresponding to the first server, that is, obtains the maximum data size that the first server can display. If the size of the map data to be displayed is greater than the target display data size, it indicates that the size of the map data to be displayed has exceeded the maximum data size that the first server can display, and the first server cannot directly display the map data to be displayed. Then, the map data to be displayed is sliced to obtain target tiles that the first server can display, and the target tiles are compressed to obtain snapshots corresponding to the target tiles, and the snapshots corresponding to the target tiles are sent to the first server. After receiving the snapshots corresponding to the target tiles sent by the first device, the first server normally displays the snapshots corresponding to the target tiles, that is, it can normally display the map data to be displayed, and there will be no problem of failed spatial data display. At the same time, since snapshots are transmitted to the first server, the data transmission speed can be increased, thereby improving the data display efficiency.

[0187] Figure 9 Structural schematic of the processing device for map data provided by an embodiment of the present invention Figure 1 , and this device is applied to the first device. As Figure 9 shown, this device includes a first transceiver module 901 and a first processing module 902.

[0188] Among them, the first transceiver module 901 is used to obtain the map data to be displayed, where the map data to be displayed is determined according to the data display instruction sent by the first server.

[0189] The first processing module 902 is used to obtain the target display data size corresponding to the first server.

[0190] The first processing module 902 is further used to slice the map data to be displayed according to the target display data size to obtain a plurality of target tiles, and determine snapshots corresponding to each target tile.

[0191] The first transceiver module 901 is further used to send the snapshots corresponding to each target tile to the first server so that the first server displays the snapshots corresponding to the target tiles.

[0192] In a possible design, the first processing module 902 is further used to:

[0193] Obtain the size of the map data to be displayed, where the map data to be displayed is gridded map data.

[0194] When it is determined that the size of the map data to be displayed is greater than the size of the target display data, the map data to be displayed is sliced according to the size of the target display data to obtain a plurality of target tiles, where the size of the target tile is less than or equal to the size of the target display data, and the size of the target display data is the number of grids displayed by the first server.

[0195] In a possible design, the first processing module 902 is further configured to:

[0196] Obtain the size of the map data to be displayed.

[0197] When it is determined that the size of the map data to be displayed is greater than the preset display data size, perform a preliminary slice on the map data to be displayed to obtain a plurality of first tiles.

[0198] Obtain the map data corresponding to each first tile, and slice the map data corresponding to each first tile according to the size of the target display data to obtain a plurality of target tiles, where the target tile has additional map information relative to the first tile, the size of the target tile is less than or equal to the size of the target display data, and the size of the target display data is the number of grids displayed by the first server.

[0199] In a possible design, the first transceiver module 901 is further configured to:

[0200] Determine the arrangement order of the target tiles according to the positions of the target tiles in the map data to be displayed.

[0201] Determine the numbers of the snapshots corresponding to the target tiles according to the arrangement order of the target tiles.

[0202] Combine and send the snapshot corresponding to the target tile and the number of the snapshot corresponding to the target tile to the first server so that the first server combines the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles, and displays the combined snapshots corresponding to the target tiles.

[0203] In a possible design, the first processing module 902 is further configured to:

[0204] For the map data corresponding to each first tile, cut the map data corresponding to the first tile according to the preset display data size to obtain first map data.

[0205] When it is determined that the size of the first map data is greater than the size of the target display data, slice the first map data to obtain the corresponding target tiles.

[0206] In a possible design, the first processing module 902 is further configured to:

[0207] Send the first tile to the second server so that the second server determines the map data corresponding to each first tile according to the preset spatial index and the first tile.

[0208] Obtain the map data corresponding to each first tile sent by the second server.

[0209] In a possible design, the data display instruction includes a data display range and at least one display layer. Then, the first processing module 902 is further configured to:

[0210] When the number of display layers is greater than 1, superimpose all the display layers.

[0211] Based on the superimposed display layers, search for the map data corresponding to the data display range to obtain the map data to be displayed.

[0212] Figure 10 Schematic structural diagram of the processing device for map data provided by an embodiment of the present invention Figure 2 , and this device is applied to the first server. As Figure 10 shown, this device includes a second transceiver module 1001 and a second processing module 1002.

[0213] The second transceiver module 1001 is configured to send a data display instruction to the second server so that the second server determines the map data to be displayed corresponding to the data display instruction and sends the map data to be displayed to the first device.

[0214] The second transceiver module 1001 is further configured to obtain the snapshot corresponding to the target tile sent by the first device, where the snapshot corresponding to the target tile is obtained by the first device slicing the map data to be displayed according to the target display data size corresponding to the first server to obtain each target tile, and is sent after determining the snapshot corresponding to each target tile.

[0215] The second processing module 1002 is configured to display the snapshot corresponding to the target tile.

[0216] In a possible design, the second transceiver module 1001 is further configured to:

[0217] Obtain the snapshot corresponding to the target tile sent by the first device and the numbers of the snapshots corresponding to each target tile.

[0218] The second processing module 1002 is further configured to:

[0219] Combine the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to each target tile, and display the combined snapshot corresponding to the target tile.

[0220] Figure 11 Schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present invention. AsFigure 11 As shown in the figure, the electronic device 1100 provided in this embodiment includes: at least one processor 1101 and a memory 1102. Among them, the processor 1101 and the memory 1102 are connected through a bus 1103.

[0221] In a specific implementation process, at least one processor 1101 executes the computer-executable instructions stored in the memory 1102, so that at least one processor 1101 executes the method for processing map data in the above method embodiment.

[0222] For the specific implementation process of the processor 1101, reference can be made to the above method embodiment. Their implementation principles and technical effects are similar, and will not be elaborated here in this embodiment.

[0223] In the above Figure 11 In the shown embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed and completed by a hardware processor, or can be executed and completed by a combination of hardware and software modules in the processor.

[0224] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.

[0225] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0226] This embodiment of the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the method for processing map data in the above method embodiment is implemented.

[0227] The above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0228] An exemplary readable storage medium is coupled to the processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0229] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including those of the above method embodiments; and the foregoing storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disks, or optical disks.

[0230] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing map data, characterized in that, applied to a first device, the method includes: obtaining map data to be displayed, wherein the map data to be displayed is determined according to a data display instruction sent by a first server; obtaining a target display data size corresponding to the first server; segmenting the map data to be displayed according to the target display data size to obtain a plurality of target tiles, and respectively performing format processing on each target tile to determine a plurality of snapshots corresponding to each target tile; sending the plurality of snapshots corresponding to each target tile to the first server, so that the first server displays the snapshots after combining the plurality of snapshots corresponding to each target tile.

2. The method according to claim 1, characterized in that, the segmenting the map data to be displayed according to the target display data size to obtain a plurality of target tiles includes: obtaining the size of the map data to be displayed, wherein the map data to be displayed is grid-based map data; when it is determined that the size of the map data to be displayed is greater than the target display data size, segmenting the map data to be displayed according to the target display data size to obtain the plurality of target tiles, wherein the size of the target tile is less than or equal to the target display data size, and the target display data size is the number of grids displayed by the first server.

3. The method according to claim 1, characterized in that, the segmenting the map data to be displayed according to the target display data size to obtain a plurality of target tiles includes: obtaining the size of the map data to be displayed; when it is determined that the size of the map data to be displayed is greater than a preset display data size, performing a preliminary segmentation on the map data to be displayed to obtain a plurality of first tiles; obtaining the map data corresponding to each first tile, and segmenting the map data corresponding to each first tile according to the target display data size to obtain the plurality of target tiles, wherein the target tile has additional map information relative to the first tile, and the size of the target tile is less than or equal to the target display data size, and the target display data size is the number of grids displayed by the first server.

4. The method according to claim 1, characterized in that, the sending the plurality of snapshots corresponding to each target tile to the first server includes: determining the arrangement order of the target tiles according to the positions of the target tiles in the map data to be displayed; determining the numbers of the snapshots corresponding to each target tile according to the arrangement order of the target tiles; sending the snapshots corresponding to the target tiles and the numbers of the snapshots corresponding to the target tiles in combination to the first server, so that the first server combines the snapshots corresponding to the target tiles according to the numbers of the snapshots corresponding to the target tiles, and displays the snapshots after combining the target tiles corresponding thereto.

5. The method according to claim 3, characterized in that, the segmenting the map data corresponding to each first tile according to the target display data size includes: For the map data corresponding to each first tile, the map data corresponding to the first tile is cut according to the preset display data size to obtain first map data; When it is determined that the size of the first map data is greater than the target display data size, the first map data is sliced to obtain corresponding target tiles.

6. The method according to claim 3, wherein, the obtaining of the map data corresponding to each first tile includes: sending the first tile to a second server, so that the second server determines the map data corresponding to each first tile according to a preset spatial index and the first tile; obtaining the map data corresponding to each first tile sent by the second server.

7. The method according to any one of claims 1 to 6, wherein, the data display instruction includes a data display range and at least one display layer, and the method further includes: when the number of the display layers is greater than 1, superimposing all the display layers; based on the superimposed display layers, searching for the map data corresponding to the data display range to obtain the map data to be displayed.

8. A method for processing map data, wherein, applied to a first server, the method includes: sending a data display instruction to a second server, so that the second server determines the map data to be displayed corresponding to the data display instruction, and sends the map data to be displayed to a first device; obtaining a plurality of snapshots corresponding to each target tile sent by the first device, wherein the plurality of snapshots corresponding to each target tile are obtained by the first device slicing the map data to be displayed according to the target display data size corresponding to the first server to obtain each target tile, and after respectively performing format processing on each target tile to determine the plurality of snapshots corresponding to each target tile and then sending them; displaying the snapshots after combining the plurality of snapshots corresponding to each target tile.

9. The method according to claim 8, wherein, the obtaining of the snapshot corresponding to the target tile sent by the first device includes: obtaining the snapshot corresponding to the target tile sent by the first device and the numbers of the snapshots corresponding to each target tile; the displaying of the snapshot corresponding to the target tile includes: combining the snapshots corresponding to the target tile according to the numbers of the snapshots corresponding to each target tile, and displaying the combined snapshot corresponding to the target tile.

10. A map data processing system, wherein, comprising: a first server, configured to send a data display instruction to a second server; the second server, configured to obtain the map data to be displayed corresponding to the data display instruction, and send the map data to be displayed to a first device; the first device, configured to obtain the target display data size corresponding to the first server, and slice the map data to be displayed according to the target display data size to obtain a plurality of target tiles; the first device is further configured to respectively perform format processing on each target tile to determine a plurality of snapshots corresponding to each target tile, and send the plurality of snapshots corresponding to each target tile to the first server; The first server is further configured to display a snapshot after combining multiple snapshots corresponding to each target tile.

11. An electronic device, characterized in that it includes: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for processing map data according to any one of claims 1 to 7 or 8 to 9.

12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method for processing map data according to any one of claims 1 to 7 or 8 to 9 is implemented.

Citation Information

Patent Citations

  • Method for receiving and displaying map

    CN102054388A

  • Map display method under browser / server mode and client thereof

    CN102739699A

  • Tile map storing and loading method

    CN105022818A