Grid tile online updating method and device, terminal and medium

By dividing vector tiles into pre-cutting and real-time conversion levels, the problem of low update efficiency of raster tiles is solved, enabling rapid update and efficient storage of map data, and improving the response speed and storage efficiency of map services.

CN120804121BActive Publication Date: 2025-12-16ZHEJIANG INST OF SURVEYING & MAPPING SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511285826.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-10
Publication Date
2025-12-16
Estimated Expiration
2045-09-10

AI Technical Summary

Technical Problem

In existing technologies, the low efficiency of raster tile updates results in long map data update times, failing to meet the demand for efficient and rapid updates, especially when updating over a large geographic area, where storage costs and computing resource consumption are too high.

Method used

Vector tiles are divided into pre-cutting level and real-time conversion level. Vector tiles at the pre-cutting level are rendered as raster tiles and cached, while vector tiles at the real-time conversion level are deleted directly when updated, reducing the amount of computation and storage resources consumed on the server.

Benefits of technology

It improves the speed of map data updates, reduces the latency of map data updates, enhances the response speed and efficiency of map services, and saves storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120804121B_ABST
    Figure CN120804121B_ABST
Patent Text Reader

Abstract

The application provides a grid tile online updating method and device, a terminal and a medium, wherein the grid tile online updating method comprises: obtaining tile information based on each geographical element to be updated; and obtaining each corresponding vector tile based on the tile information, so as to adjust each corresponding initial tile in initial map data by using a tile modification strategy; wherein the tile modification strategy comprises: for each vector tile of a pre-cut level, generating each corresponding grid tile and replacing each corresponding initial tile in the initial map data to be cached; and for each vector tile of a real-time conversion level, deleting each corresponding initial tile in the initial map data, thereby reducing the number of vector tiles that need to be converted into grid tiles in advance during the updating process, avoiding excessive server calculation or excessive storage resource occupation, and further improving the updating efficiency of the map data and achieving a near real-time updating effect.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of geographic information, and relates to a grid tile data updating technology, in particular to a grid tile online updating method and device, a terminal and a medium. BACKGROUND

[0002] In order to realize efficient transmission and multi-scale visualization, map data usually needs to be divided into multiple levels of tiles for display and storage. Each tile of map data contains grid tiles and vector tiles, wherein the grid tiles are stored in the form of rendered pictures, and the vector tiles are stored in the form of structured data. Due to the image characteristics of the grid tiles, they have high compatibility and can be compatible with almost all browsers. Generally, map data is usually displayed in the form of grid tiles. It should be noted that in order to ensure the timeliness, each tile in the map data needs to be updated regularly.

[0003] The existing map data updating method mainly includes the following steps: determining each geographical feature that needs to be updated and obtaining all vector tiles corresponding to the spatial range of these geographical features, rendering the grid tiles based on these vector tiles and storing them on the server, so that when the map data is displayed, the client can call the updated grid tiles from the server, thereby displaying the updated map data. However, when the geographical space range involved in the update is large, the total time required for rendering a large number of vector tiles to generate grid tiles is long, thereby making the map data updating efficiency low, and the server needs to save these updated grid tiles, which requires high storage cost, further affecting the map data updating efficiency, especially for large-scale vector data update, for example, a province-wide feature update may take one to two weeks to complete, which is difficult to meet the efficient and rapid update demand of map service. SUMMARY

[0004] The purpose of the present application is to provide a grid tile online updating method, device, terminal and medium, which solves the problem of low grid tile updating efficiency and long required time in the prior art, thereby causing map data updating delay.

[0005] In a first aspect, the present application provides a grid tile online updating method for updating initial map data to be updated, comprising:

[0006] Based on each geographical feature to be updated, obtaining tile information;

[0007] Based on the tile information, obtaining each corresponding vector tile, and based on each vector tile, adjusting each corresponding initial tile in the initial map data by using a preset tile modification strategy to obtain updated map data;

[0008] The tile modification strategy includes: for each pre-cut level of the vector tile, generating a corresponding raster tile and replacing a corresponding initial tile in the initial map data for caching; and for each real-time conversion level of the vector tile, deleting a corresponding initial tile in the initial map data.

[0009] In an embodiment of the present application, the tile information is obtained based on each geographical element to be updated, and includes:

[0010] For each geographical element, identification information of all corresponding vector tiles within a spatial range of the geographical element is obtained respectively.

[0011] Based on the identification information of each vector tile, the vector tiles are de-duplicated, and the identification information of each vector tile after de-duplication is taken as the tile information.

[0012] In an embodiment of the present application, the identification information includes a row-column number and a tile level.

[0013] In an embodiment of the present application, based on the identification information of each vector tile, the vector tiles are de-duplicated, which is: obtaining a row-column number corresponding to each vector tile, comparing all row-column numbers and de-duplicating.

[0014] In an embodiment of the present application, the pre-cut level is each tile level lower than or equal to a preset boundary level; and the real-time conversion level is each tile level higher than the preset boundary level.

[0015] In an embodiment of the present application, the generation method of the raster tile includes:

[0016] The cutting size of the vector tile is expanded to a complete cutting size of an annotation, and the vector tile obtained by cutting is rendered to generate an expanded intermediate raster tile.

[0017] Based on the standard tile size, the expanded intermediate raster tile is cropped to obtain the raster tile with a standard tile size.

[0018] In an embodiment of the present application, the complete cutting size of the annotation is a size obtained based on a maximum number of single-line characters and a maximum font size of the annotation.

[0019] In a second aspect, the present application provides a raster tile online updating device, characterized in that the device includes an information obtaining module and a tile adjusting module.

[0020] The information obtaining module is configured to obtain tile information based on each geographical element to be updated.

[0021] The tile adjustment module is configured to obtain corresponding vector tiles based on the tile information, and adjust corresponding initial tiles in initial map data based on the vector tiles and by using a preset tile modification strategy to obtain updated map data.

[0022] The tile modification strategy includes: for each vector tile of the pre-cut level, generating corresponding raster tiles and replacing corresponding initial tiles in the initial map data for caching; and for each vector tile of the real-time conversion level, deleting corresponding initial tiles in the initial map data.

[0023] In a third aspect, the present application provides a terminal, comprising: a processor and a memory, the memory being in communication connection with the processor;

[0024] The memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory to enable the terminal to perform the raster tile online updating method as described above.

[0025] In a fourth aspect, the present application provides a computer storage medium, which stores a computer program, and the computer program is executed by a processor to implement the raster tile online updating method as described above.

[0026] As described above, the present application provides a raster tile online updating method, device, terminal and medium, by dividing each vector tile into two levels of pre-cut level and real-time conversion level based on the tile level, rendering the vector tiles of the pre-cut level into raster tiles at the server to replace corresponding initial tiles in the initial map data, and deleting corresponding initial tiles in the initial map data based on the vector tiles of the real-time conversion level, the updating of the map data is realized, thereby avoiding the need for the server to render and store a large number of vector tiles, reducing the computational load and storage resource occupation of the server, and effectively improving the updating speed of the map data to achieve better map service. BRIEF DESCRIPTION OF DRAWINGS

[0027] Figure 1 A flowchart of a raster tile online updating method according to an embodiment of the present application is shown.

[0028] Figure 2 A schematic diagram of tile arrangement of each level according to an embodiment of the present application is shown.

[0029] Figure 3 A flowchart of a vector tile deduplication operation according to an embodiment of the present application is shown.

[0030] Figure 4A schematic diagram showing a case where an annotation exceeds the boundary of a standard tile size according to an embodiment of the present application.

[0031] Figure 5 A schematic diagram showing a flow of a tile generation method according to an embodiment of the present application.

[0032] Figure 6 A schematic diagram showing a local map data update according to an embodiment of the present application.

[0033] Figure 7 A schematic diagram showing a structure of a tile online update device according to an embodiment of the present application.

[0034] Figure 8 A schematic diagram showing a structure of a terminal according to an embodiment of the present application.

[0035] Legend of reference numerals

[0036] 41: information acquisition module; 42: tile adjustment module; 50: terminal; 51: processor; 52: memory; 521: operating system; 522: application program; 53: user interface; 54: network interface; 55: bus system. DETAILED DESCRIPTION

[0037] The present application will be described in detail with specific embodiments hereinafter, and those skilled in the art will easily understand other advantages and effects of the present application from the contents disclosed in the specification. The present application can also be implemented or applied in other different specific embodiments, and various modifications or changes can be made to the details in the specification without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0038] It should be noted that the diagrams provided in the following embodiments only schematically illustrate the basic concept of the present application, and therefore only the components related to the present application are shown in the diagrams, not the number, shape and size of the components when actually implemented. The actual implementation of each component can be a random change in the type, number and ratio, and the layout type of the components can be more complex.

[0039] The conventional tile update method usually acquires all vector tiles in the geographic information space range that needs to be updated, and renders them into raster tiles for caching, so as to achieve faster response when displaying the map. However, this update method needs to consume a long update time to render all vector tiles into raster tiles, and the storage of the rendered raster tiles will occupy a large amount of server resources, resulting in low update efficiency of the raster tiles, thereby causing the update of the map data to be delayed and affecting the accuracy of the map data.

[0040] Based on this, the following embodiments of the application provide a grid tile online updating method, device, terminal and medium. By dividing each vector tile into two levels of pre-cut level and real-time conversion level based on the tile level, the server renders the vector tiles of the pre-cut level into grid tiles for caching, and caches each vector tile of the real-time conversion level, thereby reducing the calculation amount and storage resource occupation of the server, effectively improving the updating efficiency of map data, speeding up the updating speed, and avoiding delay.

[0041] The server is used to obtain each vector tile, render and cache each vector tile, and return the corresponding grid tile to the client in response to the client's map data display request to provide map services. The acquisition approach of each vector tile includes but is not limited to a server local database or a cloud database.

[0042] The client is a request access client, which is used to send a request to the server to obtain each corresponding grid tile for map data display. For example, the client is a map browsing client.

[0043] The embodiment provides a grid tile online updating method for efficiently and conveniently updating initial map data, thereby providing better map services. The initial map data is existing map data to be updated, and the grid tile online updating method is used to update the initial map data to ensure the timeliness of the map data. Specifically, as shown in Figure 1 The grid tile online updating method includes:

[0044] S100, obtaining tile information based on each geographical feature to be updated.

[0045] Each geographical feature to be updated is each element in the initial map data that needs to be updated after the change of geographical entities in the actual geographical space.

[0046] The tile information includes the identification information of all vector tiles associated with each geographical feature to be updated, that is, the identification information of all vector tiles corresponding to the spatial range of each geographical feature to be updated. Further, the server obtains the tile information based on each geographical feature to be updated, to obtain each corresponding vector tile. It should be noted that the obtained vector tile corresponds to the changed geographical entity in the actual geographical space.

[0047] Exemplarily, the identification information of the vector tile includes a tile level and a row-column number. The tile level is used to represent the actual geographical space range corresponding to the vector tile. The lower the level is, the larger the actual geographical space range corresponding to the vector tile is. The higher the level is, the smaller the actual geographical space range corresponding to the vector tile is. Exemplarily, the tile level is a layer number in a tile pyramid. The tile pyramid is a tile slicing scheme based on a preset spatial segmentation logic. For example, the tile pyramid is a tile slicing scheme based on a quadtree segmentation logic. The row-column number is used to represent the position of the vector tile in the actual geographical space. Exemplarily, the row-column number is a plane grid coordinate of the vector tile at the corresponding tile level. Based on this, a vector tile is uniquely represented by the tile level and the row-column number, so as to obtain the corresponding vector tile based on the identification information.

[0048] Specifically, referring to Figure 2 , the leftmost side is a tile arrangement diagram of level 1, including vector tiles with row-column numbers of 0, 1, 2 and 3; the middle is a tile arrangement diagram of level 2, in which each vector tile with a row-column number of 20, 21, 22 and 23 represents the same actual geographical space as the vector tile with a row-column number of 2; and the rightmost side is a tile arrangement diagram of level 3, in which each vector tile with a row-column number of 200, 201, 202, 203, 210, 211, 212, 213, 221, 221, 222, 223, 230, 231, 232 and 233 represents the same actual geographical space as the vector tile with a row-column number of 2, and each vector tile with a row-column number of 130, 131, 132 and 133 represents the same actual geographical space as the vector tile with a row-column number of 13. It should be noted that the row-column numbers and levels here are only exemplary descriptions for the convenience of those skilled in the art, and those skilled in the art should know that the row-column numbers of the tiles should comply with the OGC (Open Geospatial Consortium) standard in actual execution.

[0049] It should be noted that for adjacent geographical elements, the corresponding actual space range may overlap, that is, the corresponding vector tiles may be repeated. Based on this, in the embodiment, after obtaining the identification information of all vector tiles associated with each geographical element to be updated, the vector tiles are also de-duplicated, so as to obtain each vector tile by taking the de-duplicated vector tile identification information as the tile information, thereby effectively reducing the calculation pressure and storage resource occupation. Especially for a large geographical space range involved in updating, a large number of vector tiles need to be obtained. Through the de-duplication operation, the number of obtained vector tiles is effectively reduced, thereby improving the acquisition and processing efficiency of each vector tile, which is conducive to the rapid updating of map data.

[0050] In some optional embodiments, as Figure 3 shown, the execution mode of the de-duplication operation includes:

[0051] S101, for each geographic element, obtain the identification information of all corresponding vector tiles in the spatial range thereof respectively.

[0052] Illustratively, the identification information is the row-column number and tile level of each vector tile.

[0053] S102, based on the identification information of each vector tile, de-duplicate the vector tiles, and take the identification information of each vector tile after de-duplication as tile information.

[0054] Specifically, the row-column number corresponding to each vector tile is obtained, comparison is made based on these row-column numbers, and the repeated row-column numbers are deleted, that is, for the same row-column number, only one is retained to achieve de-duplication. Based on the remaining row-column numbers after comparison and deletion, the identification information corresponding to each tile is obtained to take these identification information as tile information.

[0055] Illustratively, for ease of understanding, the de-duplication operation will be illustrated below by taking the to-be-updated geographic elements a and b in Figure 2 as an example. Specifically, for the to-be-updated geographic element a, its update needs to obtain 6 vector tiles with row-column numbers 2, 22, 220, 221, 222 and 223, and for the to-be-updated geographic element b, its update needs to obtain 9 vector tiles with row-column numbers 2, 20, 21, 22, 23, 203, 212, 221 and 230, wherein the vector tiles with row-column numbers 2, 22 and 221 are repeated, only one is retained, then after the de-duplication operation, for the to-be-updated geographic elements a and b, their update needs to obtain 12 vector tiles with row-column numbers 2, 20, 21, 22, 23, 203, 212, 220, 221, 222, 223 and 230, compared with the 15 vector tiles corresponding to the to-be-updated geographic elements a and b respectively before the de-duplication operation, the number of vector tiles needed to be obtained after the de-duplication operation is less, thereby effectively improving the acquisition and processing efficiency of each vector tile, and facilitating the rapid update of map data.

[0056] S200, based on the tile information, obtain corresponding each vector tile, and based on each vector tile, adjust the corresponding each initial tile in the initial map data by using a preset tile modification strategy to obtain updated map data.

[0057] Wherein, adjusting each initial tile includes replacing the initial tile with a new tile, or deleting the initial tile. Specifically, each initial tile is adjusted based on the preset tile modification strategy.

[0058] Further, the preset tile modification strategy comprises: rendering each pre-cut level vector tile to generate a corresponding raster tile and replacing a corresponding initial tile in the initial map data to cache as each updated tile; deleting each real-time conversion level vector tile in the initial map data to delete the initial map data that does not match the geographical entity in the current actual geographic space, thereby updating the initial map data. Wherein, the time of rendering each pre-cut level vector tile into a raster tile is greater than the preset rendering time threshold, and the time of rendering each real-time conversion level vector tile into a raster tile is less than or equal to the preset rendering time threshold. The rendering time threshold is a preset time value, and those skilled in the art can set the rendering time threshold based on actual needs, which is not limited in the embodiment.

[0059] It should be noted that, based on the row and column numbers of the tiles, the corresponding initial tiles are obtained. Specifically, the row and column numbers of the initial tiles in the initial map data are obtained, for the initial tiles with the same row and column numbers as the pre-cut level vector tiles, the corresponding generated raster tiles are replaced, and for the initial tiles with the same row and column numbers as the real-time conversion level vector tiles, they are deleted, so as to form new map data based on the adjusted tiles, thereby updating the map data.

[0060] Based on this, the raster tile online updating method provided by the embodiment can efficiently and quickly update the map data, and the updated map data has a faster response speed in the display process to provide high-quality map services. In order to facilitate those skilled in the art to understand the raster tile online updating method described in the embodiment, the following will be specifically explained.

[0061] For each pre-cut level of vector tiles, the rendering is converted into raster tiles for caching during the updating process, because the time for rendering each pre-cut level of vector tiles into raster tiles is greater than the preset rendering time threshold, that is, the rendering time of each single vector tile is relatively long, and the vector tile is rendered into a raster tile for caching, so that when the client displays the map data, the server can send the cached raster tile to the client, the response time is relatively short, and thus a better map service effect is achieved. For each real-time conversion level of vector tiles, the corresponding vector tile in the initial map data is deleted during the updating process, and when the client displays the map data, the server requests the corresponding vector tile from the local database or the cloud database, obtains the corresponding vector tile, and returns the raster tile obtained by real-time rendering of the vector tile to the client. Because the time for rendering each real-time conversion level of vector tiles into raster tiles does not exceed the preset rendering time threshold, the rendering speed is relatively fast, the real-time rendering conversion can achieve a relatively fast response speed, and thus a better map service effect is achieved. In addition, because each real-time conversion level of vector tiles does not need to be rendered into a raster tile during the updating process, the number of vector tiles that need to be rendered is effectively reduced, and thus the updating efficiency of the map data is improved. Furthermore, because each real-time conversion level of vector tiles does not need to be cached during the updating process, the storage space of the computer can be effectively reduced, the storage resources and system pressure are saved, and the updating of the map data is further accelerated.

[0062] It should be noted that after the updating of the map data is completed, during the display process, for each pre-cut level of tiles, the corresponding raster tile is cached in the server, and the client requests the corresponding raster tile from the server for displaying the map data. For each real-time conversion level of tiles, when the client requests the raster tile from the server, if the server has cached the vector tile corresponding to the raster tile, for example, the corresponding geographical entity in the actual geographical space does not change, and the corresponding vector tile is not deleted during the previous updating of the map data, the vector tile is real-time rendered into a raster tile and returned to the client for displaying the map data. If the server does not cache the vector tile corresponding to the raster tile, for example, the corresponding geographical entity in the actual geographical space changes, and the corresponding vector tile is deleted during the previous updating of the map data, the server requests the corresponding vector tile from the local database or the cloud database, and returns the raster tile obtained by real-time rendering of the vector tile to the client for displaying the map data. Further, when the server obtains the vector tile that is not cached during the display process of the map data, the vector tile is cached for subsequent display of the map data, so that the response speed during the display of the map data is accelerated, and a better map service effect is achieved.

[0063] It is worth noting that for the vector tiles of each level of the tile pyramid, the lower the tile level, the larger the actual geographic space range corresponding to a single vector tile, the more computing resources consumed by rendering to generate raster tiles, and the more time required. The higher the tile level, the smaller the actual geographic space range corresponding to a single vector tile, the shorter the time required for rendering to generate raster tiles, but the number of vector tiles corresponding to the same actual geographic space range is larger, the total time for rendering these vector tiles to generate raster tiles is longer, and the cache pressure is larger.

[0064] Based on this, in order to further improve the update efficiency of map data, in the present embodiment, each real-time conversion level is higher than each pre-cut level, so that the lower level vector tiles are rendered in advance on the server, and raster tiles are generated for caching, avoiding the difficulty of real-time calculation and rendering, causing lag, and slow response of map data display. The large number of vector tiles of higher level are not pre-cut, so that the vector tiles of higher level are rendered in real time when the map data is displayed. Since the number of vector tiles of higher level is large but the rendering speed of a single vector tile is fast, the vector tiles of higher level are rendered in real time when the map data is displayed on the client, so as to avoid the need for the server to pre-render a large number of vector tiles and store them, thereby saving storage space and effectively improving the update speed of each tile and the update efficiency of map data.

[0065] Further, the pre-cut level is each tile level lower than or equal to the boundary level; the real-time conversion level is each tile level higher than the boundary level; and the boundary level is a preset tile level. Wherein, the boundary level can be set by the person skilled in the art based on actual needs, which is not specifically limited in the present embodiment.

[0066] Specifically, as mentioned above, when the boundary level is low, the number of tiles that need to be rendered into raster tiles for caching is less, and the updating speed is faster, but the number of tiles that need to be rendered in real time during the map display process is larger, and the response speed of the map data display decreases; when the boundary level is high, the number of tiles that need to be rendered in real time during the map display process is less, and the response speed of the map data display is faster, but the number of tiles that need to be rendered into raster tiles for caching during the updating process of the map data is larger, and the updating speed decreases; at the same time, the spatial range corresponding to the lower level tile is larger, and the request probability during the map display process is larger, so that the vector tile of this level is rendered in advance, and the raster tile is generated and cached, which is beneficial to improve the overall response speed during the map display process. Based on this, the person skilled in the art should set the boundary level based on the size of the actual spatial range of each geographical element currently updated, the current computer system pressure, and the request probability of each tile. Exemplarily, when the tiles of the tile level of 7 to 19 are updated during the updating process of the map data, the boundary level is 15, and based on this, the pre-cut level of each tile level is 7 to 15; the real-time conversion level of each tile level is 16 to 19.

[0067] Generally, before rendering the vector tile to generate the raster tile, the vector data needs to be cut and extracted based on the preset standard tile size, so that the generated raster tile has the preset standard tile size, wherein the preset standard tile size is the size preset for the corresponding tile level, that is, based on the actual geographical spatial range corresponding to each tile level in the tile pyramid, the corresponding standard tile size is obtained in combination with the preset scaling ratio. Exemplarily, the slicing standard of the wmts service (web map tile service) can be used to obtain the standard tile size corresponding to each tile level.

[0068] It should be noted that the vector tile contains notes for displaying text annotation information such as place names, road names, and position coordinates, and the raster tile generated after rendering also needs to display these notes in order to improve the readability of the map. However, when cutting and extracting the vector tile, due to the longer length of part of the notes, the notes may exceed the boundary range of the standard tile size, please refer to Figure 4 , the note "XX University (XX Campus)" at the rightmost side of the vector tile exceeds the boundary of the standard tile size, that is, the area displayed by the solid line, and based on the standard tile size, the vector tile cannot be cut and extracted to obtain the complete content of the note, thereby causing the rendered raster tile to display incomplete notes, and further causing the updated map data to have poor readability.

[0069] Based on this, as shown in Figure 5 , in some optional embodiments, in order to ensure the completeness of the notes of the raster tile, the raster tile is generated in the following manner:

[0070] S201, expand the cutting size of the vector tile to the complete cutting size of the annotation, and render the cut vector tile to generate an expanded intermediate raster tile.

[0071] The cutting size of the vector tile is used to represent the range size of cutting the extracted vector tile, so as to obtain a raster tile by rendering the cut vector tile. Generally, the cutting size of the vector tile is usually based on the standard tile size corresponding to the tile level. In this embodiment, in order to ensure the integrity of the annotation, the cutting size of the vector tile is expanded to the complete cutting size of the annotation.

[0072] The complete cutting size of the annotation is used to represent the minimum size of the complete display of each annotation in the cut vector tile. Optionally, the complete cutting size of the annotation is calculated based on the maximum number of characters in a single line of the annotation and the maximum font size. The maximum number of characters in a single line is the maximum value of the number of characters that can be displayed in a single line of the annotation, and the maximum font size is the maximum value of the size of a single character that can be displayed.

[0073] Specifically, the complete cutting size of the annotation and the standard tile size are both represented as the size of a square region. The product of the maximum number of characters in a single line of the annotation and the maximum font size is taken as the maximum length of the annotation, and the sum of the side length of the standard tile size and the maximum length is taken as the side length of the complete cutting size of the annotation, so as to calculate and obtain the complete cutting size of the annotation.

[0074] Based on this, the vector tile is cut based on the complete cutting size of the annotation, and rendered into an intermediate raster tile, so that the obtained intermediate raster tile can display complete annotations.

[0075] S202, based on the standard tile size, the expanded intermediate raster tile is cropped to obtain a raster tile.

[0076] The expanded intermediate raster tile containing complete annotations is cropped back to the corresponding standard tile size to obtain a raster tile of the standard tile size. It should be noted that in the process of cropping the intermediate raster tile, the annotations at the edge position will be cropped, and when the map data is displayed, the complete annotation content is formed with the adjacent raster tile, thereby improving the readability of the map.

[0077] Further, in order to facilitate those skilled in the art to understand the raster tile generation method described in this embodiment, the following will be illustrated by examples.

[0078] As Figure 6The range shown by the dashed line is the range of the full-cut annotation size, and the range shown by the solid line is the range of the standard tile size. Specifically, for the left tile, the vector tile is extracted based on the range shown by the blue dashed line to render a left middle raster tile of the full-cut annotation size, and the left middle raster tile of the full-cut annotation size is re-clipped back to the standard tile size based on the range shown by the blue solid line to obtain a left raster tile. For the right tile, the vector tile is extracted based on the range shown by the yellow dashed line to render a right middle raster tile of the full-cut annotation size, and the right middle raster tile of the full-cut annotation size is re-clipped back to the standard tile size based on the range shown by the yellow solid line to obtain a right raster tile. It should be noted that for the annotation "XX University (XX Campus)", the annotation crosses the boundary between the left raster tile and the right raster tile. When the vector tile is extracted based on the range shown by the blue dashed line, the data corresponding to the annotation can be extracted, i.e. Figure 6 the data identified by the red position icon in the middle, so that the raster tile obtained by the rendering conversion contains the annotation, and thus the left raster tile obtained after clipping displays the content "X" in the annotation. Meanwhile, when the vector tile is extracted based on the range shown by the yellow dashed line, the data corresponding to the annotation can also be extracted, i.e. Figure 6 the data identified by the red position icon in the middle, so that the raster tile obtained by the rendering conversion also contains the annotation, and thus the right raster tile obtained after clipping displays the content "X University (XX Campus)" in the annotation. Based on this, when the map is displayed, the left raster tile and the right raster tile can be spliced to form a complete annotation. Similarly, for other annotations, based on the above method, complete display can also be achieved.

[0079] Based on this, by using the above raster tile generation method, the incomplete display of annotations can be avoided, and the readability of map data can be improved.

[0080] It should be noted that for the vector tiles of the pre-cut level, the raster tiles are generated based on the above raster tile generation method and cached during the updating process. For the vector tiles of the real-time conversion level, the raster tiles are generated based on the above raster tile generation method in real time during the display of the map data and returned to the client, so that when the client displays the map data, the raster tiles of each level can achieve complete display of the annotations.

[0081] In summary, the embodiment divides the vector tiles into pre-cut level vector tiles and real-time conversion level vector tiles based on tile levels, renders the pre-cut level vector tiles into raster tiles for caching, and deletes corresponding initial tiles in the initial map data based on the real-time conversion level vector tiles, so as to obtain corresponding vector tiles and render them into raster tiles in real time when the map data is displayed, thereby avoiding congestion caused by excessive calculation amount or storage resource occupation, ensuring the response speed when the map is displayed, and effectively improving the update efficiency of the map data.

[0082] As shown in Figure 7 The grid tile online updating device provided by the embodiment includes an information obtaining module 41 and a tile adjusting module 42.

[0083] The information obtaining module 41 is configured to obtain tile information based on each geographical element to be updated.

[0084] The tile adjusting module 42 is configured to obtain each corresponding vector tile based on the tile information, and adjust each corresponding initial tile in the initial map data based on each vector tile and by using a preset tile modification strategy, so as to obtain updated map data.

[0085] Based on the same technical concept, the grid tile online updating method provided by the embodiment can be implemented on the terminal side.

[0086] As shown in Figure 8 An optional hardware structure schematic diagram of a terminal provided by the embodiment is shown in the figure. The terminal 50 can be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory background processing device, etc. The terminal 50 includes at least one processor 51, a memory 52, at least one network interface 54 and a user interface 53. Each component in the device is coupled together through a bus system 55. It can be understood that the bus system 55 is used to realize the connection and communication between the components. In addition to a data bus, the bus system 55 also includes a power bus, a control bus and a status signal bus.

[0087] The user interface 53 can include a display, a keyboard, a mouse, a trackball, a click gun, a key, a button, a touchpad or a touch screen, etc.

[0088] It is to be understood that the memory 52 can be volatile or nonvolatile memory, or both. The nonvolatile memory can be read-only memory (ROM), programmable ROM (PROM), which is used as an external cache. By way of example, but not limitation, many forms of RAM can be used, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory characterized by embodiments of the present application is intended to include, but not be limited to, these and any other suitable category of memory.

[0089] The memory 52 in embodiments of the present application is used to store various categories of data to support the operation of the terminal. Examples of these data include: any executable program used to operate on the terminal 50, such as an operating system 521 and an application program 522; the operating system 521 contains various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 522 can contain various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. Implementing the online update method of the grid tile provided by embodiments of the present application can be included in the application program 522.

[0090] The method disclosed by the above embodiments of the present application can be applied in the processor 51 or implemented by the processor 51. The processor 51 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 51 or the instruction in the form of software. The above processor can be a general processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 51 can implement or execute the disclosed methods, steps and logic block diagrams in embodiments of the present application. The processor 51 can be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided by embodiments of the present application, the above-mentioned method can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a storage medium, which is located in the memory, and the processor reads the information in the memory to complete the steps of the above-mentioned method in combination with the hardware thereof.

[0091] In the example embodiment, the terminal 50 can be implemented by one or more of an application specific integrated circuit (ASIC), a DSP, a programmable logic device (PLD), a complex programmable logic device (CPLD), and the like, for executing the aforementioned method.

[0092] The embodiment of the present application further provides a computer readable storage medium, which has a computer program stored thereon, and the program is called by a processor to implement the grid tile online updating method provided by the present application.

[0093] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, and a mechanical encoding device.

[0094] The computer readable program as characterized herein can be downloaded from the computer readable storage medium to each computing / processing device, or downloaded to an external computer or an external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions to the computer readable storage medium for storage in each computing / processing device.

[0095] To sum up, the present application avoids the server from rendering and storing a large number of vector tiles when updating, by rendering the pre-cut level vector tiles into raster tiles for caching and converting the real-time conversion level vector tiles for caching, thereby reducing the computing amount and storage resource occupation of the server, which is conducive to improving the updating speed of the map data and avoiding the inaccuracy caused by the delay of the map data updating.

[0096] The description of the flow or structure corresponding to each of the above-mentioned figures has its own emphasis, and the part not described in detail in a certain flow or structure can be referred to the related description of other flows or structures.

[0097] The above embodiments are only illustrative of the principles of the present application and its effects, and are not intended to limit the present application. Any modification or change made by any person skilled in the art without departing from the spirit and scope of the present application shall be covered by the claims of the present application.

Claims

1. A grid tile online updating method, comprising: obtaining tile information based on each geographical element to be updated; obtaining corresponding vector tiles based on the tile information, and adjusting corresponding initial tiles in initial map data based on each vector tile by using a preset tile modification strategy to obtain updated map data; wherein the tile modification strategy comprises: for each pre-cut level of the vector tile, generating corresponding each grid tile and replacing the corresponding each initial tile in the initial map data to cache; for each real-time conversion level of the vector tile, deleting the corresponding each initial tile in the initial map data, and when the client displays the map data, the server requests the corresponding vector tile from the local database or the cloud database to obtain the corresponding vector tile and perform real-time rendering into a grid tile and then return to the client; the generation mode of the grid tile comprises: extending the cutting size of the vector tile to a complete cutting size of an annotation, and rendering the vector tile obtained by cutting to generate an extended intermediate grid tile; based on a standard tile size, the extended intermediate grid tile is cropped to obtain the grid tile of the standard tile size.

2. The method of claim 1, wherein, The tile information is obtained based on each geographical element to be updated, comprising: for each geographical element, the identification information of all corresponding vector tiles within its spatial range is obtained respectively; based on the identification information of each vector tile, the vector tiles are de-duplicated, and the identification information of each de-duplicated vector tile is taken as the tile information.

3. The method of claim 2, wherein, The identification information includes row and column numbers and tile levels.

4. The method of claim 3, wherein, Based on the identification information of each vector tile, the vector tiles are de-duplicated by obtaining the row and column numbers corresponding to each vector tile, comparing all row and column numbers and de-duplicating.

5. The method of claim 1, wherein, The pre-cut level is each tile level lower than or equal to a preset boundary level; the real-time conversion level is each tile level higher than the preset boundary level.

6. The method of claim 1, wherein, The complete cutting size of the annotation is obtained based on the maximum number of single-line characters and the maximum font size of the annotation.

7. A grid tile online updating apparatus, characterized by comprising: An information obtaining module and a tile adjusting module; The information obtaining module is configured to obtain tile information based on each geographical element to be updated; The tile adjusting module is configured to obtain corresponding vector tiles based on the tile information, and adjust corresponding initial tiles in initial map data based on each vector tile by using a preset tile modification strategy to obtain updated map data; wherein the tile modification strategy comprises: for each pre-cut level of the vector tile, generating corresponding each grid tile and replacing the corresponding each initial tile in the initial map data to cache; for each real-time conversion level of the vector tile, deleting the corresponding each initial tile in the initial map data, and when the client displays the map data, the server requests the corresponding vector tile from the local database or the cloud database to obtain the corresponding vector tile and perform real-time rendering into a grid tile and then return to the client; the generation mode of the grid tile comprises: The cutting size of the vector tile is expanded to a complete cutting size of the annotation, and the vector tile obtained by cutting is rendered to generate an expanded intermediate raster tile; The expanded intermediate raster tile is cropped based on a standard tile size to obtain the raster tile of the standard tile size.

8. A terminal, characterized by comprising: Comprise: A processor and a memory in communication connection with the processor; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to enable the terminal to execute the raster tile online updating method in any one of claims 1-6.

9. A computer storage medium storing a computer program, the computer program comprising instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 8. The computer program is executed by the processor to implement the raster tile online updating method in any one of claims 1-6.

Citation Information

Patent Citations

  • Refined efficient dynamic tile map service publishing method, medium and electronic equipment

    CN114297206A

  • Dynamic updating method of vector tile, terminal and medium

    CN116595025A