A method and system for generating map tiles based on a large amount of InSAR deformation monitoring data

By requesting the Url address based on the user-side map tiles to obtain information and generate corresponding types of map tiles, the balance between the display effect and speed of InSAR deformation monitoring data on the browser is solved, realizing the timing changes of grid data in real time, and improving visual fluency and efficiency.

CN120144887BActive Publication Date: 2025-07-11YUNNAN PROVINCIAL GEOLOGICAL ENVIRONMENT MONITORING INST (YUNNAN PROVINCIAL INST OF ENVIRONMENTAL GEOLOGY)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510632596.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-07-11
Estimated Expiration
2045-05-16

AI Technical Summary

Technical Problem

The existing visualization method of InSAR deformation monitoring data on the browser side is difficult to balance the display effect and display speed, and it is impossible to instantly display the timing changes of grid data.

Method used

The map tile information is obtained through the user's map tile request Url address, calculate the map resolution of the instantiated tile pyramid object, determine the coordinates of the four corner points of the tile, and generate the corresponding type of map tile. The map level, row and column numbers and tile size are used to generate key values and cache them to redis, realizing the loading of static or vector tiles.

Benefits of technology

While accelerating access, it solves the problem of balance between display effect and speed, and can instantly display the timing changes of grid data, improving visual fluency and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144887B_ABST
    Figure CN120144887B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of InSAR deformation monitoring data processing, and discloses a method and system for generating map tiles based on massive InSAR deformation monitoring data. Map tile information is obtained through the map tile request Url address of the user terminal, and the map resolution of the instantiated tile pyramid object is calculated, so as to determine the coordinates of the four corner points of the tile and the InSAR deformation grid data corresponding to the map tile. Considering the scale required by the user, map tiles of corresponding types are generated. Finally, a key value is jointly generated with the map level, row and column numbers, and tile size and cached in redis, which can accelerate access and solve the problem that data changes cannot be displayed immediately, and solves the problems existing in the existing methods, such as it is difficult to achieve a balance between better display effect and faster display speed, and the characteristics of the temporal change of grid data cannot be displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of InSAR deformation monitoring data processing, and particularly to a method and system for generating map tiles based on massive InSAR deformation monitoring data. Background Art

[0002] The InSAR technology has been widely applied in the field of geological disaster monitoring due to its advantages such as large swath width and area observation. Especially in recent years, the prevention and control of geological disasters have received key attention from relevant government departments, leading to a research and application boom of the InSAR technology in the field of geological disaster monitoring in China. InSAR deformation monitoring data is grid data generated after the vectorization of InSAR image data.

[0003] Currently, the visualization method of InSAR deformation grid data on the browser side is usually as follows: (1) On the server side, pictures are drawn from the grid data using existing visualization methods. After the browser side obtains the pictures and performs deformation operations such as cropping and scaling, they are set into HTML elements such as for display. The defect of this method is that it is difficult to achieve a balance between the display effect and the display speed: when transmitting pictures with a low resolution, the deformation operation makes the pictures blurred and the display effect is poor; transmitting pictures with a high resolution will result in a large occupation of bandwidth resources, a long transmission time, and a slow display speed. (2) Dynamically obtain grid data according to the map visible range for map drawing and display. The defect of this method is that when there is a large amount of grid data, the server responds too much and the front-end interface loads too much grid data, resulting in poor visualization fluency performance. (3) Display grid data in the form of a static map service. The defect of this method is that the data change cannot be immediately shown after the time series change of the grid data. Regarding the above pain points, there is currently no unified solution in the industry. Application developers often need to develop by themselves according to the actual situation, with a large development difficulty and the visualization effect and speed cannot be guaranteed.

[0004] Therefore, how to solve the problems in the existing methods, such as the difficulty in achieving a better balance between the display effect and the display speed and the inability to show the characteristics of the time series change of grid data, is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] The present invention provides a method and system for generating map tiles based on massive InSAR deformation monitoring data, aiming to solve at least one of the above technical problems.

[0006] To achieve the above object, the present invention provides a method for generating map tiles based on massive InSAR deformation monitoring data, including:

[0007] S1: Obtain map tile information according to the map display interface information of the user end;

[0008] S2: Instantiate a tile pyramid object based on the map tile information;

[0009] S3: Calculate the coordinates of the four corner points of the tile using the map tile information and the map resolution of the instantiated tile pyramid object;

[0010] S4: Obtain the InSAR deformation grid data corresponding to the map tile based on the range of the four corner point coordinates;

[0011] S5: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate a static tile or a vector tile according to the map level and the quantity value;

[0012] S6: Cache the generated key value of the static tile or the vector tile into redis and return it to the client to realize loading in the map of the client.

[0013] Optionally, step S1: Obtain map tile information according to the map display interface information of the client, specifically including:

[0014] S11: Obtain the map level, row and column numbers, and tile size of the map tile where the map tile is located according to the generated map tile request Url address;

[0015] Among them, the generation method of the map tile request Url address is specifically: load the map tile layer in the Web map, and generate a tile request Url based on the tile pyramid of the map base map according to the map level and row and column numbers.

[0016] Optionally, step S2: Instantiate a tile pyramid object based on the map tile information, specifically including:

[0017] S21: First calculate the map resolution of map level 0, and determine the map resolution corresponding to map level z of the instantiated tile pyramid object according to the map resolution of map level 0;

[0018] Among them, the calculation method of the map resolution of map level 0 specifically includes:

[0019] Calculate the spatial resolutions in the x direction and y direction of map level 0 respectively, and take the minimum value of the two as the map resolution of map level 0.

[0020] Optionally, determining the map resolution corresponding to map level z of the instantiated tile pyramid object according to the map resolution of map level 0 specifically includes:

[0021] S211: Derive the map resolution corresponding to map level z step by step according to the map resolution of the said map level 0 and the resolution multiple relationship between two adjacent levels of maps obtained in advance.

[0022] Optionally, calculate the expressions for the spatial resolutions of map level 0 in the x direction and y direction, specifically as follows:

[0023] resolutionX = (maxx - minx) / tileSize;

[0024] resolutionY = (maxy - miny) / tileSize;

[0025] In the formula, minx represents the minimum x coordinate of the coordinates of the four corner points of the spatial coordinate system, maxx represents the maximum x coordinate of the coordinates of the four corner points of the spatial coordinate system, miny represents the minimum y coordinate of the coordinates of the four corner points of the spatial coordinate system, maxy represents the maximum y coordinate of the coordinates of the four corner points of the spatial coordinate system, and tileSize represents the size of the vector tile.

[0026] Optionally, step S5: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate a static tile or a vector tile according to the said map level and the said quantity value, specifically including:

[0027] S51: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and determine whether to generate a static tile or a vector tile for the obtained grid data through a predetermined rule;

[0028] Among them, the said predetermined rule is configured as follows: when the user's required scale is less than the preset scale, generate a static tile; when the user's required scale is greater than the preset scale, generate a vector tile; the preset scale is adjusted according to the server load and the tile generation requirements, and the adjustment logic is specifically as follows:

[0029] Obtain the map tile generation requirements sent by several user demand terminals, extract the map tile generation time period in the said map tile generation requirements, summarize all the map tile generation requirements, and count the number of map tiles to be generated in each unit adjustment time period in the entire map tile generation cycle;

[0030] Obtain the CPU usage rate allocation curve of the server for performing the map tile generation action in the entire map tile generation cycle, extract the upper limit value of the CPU usage rate of each unit adjustment time period from the said CPU usage rate allocation curve, and calculate the ratio K of the number of map tiles to be generated in each unit adjustment time period to the standard number of map tiles to be generated corresponding to the upper limit value of the CPU usage rate of each unit adjustment time period;

[0031] Use the product of the preset standard scale and the reciprocal of the ratio K as the preset scale for each unit adjustment period, and adjust to the corresponding preset scale in each unit adjustment period to select the generation of static tiles and vector tiles according to the preset scale and the user's required scale.

[0032] Optionally, the method for generating static tiles specifically includes: generating a png image by rendering grid data through a pre-specified symbol style.

[0033] Optionally, the method for generating vector tiles specifically includes: converting grid data into vector tiles based on the Google Protox Buffer specification and storing the data in a compressed manner.

[0034] Optionally, in step S6: cache the key value of the static tile or the vector tile into redis and return it to the client to realize loading in the map of the client, which specifically includes:

[0035] S61: Cache the key value of the static tile or the vector tile into redis based on the map level, row and column numbers, and tile size;

[0036] S62: Return the vector tile and the static tile to the client for loading in the map.

[0037] In addition, to achieve the above object, the present invention also provides a map tile generation system based on a large amount of InSAR deformation monitoring data, including:

[0038] A first acquisition module, configured to acquire map tile information according to the information of the map display interface of the client;

[0039] An instantiation module, configured to instantiate a tile pyramid object based on the map tile information;

[0040] A calculation module, configured to calculate the coordinates of the four corner points of the tile by using the map tile information and the map resolution of the instantiated tile pyramid object;

[0041] A second acquisition module, configured to acquire the InSAR deformation grid data corresponding to the map tile based on the range of the four corner point coordinates;

[0042] A generation module, configured to obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate static tiles or vector tiles according to the map level and the quantity value;

[0043] A loading module, configured to cache the key value of the static tile or the vector tile into redis and return it to the client to realize loading in the map of the client.

[0044] The beneficial effects of the present invention are as follows: A method and system for generating map tiles based on a large amount of InSAR deformation monitoring data are proposed. Map tile information is obtained through the map tile request Url address of the user terminal, and the map resolution of the instantiated tile pyramid object is calculated. Based on this, the coordinates of the four corner points of the tile and the InSAR deformation grid data corresponding to the map tile are determined. Considering the scale required by the user, corresponding types of map tiles are generated. Finally, a key value is jointly generated with the map level, row and column numbers, and tile size and cached in redis, which can accelerate access and solve the problem that data changes cannot be immediately displayed, and solve the problems existing in the existing methods, such as it is difficult to achieve a balance between better display effects and faster display speeds, and the characteristics of the time series changes of grid data cannot be displayed. Description of the Drawings

[0045] Figure 1 It is a schematic flowchart of a method for generating map tiles based on a large amount of InSAR deformation monitoring data;

[0046] Figure 2 It is a schematic diagram of static tile rendering;

[0047] Figure 3 It is a schematic diagram of vector tile rendering;

[0048] Figure 4 It is a schematic structural diagram of a system for generating map tiles based on a large amount of InSAR deformation monitoring data. Detailed Embodiments

[0049] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0050] An embodiment of the present invention provides a method for generating map tiles based on a large amount of InSAR deformation monitoring data. Referring to Figure 1 , Figure 1 It is a schematic flowchart of a method for generating map tiles based on a large amount of InSAR deformation monitoring data according to an embodiment of the present invention. A method for generating map tiles based on a large amount of InSAR deformation monitoring data includes the following steps:

[0051] A method for generating map tiles based on a large amount of InSAR deformation monitoring data includes:

[0052] S1: Obtain map tile information according to the map display interface information of the user terminal;

[0053] S2: Instantiate a tile pyramid object based on the map tile information;

[0054] S3: Calculate the coordinates of the four corner points of the tile using the map tile information and the map resolution of the instantiated tile pyramid object;

[0055] S4: Obtain the InSAR deformation grid data corresponding to the map tile based on the range of the four corner point coordinates;

[0056] S5: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate a static tile or a vector tile according to the map level and the quantity value;

[0057] S6: Cache the generated key value of the static tile or the vector tile into redis and return it to the client, so as to realize the loading in the map of the client.

[0058] It should be noted that the current visualization method of InSAR deformation grid data on the browser side is usually as follows: (1) On the server side, the grid data is used to draw a picture by using the existing visualization method. After the browser side obtains the picture and performs deformation operations such as cropping and scaling, it is set into HTML elements such as for display. The defect of this method is that it is difficult to achieve a balance between the display effect and the display speed: when transmitting pictures with a lower resolution, the deformation operation makes the pictures blurred and the display effect is poor; transmitting pictures with a higher resolution will result in a large occupation of bandwidth resources, a long transmission time, and a slow display speed. (2) Request and dynamically obtain grid data for map drawing and display according to the visible range of the map. The defect of this method is that when there is a large amount of grid data, the server responds too much and the front-end interface loads too much grid data, resulting in poor visualization fluency performance. (3) Display grid data in the form of a static map service. The defect of this method is that the data change cannot be immediately shown after the grid data changes over time. For the above pain points, there is currently no unified solution in the industry. Application developers often need to develop by themselves according to the actual situation, with a large development difficulty and the visualization effect and speed cannot be guaranteed.

[0059] In this embodiment, the map tile information is obtained through the Url address of the map tile request on the client side, and the map resolution of the instantiated tile pyramid object is calculated, so as to determine the coordinates of the four corner points of the tile and the InSAR deformation grid data corresponding to the map tile. Considering the scale of the user's demand, the corresponding type of map tile is generated. Finally, a key value is jointly generated with the map level, row and column numbers, and tile size and cached into redis, which can solve the problem that the data change cannot be immediately shown while accelerating the access, and solve the problems existing in the existing methods that it is difficult to achieve a better balance between the display effect and the display speed and the characteristics of the grid data time series change cannot be shown.

[0060] To more clearly explain the present invention, the following provides a specific example of the method for generating map tiles based on a large amount of InSAR deformation monitoring data of the present invention, which includes the following specific implementation steps:

[0061] Step 1: Obtain map tile information according to the map display interface information of the user end: Obtain the map level, row and column numbers, and tile size of the map tile according to the map tile request Url address.

[0062] Generation of the map tile request Url address: Load the map tile layer in the web map, and generate the tile request Url based on the tile pyramid of the map base map according to the map level and row and column numbers.

[0063] Step 2: Instantiate the TileInfo (tile pyramid) object: Instantiate the TileInfo (tile pyramid) object according to the map tile information obtained in Step 1.

[0064] Among them, first calculate the resolution of map level 0, and then determine the map resolution corresponding to map level z of the instantiated tile pyramid object (according to the map resolution of map level 0 and the pre-obtained resolution multiple relationship between adjacent two levels of maps, gradually deduce the map resolution corresponding to map level z). The calculation of the resolution of map level 0 is as follows: Solve the spatial resolution in the x direction and y direction respectively by the following formulas:

[0065] resolutionX = (maxx - minx) / tileSize;

[0066] resolutionY = (maxy - miny) / tileSize;

[0067] Take the minimum value of resolutionX and resolutionY as resolution.

[0068] In the formula, minx represents the minimum x coordinate of the coordinates of the four corner points of the spatial coordinate system. maxx represents the maximum x coordinate of the coordinates of the four corner points of the spatial coordinate system. miny represents the minimum y coordinate of the coordinates of the four corner points of the spatial coordinate system. maxy represents the maximum y coordinate of the coordinates of the four corner points of the spatial coordinate system. tileSize represents the vector tile size.

[0069] Step 3: Calculate the coordinates of the four corner points of the tile: Calculate the coordinates of the four corner points of a tile according to the map tile information obtained in Step 1 and the map resolution resolution corresponding to map level z of the TileInfo object in Step 2.

[0070] Step 4: Obtain the InSAR deformation grid data corresponding to the map tile based on the range of the four corner point coordinates.

[0071] Step 5: Obtain the map level and grid data quantity of the vector tile. Determine whether the obtained grid data is to generate static tiles or vector tiles through predetermined rules. Static tiles are generated when the grid data corresponding to the map tile is large at a conventional small scale. Vector tiles are generated at a large scale or when the grid data corresponding to the map tile is small to satisfy the need to view the associated attribute information of a single grid point. Generating static tiles is to generate png images after rendering the grid data in a specified symbol style; vector tiles are generated by generating vector tiles based on the Google Protox Buffer specification based on the grid data and compressing the data for storage.

[0072] Among them, in the process of determining whether to generate static tiles or vector tiles for the acquired grid data through predetermined rules, when the user demand scale is less than the preset scale, static tiles are generated; when the user demand scale is greater than the preset scale, vector tiles are generated; the preset scale will be adjusted according to the server load and tile generation requirements, and the adjustment logic is specifically as follows:

[0073] Obtaining map tile generation requirements sent by several user demand ends, extracting the map tile generation time period in the map tile generation requirements, summarizing all map tile generation requirements, and counting the number of map tile generation required for each unit adjustment time period in the entire map tile generation cycle;

[0074] Obtain a CPU usage allocation curve of the server for executing the map tile generation action during the entire map tile generation cycle, extract the CPU usage upper limit value of each unit adjustment period from the CPU usage allocation curve, and calculate the ratio K of the number of map tiles generated required for each unit adjustment period to the number of standard map tiles generated corresponding to the CPU usage upper limit value of each unit adjustment period;

[0075] The product of the preset standard scale and the inverse of the scale K is used as the preset scale for each unit adjustment period, and is adjusted to the corresponding preset scale in each unit adjustment period to generate and select static tiles and vector tiles based on the preset scale and the user required scale.

[0076] Therefore, by considering the server load and the different tile generation needs of users in different time periods, the preset scale of each unit adjustment period can be adjusted dynamically in real time, so that the server can ensure the user's map tile generation needs as much as possible while meeting the load management. By independently considering the server processing capacity of each unit adjustment period, the flexibility of selecting and adjusting the map tile generation method is improved.

[0077] It should be noted that the specific process of generating vector tiles includes: adding pre-set deformation rate interval segment coefficients and coefficient thresholds, matching the corresponding coefficients according to the deformation rates of grid data, obtaining the coefficients of each grid point under the requested tiles in this way, and thus obtaining the number of grid points exceeding the coefficient threshold. When the number of grid points exceeding the coefficient threshold reaches a certain value, grid points with repeated positions (being present simultaneously within a certain distance range means repeated positions) are removed and then vector tiles are generated. Among them, when the deformation of grid points is too large and the risk of disasters is relatively high, key attention needs to be paid to this, and at this time, vector points can be used for display.

[0078] Step Six: Generate a key value based on the map level, row and column numbers, and tile size of the vector tile and the static tile, and cache it in Redis to accelerate concurrent access and solve the problem that data changes cannot be immediately displayed by setting the Redis cache time.

[0079] Step Seven: Return the vector tile and the static tile to the front end for loading on the map. As Figure 2 and Figure 3 shown, they are respectively schematic diagrams of static tile rendering and vector tile rendering; among them, the deformation rate refers to the surface deformation speed, that is, the surface deformation amount per unit time, and the unit mm / a represents millimeters per year, which is used to describe the change degree of the surface deformation amount per year.

[0080] Referring to Figure 4 , Figure 4 is a schematic structural diagram of a map tile generation system based on a large amount of InSAR deformation monitoring data according to an embodiment of the present invention. The map tile generation system based on a large amount of InSAR deformation monitoring data includes:

[0081] In addition, in order to achieve the above object, the present invention also provides a map tile generation system based on a large amount of InSAR deformation monitoring data, including:

[0082] The first acquisition module 10 is used to acquire map tile information according to the map display interface information of the user terminal;

[0083] The instantiation module 20 is used to instantiate a tile pyramid object based on the map tile information;

[0084] The calculation module 30 is used to calculate the four corner coordinates of the tile by using the map tile information and the map resolution of the instantiated tile pyramid object;

[0085] The second acquisition module 40 is used to acquire the InSAR deformation grid data corresponding to the map tile based on the four corner coordinate ranges;

[0086] A generation module 50, configured to obtain the map level of the vector tiles and the quantity value of the InSAR deformation grid data, and generate static tiles or vector tiles according to the map level and the quantity value;

[0087] A loading module 60, configured to generate a key value for the static tiles or the vector tiles, cache the key value into redis, and return the key value to the client, so as to realize the loading in the map of the client.

[0088] For other embodiments or specific implementation manners of the map tile generation system based on a large amount of InSAR deformation monitoring data of the present invention, reference may be made to the above method embodiments, and details are not described herein again.

[0089] It can be understood that in the description of this specification, the descriptions with reference to the terms "one embodiment", "another embodiment", "other embodiments", or "the first embodiment to the Nth embodiment", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0090] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or system including the element.

[0091] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for generating map tiles based on a large amount of InSAR deformation monitoring data, characterized in that, Including: S1: Obtain map tile information according to the user - end map display interface information; S2: Instantiate a tile pyramid object based on the map tile information; S3: Calculate the four corner coordinates of the tile by using the map tile information and the map resolution of the instantiated tile pyramid object; S4: Obtain the InSAR deformation grid data corresponding to the map tile based on the four - corner coordinate range; S5: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate a static tile or a vector tile according to the map level and the quantity value; specifically including: S51: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and determine whether to generate a static tile or a vector tile for the obtained grid data through a predetermined rule; Among them, the predetermined rule is configured as: when the user - required scale is less than the preset scale, generate a static tile; when the user - required scale is greater than the preset scale, generate a vector tile; the preset scale is adjusted according to the server load and the tile generation requirement, and the adjustment logic is specifically: Obtain several map tile generation requirements sent by the user - required terminals, extract the map tile generation time period in the map tile generation requirements, summarize all the map tile generation requirements, and count the number of map tiles to be generated in each unit adjustment time period during the entire map tile generation cycle; Obtain the CPU usage rate distribution curve of the server for executing the map tile generation action during the entire map tile generation cycle, extract the upper limit value of the CPU usage rate in each unit adjustment time period from the CPU usage rate distribution curve, and calculate the ratio K of the number of map tiles to be generated in each unit adjustment time period to the standard number of map tiles generated corresponding to the upper limit value of the CPU usage rate in each unit adjustment time period; Take the product of the preset standard scale and the reciprocal of the ratio K as the preset scale for each unit adjustment time period, and adjust it to the corresponding preset scale in each unit adjustment time period to make a selection for generating static tiles and vector tiles according to the preset scale and the user - required scale; S6: Cache the key value of the static tile or the vector tile into redis and return it to the user - end to realize the loading in the user - end map.

2. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 1, wherein Step S1: Obtain map tile information according to the user - end map display interface information, specifically including: S11: Obtain the map level, row and column numbers, and tile size of the map tile where the map tile is located according to the generated map tile request Url address; Among them, the generation method of the map tile request Url address is specifically: load the map tile layer in the Web map, and generate a tile request Url based on the tile pyramid of the map base map according to the map level and row and column numbers.

3. The map tile generation method based on a large amount of InSAR deformation monitoring data according to claim 1, wherein Step S2: Instantiate a tile pyramid object based on the map tile information, specifically including: S21: First calculate the map resolution of map level 0, and determine the map resolution corresponding to map level z of the instantiated tile pyramid object according to the map resolution of map level 0; Among them, the calculation method of the map resolution of map level 0 specifically includes: Calculate the spatial resolution of map level 0 in the x - direction and y - direction respectively, and take the minimum value of the two as the map resolution of map level 0.

4. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 3, wherein According to the map resolution of map level 0, determine the map resolution corresponding to map level z of the instantiated tile pyramid object, specifically including: S211: According to the map resolution of map level 0 and the pre - obtained resolution multiple relationship between adjacent two - level maps, gradually deduce the map resolution corresponding to map level z.

5. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 3, wherein The expressions for calculating the spatial resolution of map level 0 in the x - direction and y - direction are specifically: resolutionX = (maxx - minx) / tileSize; resolutionY = (maxy - miny) / tileSize; In the formula, minx represents the minimum x - coordinate of the four corner point coordinates of the spatial coordinate system, maxx represents the maximum x - coordinate of the four corner point coordinates of the spatial coordinate system, miny represents the minimum y - coordinate of the four corner point coordinates of the spatial coordinate system, maxy represents the maximum y - coordinate of the four corner point coordinates of the spatial coordinate system, and tileSize represents the vector tile size.

6. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 1, wherein The method for generating static tiles specifically includes: generating a png image after rendering grid data through a pre - specified symbol style.

7. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 1, wherein The method for generating vector tiles specifically includes: converting grid data into vector tiles based on the Google Protox Buffer specification and performing data compression storage.

8. The method for generating map tiles based on a large amount of InSAR deformation monitoring data according to claim 1, wherein Step S6: Cache the generated static tiles or vector tiles with a key value into redis and return to the client to realize loading in the map of the client, specifically including: S61: Cache the static tiles or vector tiles with a key value generated based on the map level, row and column numbers, and tile size into redis; S62: Return the vector tiles and the static tiles to the client for loading in the map.

9. A map tile generation system based on a large amount of InSAR deformation monitoring data, characterized in that, Including: The first acquisition module is used to acquire map tile information according to the client map display interface information; The instantiation module is used to instantiate a tile pyramid object based on the map tile information; The calculation module is used to calculate the four corner point coordinates of the tile by using the map tile information and the map resolution of the instantiated tile pyramid object; The second acquisition module is used to acquire the InSAR deformation grid data corresponding to the map tile based on the four - corner point coordinate range; The generation module is used to obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and generate static tiles or vector tiles according to the map level and the quantity value; specifically including: Obtain the map level of the vector tile and the quantity value of the InSAR deformation grid data, and determine whether to generate static tiles or vector tiles for the obtained grid data through a predetermined rule; Among them, the predetermined rule is configured as: when the user - required scale is less than the preset scale, generate static tiles; when the user - required scale is greater than the preset scale, generate vector tiles; the preset scale is adjusted according to the server load and tile generation requirements, and the adjustment logic is specifically: Obtain the map tile generation requirements sent by several user demand sides, extract the map tile generation time periods in the map tile generation requirements, summarize all the map tile generation requirements, and count the number of map tiles to be generated in each unit adjustment time period during the entire map tile generation cycle; Obtain the CPU usage rate allocation curve used by the server to execute the map tile generation action during the entire map tile generation cycle, extract the upper limit value of the CPU usage rate for each unit adjustment time period from the CPU usage rate allocation curve, and calculate the ratio K of the number of map tiles to be generated in each unit adjustment time period to the standard number of map tiles generated corresponding to the upper limit value of the CPU usage rate for each unit adjustment time period; Take the product of the preset standard scale and the reciprocal of the ratio K as the preset scale for each unit adjustment time period, and adjust to the corresponding preset scale in each unit adjustment time period to make a generation selection between static tiles and vector tiles according to the preset scale and the user demand scale; A loading module, which is used to cache the static tile or the vector tile generation key value into redis and return it to the user side to achieve loading in the map on the user side.

Citation Information

Patent Citations

  • Method and device for generating vector tiles through vector element thinning

    CN117009607A