A method for loading large-scale maps using hybrid front-end and back-end caching

By employing a hybrid front-end and back-end caching approach, the performance issues of terminal devices when the Internet map engine processes large amounts of geographic information were resolved, achieving efficient data loading and display and adapting to the differences in computing power among different terminals.

CN118467663BActive Publication Date: 2026-11-17SHANDONG INSPUR DIGITAL BUSINESS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410734258.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2026-11-17
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

When existing internet map engines process large amounts of real-time, dynamically changing geographic information, front-end browsers and other terminal devices are prone to lag or excessively long waiting times, failing to effectively utilize the terminal's capacity.

Method used

A hybrid front-end and back-end caching approach is adopted to convert geographic information data into GBD files and split them into points, lines, and polygons. Through coordinate system transformation and positional relationship judgment, the data is cropped and formed into SVG vector graphics. The cache is managed using timestamps, and data calculation and display are performed only when needed by the terminal device.

Benefits of technology

It improves the efficiency and performance of map loading, solves the problem of different computing capabilities of different terminal devices, and enables efficient data display and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467663B_ABST
    Figure CN118467663B_ABST
Patent Text Reader

Abstract

This invention relates to the field of data analysis, processing, and rendering technology, and particularly to a method for loading large-volume maps using a hybrid front-end and back-end caching approach. This method involves splitting received geographic information data into point sets according to graphic attributes, obtaining the rectangular area information corresponding to the current screen of the front-end information display terminal, determining the positional relationship between the point set information and the rectangular area information corresponding to the current screen, selecting the original image corresponding to points with an inclusion or intersection relationship to form an SVG vector graphic, and recording a timestamp T2; then, selecting either the SVG vector graphic or historical output results for display on the front-end information display terminal. This hybrid front-end and back-end caching method for loading large-volume maps overcomes the performance limitations of traditional map interfaces that require full front-end processing of dynamic data, solves data processing problems caused by performance differences between different terminals, and ensures efficient use and analysis of the data seen by different user terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data analysis, processing, and rendering technology, and in particular to a method for loading large-scale maps using a hybrid front-end and back-end caching system. Background Technology

[0002] Currently, map output services, represented by internet map engines, mostly provide map and coordinate point, line, and polygon information to external users based on data interfaces. However, the data interfaces of internet maps have significant shortcomings.

[0003] For static data, the backend server can render it into images and then output it to the frontend. However, for real-time, dynamically changing data passed in through the interface, only the entire input data can be output to the frontend to render and display the corresponding vector data, completely disregarding the capacity and performance of frontend browsers and other devices. When the amount of custom data is too large, the frontend data receiving end (such as browsers, navigation terminals, etc.) will experience lag or excessively long waiting times. How to efficiently load and display large amounts of real-time changing latitude, longitude, point, line, and polygon data across different terminal scenarios is a challenging problem faced by GIS service providers and users.

[0004] Based on the above, this invention proposes a method for loading large-scale maps using a hybrid front-end and back-end caching approach. Summary of the Invention

[0005] To overcome the shortcomings of existing technologies, this invention provides a simple and efficient method for loading large-scale maps using a hybrid front-end and back-end caching system.

[0006] This invention is achieved through the following technical solution:

[0007] A method for loading large-scale maps using a hybrid front-end and back-end caching approach, characterized by the following steps:

[0008] Step S1: After receiving the geographic information data, convert the received geographic information data into a gbd file, split it into point sets according to the graphic attributes, record the timestamp T1, and then import it into the backend database.

[0009] Step S2: Obtain the map latitude and longitude span information corresponding to each screen resolution of the front-end information display terminal, and then obtain the rectangular surface (Polygon) information corresponding to the current screen of the front-end information display terminal.

[0010] Step S3: Transform the coordinate system of the rectangular polygon information corresponding to the current screen and split the polygon to obtain the reference latitude and longitude coordinate system, so that the rectangular polygon information corresponding to the current screen is in the same latitude and longitude coordinate system as the geographic information received in step S1.

[0011] Step S4: Using the latitude and longitude coordinates processed in step S3 as a reference, the geographic information data in the point set obtained in step S1 is traversed according to the KV (key-value) data structure, and latitude and longitude are compared at the same time to determine whether the positional relationship between the point set information and the rectangular surface (Polygon) information corresponding to the current screen is inclusive, intersecting, or separate.

[0012] Step S5: Select the original images corresponding to points whose positional relationship is inclusive or intersecting, and use them as the cropping result of the screen map range on the input data. Discard the results whose positional relationship is disjoint, and record the temporary results.

[0013] Step S6: Based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into an SVG vector graphic, and the timestamp T2 is recorded as the basis for subsequent judgment of whether there is data update;

[0014] Step S7: Output the SVG vector graphics to the front-end information display terminal. First, determine whether the local terminal has historical output results:

[0015] If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded.

[0016] If historical output results exist, check if the timestamp T2 is consistent:

[0017] If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result;

[0018] If the timestamp T2 is the same, then ignore the SVG vector graphics;

[0019] Step S8: The front-end information display terminal displays and processes data based on the returned results.

[0020] After receiving the data, repeat steps S1 to S8 until the commonly used map range and commonly used dynamic geographic data are cached locally. Subsequent calculations will only be performed on the new data.

[0021] In step S1, the gbd files are first classified according to their graphic attributes into three categories: points, lines, and polygons.

[0022] Then, the line (PolyLine) is split into a set of points where the starting and ending points do not coincide, and the polygon (Polygon) is split into a set of points where the starting and ending points coincide.

[0023] In step S2, the screen resolution and pixels of the front-end information display terminal are first obtained, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information.

[0024] Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds.

[0025] The information of the rectangle (Polygon) corresponding to the current screen is obtained based on the center point and the scaling level.

[0026] In step S7, when the map of the current information display terminal is zoomed or moved, the system first checks whether there is an SVG vector graphic as the output result.

[0027] If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, and the process jumps to step S1 for backend database calculation processing.

[0028] If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent:

[0029] If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay.

[0030] If the timestamp T1 is inconsistent, proceed to step S1 for backend database calculation and processing.

[0031] A large-scale map loading system with hybrid front-end and back-end caching, characterized in that it includes a geographic information splitting module, a coordinate system transformation module, a positional relationship judgment module, an SVG vector graphics module, and a front-end information display module;

[0032] After receiving geographic information data, the geographic information splitting module is responsible for converting the received geographic information data into a gbd file, splitting it into a set of points according to the graphic attributes, recording the timestamp T1, and then importing it into the backend database.

[0033] The coordinate system transformation module is responsible for obtaining the map latitude and longitude span information corresponding to each screen resolution of the front-end information display terminal, and then obtaining the rectangular polygon information corresponding to the current screen of the front-end information display terminal; transforming the coordinate system of the rectangular polygon information corresponding to the current screen and splitting the polygon to obtain the reference latitude and longitude coordinate system, so that the rectangular polygon information corresponding to the current screen is in the same latitude and longitude coordinate system as the received geographic information;

[0034] The positional relationship judgment module is responsible for using the reference latitude and longitude coordinate system as a reference, traversing the geographic information data in the point set obtained by the geographic information splitting module according to the KV (key value) data structure, and at the same time performing latitude and longitude comparison to determine whether the positional relationship between the point set information and the rectangular surface (Polygon) information corresponding to the current screen is inclusive, intersecting, or separate.

[0035] Determine the positional relationship between the set of points and the corresponding polygon on the current screen.

[0036] The SVG vector graphics module is responsible for selecting the original image corresponding to the points whose positional relationship is inclusive or intersecting, as the cropping result of the input data for the screen map range, discarding the results whose positional relationship is disjoint, and recording the temporary results; based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into SVG vector graphics, and the timestamp T2 is recorded, and the SVG vector graphics are output to the front-end information display terminal.

[0037] The front-end information display module is responsible for first determining whether the local terminal has historical output results:

[0038] If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded.

[0039] If historical output results exist, check if the timestamp T2 is consistent:

[0040] If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result;

[0041] If the timestamp T2 is the same, then ignore the SVG vector graphics;

[0042] The front-end information display terminal displays and processes data based on the returned results.

[0043] The geographic information splitting module first classifies the GBD files according to their graphic attributes, dividing them into three categories: points, lines, and polygons.

[0044] Then, the line (PolyLine) is split into a set of points where the starting and ending points do not coincide, and the polygon (Polygon) is split into a set of points where the starting and ending points coincide.

[0045] The coordinate system transformation module first obtains the screen resolution and pixels of the front-end information display terminal, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information;

[0046] Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds.

[0047] The information of the rectangle (Polygon) corresponding to the current screen is obtained based on the center point and the scaling level.

[0048] When the map on the front-end information display terminal is zoomed or moved, the front-end information display module first checks whether there is an SVG vector graphic as the output result.

[0049] If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, which is sent to the geographic information splitting module for backend database calculation processing;

[0050] If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent:

[0051] If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay.

[0052] If the timestamp T1 is inconsistent, it is sent to the geographic information splitting module for backend database calculation and processing.

[0053] A large-scale map loading device with hybrid front-end and back-end caching, characterized in that it includes a memory and a processor; the memory is used to store a computer program, and the processor is used to execute the computer program to implement the method steps described above.

[0054] A readable storage medium, characterized in that: a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, it implements the method steps described above.

[0055] The beneficial effects of this invention are: the large-scale map loading method with hybrid front-end and back-end caching breaks through the performance limitations of traditional map interfaces in processing all dynamic data on the front end, solves the data processing problem caused by performance differences between different terminals, and ensures efficient use and analysis of the data seen by different user terminals. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Appendix Figure 1 This is a schematic diagram illustrating the positional relationship between the point set information of this invention and the rectangular surface (Polygon) information corresponding to the current screen. Detailed Implementation

[0058] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions in the embodiments of this invention will be clearly and completely described below in conjunction with the embodiments of this invention. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0059] This method for loading large-scale maps using a hybrid front-end and back-end caching approach includes the following steps:

[0060] Step S1: After receiving the geographic information data, convert the received geographic information data into a gbd file, split it into point sets according to the graphic attributes, record the timestamp T1, and then import it into the backend database.

[0061] Step S2: Obtain the map latitude and longitude span information corresponding to each screen resolution of the front-end information display terminal, and then obtain the rectangular surface (Polygon) information corresponding to the current screen of the front-end information display terminal.

[0062] Step S3: Transform the coordinate system of the rectangular polygon information corresponding to the current screen and split the polygon to obtain the reference latitude and longitude coordinate system, so that the rectangular polygon information corresponding to the current screen is in the same latitude and longitude coordinate system as the geographic information received in step S1.

[0063] Step S4: Using the latitude and longitude coordinates processed in step S3 as a reference, the geographic information data in the point set obtained in step S1 is traversed according to the KV (key-value) data structure, and latitude and longitude are compared at the same time to determine whether the positional relationship between the point set information and the rectangular surface (Polygon) information corresponding to the current screen is inclusive, intersecting, or separate.

[0064] Appendix Figure 1 This is a schematic diagram showing how geographic feature data is segmented according to the map's extent. The border represents the visible area of ​​the map transmitted from the terminal.

[0065] Step S5: Select the original images corresponding to points whose positional relationship is inclusive or intersecting, and use them as the cropping result of the screen map range on the input data. Discard the results whose positional relationship is disjoint, and record the temporary results.

[0066] Step S6: Based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into an SVG vector graphic, and the timestamp T2 is recorded as the basis for subsequent judgment of whether there is data update;

[0067] Step S7: Output the SVG vector graphics to the front-end information display terminal. First, determine whether the local terminal has historical output results:

[0068] If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded.

[0069] If historical output results exist, check if the timestamp T2 is consistent:

[0070] If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result;

[0071] If the timestamp T2 is the same, then ignore the SVG vector graphics;

[0072] Step S8: The front-end information display terminal displays and processes data based on the returned results.

[0073] After receiving the data, repeat steps S1 to S8 until the commonly used map range and commonly used dynamic geographic data are cached locally. Subsequent calculations will only be performed on the new data.

[0074] In step S1, the gbd files are first classified according to their graphic attributes into three categories: points, lines, and polygons.

[0075] Then, the line (PolyLine) is split into a set of points where the starting and ending points do not coincide, and the polygon (Polygon) is split into a set of points where the starting and ending points coincide.

[0076] In step S2, the screen resolution and pixels of the front-end information display terminal are first obtained, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information.

[0077] Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds.

[0078] The information of the rectangle (Polygon) corresponding to the current screen is obtained based on the center point and the scaling level.

[0079] In step S7, when the map of the current information display terminal is zoomed or moved, the system first checks whether there is an SVG vector graphic as the output result.

[0080] If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, and the process jumps to step S1 for backend database calculation processing.

[0081] If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent:

[0082] If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay.

[0083] If the timestamp T1 is inconsistent, proceed to step S1 for backend database calculation and processing.

[0084] This large-scale map loading system with hybrid front-end and back-end caching includes a geographic information splitting module, a coordinate system transformation module, a location relationship judgment module, an SVG vector graphics module, and a front-end information display module.

[0085] After receiving geographic information data, the geographic information splitting module is responsible for converting the received geographic information data into a gbd file, splitting it into a set of points according to the graphic attributes, recording the timestamp T1, and then importing it into the backend database.

[0086] The coordinate system transformation module is responsible for obtaining the map latitude and longitude span information corresponding to each screen resolution of the front-end information display terminal, and then obtaining the rectangular polygon information corresponding to the current screen of the front-end information display terminal; transforming the coordinate system of the rectangular polygon information corresponding to the current screen and splitting the polygon to obtain the reference latitude and longitude coordinate system, so that the rectangular polygon information corresponding to the current screen is in the same latitude and longitude coordinate system as the received geographic information;

[0087] The positional relationship judgment module is responsible for using the reference latitude and longitude coordinate system as a reference, traversing the geographic information data in the point set obtained by the geographic information splitting module according to the KV (key value) data structure, and at the same time performing latitude and longitude comparison to determine whether the positional relationship between the point set information and the rectangular surface (Polygon) information corresponding to the current screen is inclusive, intersecting, or separate.

[0088] Determine the positional relationship between the set of points and the corresponding polygon on the current screen.

[0089] The SVG vector graphics module is responsible for selecting the original image corresponding to the points whose positional relationship is inclusive or intersecting, as the cropping result of the input data for the screen map range, discarding the results whose positional relationship is disjoint, and recording the temporary results; based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into SVG vector graphics, and the timestamp T2 is recorded, and the SVG vector graphics are output to the front-end information display terminal.

[0090] The front-end information display module is responsible for first determining whether the local terminal has historical output results:

[0091] If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded.

[0092] If historical output results exist, check if the timestamp T2 is consistent:

[0093] If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result;

[0094] If the timestamp T2 is the same, then ignore the SVG vector graphics;

[0095] The front-end information display terminal displays and processes data based on the returned results.

[0096] The geographic information splitting module first classifies the GBD files according to their graphic attributes, dividing them into three categories: points, lines, and polygons.

[0097] Then, the line (PolyLine) is split into a set of points where the starting and ending points do not coincide, and the polygon (Polygon) is split into a set of points where the starting and ending points coincide.

[0098] The coordinate system transformation module first obtains the screen resolution and pixels of the front-end information display terminal, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information;

[0099] Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds.

[0100] The information of the rectangle (Polygon) corresponding to the current screen is obtained based on the center point and the scaling level.

[0101] When the map on the front-end information display terminal is zoomed or moved, the front-end information display module first checks whether there is an SVG vector graphic as the output result.

[0102] If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, which is sent to the geographic information splitting module for backend database calculation processing;

[0103] If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent:

[0104] If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay.

[0105] If the timestamp T1 is inconsistent, it is sent to the geographic information splitting module for backend database calculation and processing.

[0106] This front-end and back-end hybrid caching big data map loading device includes a memory and a processor; the memory is used to store computer programs, and the processor is used to execute the computer programs to implement the method steps described above.

[0107] The readable storage medium stores a computer program that, when executed by a processor, implements the method steps described above.

[0108] Compared with existing technologies, this method for loading large amounts of map data using a hybrid front-end and back-end caching approach has the following characteristics:

[0109] First, the data is segmented according to the visible range, and the front-end and back-end are divided for processing. The processed data is then cached on the front-end and applied.

[0110] Second, it differs from the traditional Figure 1 All dynamically changing data is loaded at once. The dynamic data is then processed by backend segmentation according to the visible range and calculated multiple times. The results required within the current window range are returned after a small-scale calculation, while invalid and invisible data loaded outside the visible range is discarded.

[0111] Third, unlike traditional map interfaces where all data is passed to the front-end for rendering, a back-end-assisted rendering method is used to improve the speed of data display and processing. By acquiring terminal hardware and map information, the computing power required by the front-end is transmitted to the back-end for geographic information auxiliary calculation and caching. The back-end processes the map data on behalf of the front-end and returns it to each terminal. This can balance the gap between the computing power of the front-end and the back-end, thereby enabling different types of terminals to efficiently process large amounts of geographic information.

[0112] Fourth, unlike traditional map image caching methods, it caches map information in SVG vector form using range identifiers, timestamps, and data categories, and can dynamically update it. It solves the problem of rapidly loading large amounts of personalized, infrequently used geographic data by generating and caching dynamic map data on demand. It has a fast response speed and good adaptability to dynamic data. Users can access large amounts of real-time dynamic latitude and longitude data and display them with high-performance computing, regardless of whether the data is fixed or the operating terminal is different.

[0113] The embodiments described above are merely one specific implementation of the present invention. Ordinary changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for loading large-scale maps using a hybrid front-end and back-end caching approach, characterized in that: Includes the following steps: Step S1: After receiving the geographic information data, convert the received geographic information data into a gbd file, split it into point sets according to the graphic attributes, record the timestamp T1, and then import it into the backend database. Step S2: Obtain the map latitude and longitude span information corresponding to each screen resolution of the front-end information display terminal, and then obtain the rectangular surface information corresponding to the current screen of the front-end information display terminal. Step S3: Transform the coordinate system of the rectangular surface information corresponding to the current screen and split the surface to obtain the reference latitude and longitude coordinate system, so that the rectangular surface information corresponding to the current screen is in the same latitude and longitude coordinate system as the geographic information received in step S1. Step S4: Using the latitude and longitude coordinates processed in step S3 as a reference, the geographic information data in the point set obtained in step S1 is traversed according to the KV data structure, and latitude and longitude are compared to determine whether the positional relationship between the point set information and the rectangular surface information corresponding to the current screen is inclusive, intersecting, or separate. Step S5: Select the original images corresponding to points whose positional relationship is inclusive or intersecting, and use them as the cropping result of the screen map range on the input data. Discard the results whose positional relationship is disjoint, and record the temporary results. Step S6: Based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into an SVG vector graphic, and the timestamp T2 is recorded as the basis for subsequent judgment of whether there is data update; Step S7: Output the SVG vector graphics to the front-end information display terminal. First, determine whether the local terminal has historical output results: If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded. If historical output results exist, check if the timestamp T2 is consistent: If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result; If the timestamp T2 is the same, then ignore the SVG vector graphics; Step S8: The front-end information display terminal displays and processes data based on the returned results.

2. The method for loading large-scale maps using a hybrid front-end and back-end caching system according to claim 1, characterized in that: In step S1, the GBD files are first classified according to their graphic attributes into three categories: points, lines, and surfaces. Then, the line is split into a set of points whose starting and ending points do not coincide, and the surface is split into a set of points whose starting and ending points coincide.

3. The method for loading large-scale maps using hybrid front-end and back-end caching according to claim 1, characterized in that: In step S2, the screen resolution and pixels of the front-end information display terminal are first obtained, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information. Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds. Obtain the rectangular surface information corresponding to the current screen based on the center point and scaling level.

4. The method for loading large-scale maps using front-end and back-end hybrid caching according to claim 1, characterized in that: In step S7, when the map of the current information display terminal is zoomed or moved, the system first checks whether there is an SVG vector graphic as the output result. If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, and the process jumps to step S1 for backend database calculation processing. If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent: If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay. If the timestamp T1 is inconsistent, proceed to step S1 for backend database calculation and processing.

5. A large-scale map loading system with hybrid front-end and back-end caching, characterized in that: Includes a geographic information splitting module, The module includes a coordinate system transformation module, a positional relationship judgment module, an SVG vector graphics module, and a front-end information display module. After receiving geographic information data, the geographic information splitting module is responsible for converting the received geographic information data into a gbd file, splitting it into a set of points according to the graphic attributes, recording the timestamp T1, and then importing it into the backend database. The coordinate system transformation module is responsible for obtaining the map latitude and longitude span information represented by each screen resolution of the front-end information display terminal, and then obtaining the rectangular surface information corresponding to the current screen of the front-end information display terminal. The rectangular surface information corresponding to the current screen is transformed into a coordinate system and then split into surfaces to obtain a reference latitude and longitude coordinate system, so that the rectangular surface information corresponding to the current screen and the received geographic information are in the same latitude and longitude coordinate system. The positional relationship judgment module is responsible for using the reference latitude and longitude coordinate system as a reference, traversing the geographic information data in the point set obtained by the geographic information splitting module according to the KV data structure, and at the same time performing latitude and longitude comparison to determine whether the positional relationship between the point set information and the rectangular surface information corresponding to the current screen is inclusive, intersecting, or separate. Determine the positional relationship between the point set information and the rectangular surface information corresponding to the current screen; The SVG vector graphics module is responsible for selecting the original image corresponding to the points whose positional relationship is inclusive or intersecting, as the cropping result of the screen map range on the input data, discarding the results whose positional relationship is disjoint, and recording the temporary results; Based on the reference latitude and longitude coordinate system, the data used as the cropping result is formed into SVG vector graphics, and the timestamp T2 is recorded. The SVG vector graphics are then output to the front-end information display terminal. The front-end information display module is responsible for first determining whether the local terminal has historical output results: If there are no historical output results, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result, and the cache number will be recorded. If historical output results exist, check if the timestamp T2 is consistent: If the timestamp T2 is inconsistent, the SVG vector graphics will be overlaid onto the map layer of the current area as the output result; If the timestamp T2 is the same, then ignore the SVG vector graphics; The front-end information display terminal displays and processes data based on the returned results.

6. The large-scale map loading system with front-end and back-end hybrid caching according to claim 5, characterized in that: The geographic information splitting module first classifies the GBD files according to their graphic attributes, dividing them into three categories: points, lines, and polygons. Then, the line is split into a set of points whose starting and ending points do not coincide, and the surface is split into a set of points whose starting and ending points coincide.

7. The large-scale map loading system with front-end and back-end hybrid caching according to claim 5, characterized in that: The coordinate system transformation module first obtains the screen resolution and pixels of the front-end information display terminal, as well as the currently used map latitude and longitude coordinate system, map center point and zoom level information; Then the acquired information is sent to the backend database. Based on the screen resolution and pixel information of the frontend information display terminal, the map latitude and longitude corresponding to each screen resolution is obtained, that is, the distance and latitude and longitude in degrees, minutes and seconds. Obtain the rectangular surface information corresponding to the current screen based on the center point and scaling level.

8. The large-scale map loading system with front-end and back-end hybrid caching according to claim 5, characterized in that: When the map on the front-end information display terminal is zoomed or moved, the front-end information display module first checks whether there is an SVG vector graphic as the output result; If there is no SVG vector graphic as the output result, it is newly received or uncalculated data, which is sent to the geographic information splitting module for backend database calculation processing; If an SVG vector graphic exists as an output, then check if the timestamp T1 is consistent: If the timestamp T1 is consistent, it means that the historical data of the screen scaling range has been calculated in the backend database and cached in the frontend information display terminal. The corresponding cache number can be directly obtained for layer overlay. If the timestamp T1 is inconsistent, it is sent to the geographic information splitting module for backend database calculation and processing.

9. A large-scale map loading device with hybrid front-end and back-end caching, characterized in that: It includes a memory and a processor; the memory is used to store a computer program, and the processor is used to execute the computer program to implement the method as described in any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Embedded vector tile map data cache optimization method

    CN117131084A

  • Terminal system based on vector graphics playing and method for realizing same

    WO2013127312A1