Tile data acquisition method, device, equipment and storage medium

By using a combination of first-level cache and second-level cache in the cache server, combined with the judgment and rendering of business data within the geospatial range, the problem of cross-level and cross-themed rendering of spatial data in traditional technology is solved, and rapid rendering and display are achieved, improving user experience.

CN114595301BActive Publication Date: 2025-03-11AEROSPACE INFORMATION RES INST CAS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210210334.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2025-03-11
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

In the prior art, the traditional organization of geospatial data takes layers as the basic unit, resulting in a lack of correlation between spatial data between levels and topics, making it difficult to achieve rapid rendering and display across levels and topics. The tile mechanism is mainly used for the cache of basic framework data, and it is impossible to effectively process dynamically changing spatial data.

Method used

A cache server is adopted, including first-level cache and second-level cache. By receiving the client's spatial data access request, it determines whether there is business data within the geospatial range to which the target tile data belongs, and renders and caches it when necessary, and sends the rendered tile data to the client.

Benefits of technology

It realizes the organic association and cache of different spatial data at levels, can effectively process cross-level and dynamically changing spatial data, improves the ability to quickly render and display across clients, and improves the user experience of comprehensive geospatial information services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114595301B_ABST
    Figure CN114595301B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for obtaining tile data, which is applied to a cache server, and the cache server includes a first-level cache and a second-level cache. The method includes: receiving a spatial data access request sent by a client; when the target tile data is not cached in the second-level cache, and the target tile data is cached in the first-level cache, according to the absence of business data within the geographic space to which the target tile data belongs, sending the target tile data to the client; when business data exists within the geographic space to which the target tile data belongs, rendering the business data based on the target tile data, and sending the rendered tile data to the client. The present application constructs a new cross-category spatial data fast rendering and high-speed caching method, so that spatial data can be quickly rendered and displayed across multiple clients, improving the user experience of the comprehensive geographic spatial information service, and timely data feedback greatly improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of spatial information technology, and in particular to a method, device, equipment and storage medium for obtaining tile data. Background Art

[0002] Geospatial data is the mapping of spatial objects in the real geographic world in the virtual digital world. It is a conceptualized digital abstraction of geographic entities in the real world. Geospatial data can be divided into two categories: basic framework spatial data and business application spatial data. Basic framework spatial data is used to express the basic components of the real world, such as urban components, place name data, etc. It mainly comes from national basic surveying and mapping data products. This type of data rarely changes, or changes slowly in years; business application spatial data changes at any time according to the needs of the application scenario. Sometimes we need to organize these two types of data, conduct unified modeling, and uniformly manage, analyze and render them in the form of geospatial elements with attribute information.

[0003] At present, geographic information services have penetrated into many fields of the national economy, and geographic spatial data has become an indispensable national information infrastructure. In recent years, the development of applications such as smart cities has also promoted the development of geographic spatial information applications from specialization to scale, integration, and systematization. The spatial data organization method of related technologies organizes spatial objects with the same spatial scale and thematic attributes into a layer, and the layers are independent of each other. The traditional spatial data organization method in which different types of spatial data are based on layers as basic units has clear concepts and is easy to organize, but it also breaks the inherent connection between spatial objects between levels and between themes, making it difficult to render and display cross-scale and cross-category spatial data.

[0004] Related technologies usually use a multi-level geographic spatial data organization method with layers as basic units, lacking organic connections between spatial data levels and topics, and are difficult to meet the requirements of fast rendering of various types of geospatial data across levels and topics on various clients. Therefore, it is necessary to develop new multi-level and multi-topic spatial data fast rendering technologies to break the traditional isolated spatial data organization method, realize fast spatial data display of various types of spatial data across levels, topics, and multiple clients, support the comprehensive application of spatial information, and improve the performance of network geographic information services.

[0005] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0006] Related technologies use layers as the basic unit for spatial data rendering and display, lacking the organic connection between static basic spatial data and dynamic business spatial data, and are unable to meet the requirements of integrated processing and rapid display of cross-level and cross-category spatial data. In addition, the existing tile mechanism for improving data access performance is mainly used for caching basic framework spatial data that rarely changes, and cannot effectively process cross-level and dynamically changing spatial data. The untimely data feedback greatly affects the user experience.

[0007] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0008] In order to solve the above technical problems, the present application provides a method, device, equipment and storage medium for obtaining tile data.

[0009] The present application provides a method for obtaining tile data. The spatial data dynamic rendering method is applied to a cache server. The cache server includes a first-level cache and a second-level cache. The method for obtaining tile data includes the following steps:

[0010] Receive spatial data access requests sent by clients;

[0011] In response to the spatial data access request, if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, the following operations are performed according to the existence of business data within the geographic space to which the target tile data belongs:

[0012] When the service data does not exist within the geographical space to which the target tile data belongs, sending the target tile data to the client;

[0013] When the service data exists within the geographic space to which the target tile data belongs, the service data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is sent to the client.

[0014] Optionally, the method further comprises:

[0015] In response to the spatial data access request, if the target tile data corresponding to the spatial data access request is cached in the secondary cache, the target tile data is sent to the client.

[0016] Optionally, the method further comprises:

[0017] In the case that the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is not cached in the primary cache, generating the target tile data by using the data corresponding to the spatial data access request extracted from the database;

[0018] Cache the generated target tile data into the first-level cache;

[0019] When the service data does not exist within the geographical space to which the target tile data belongs, the target tile data is sent to the client.

[0020] Optionally, the method further comprises:

[0021] In the case where the business data exists within the geographic space to which the target tile data belongs, rendering the business data based on the target tile data to obtain rendered tile data, and caching the rendered tile data into a secondary cache;

[0022] The rendered tile data is sent to the client.

[0023] The present application also provides a device for obtaining tile data, the device for obtaining tile data is applied to a cache server, the cache server includes a first-level cache and a second-level cache, and the device for obtaining tile data includes:

[0024] A receiving unit, used for receiving a spatial data access request sent by a client;

[0025] A response unit, configured to respond to the spatial data access request, and if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, perform the following operations according to the existence of business data within the geographic space to which the target tile data belongs:

[0026] When the service data does not exist within the geographical space to which the target tile data belongs, sending the target tile data to the client;

[0027] When the service data exists within the geographic space to which the target tile data belongs, the service data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is sent to the client.

[0028] Optionally, the acquisition device further includes:

[0029] The tile data sending unit is configured to respond to the spatial data access request and, if the target tile data corresponding to the spatial data access request is cached in the secondary cache, send the target tile data to the client.

[0030] Optionally, the acquisition device further includes:

[0031] a data generating unit, configured to generate the target tile data by using data corresponding to the spatial data access request extracted from a database when the target tile data corresponding to the spatial data access request is not cached in the secondary cache and the target tile data corresponding to the spatial data access request is not cached in the primary cache;

[0032] A first cache unit, configured to cache the generated target tile data into the first-level cache;

[0033] The first sending unit is configured to send the target tile data to the client when the service data does not exist within the geographical space to which the target tile data belongs.

[0034] Optionally, the acquisition device further includes:

[0035] A second cache unit is used for rendering the service data based on the target tile data to obtain rendered tile data if the service data exists within the geographic space to which the target tile data belongs, and caching the rendered tile data into a secondary cache;

[0036] The second sending unit sends the rendered tile data to the client.

[0037] The present application also provides an electronic device, the electronic device comprising: at least one processor, a memory, at least one network interface and a user interface;

[0038] The at least one processor, memory, at least one network interface and user interface are coupled together via a bus system;

[0039] The processor is used to execute the steps of the above-mentioned tile data acquisition method by calling the program or instruction stored in the memory.

[0040] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for obtaining tile data are implemented.

[0041] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0042] The embodiments of the present application provide a method, device, equipment and storage medium for obtaining tile data. The method breaks the traditional access and display methods of separate basic framework spatial data and business application spatial data by constructing a new cross-category spatial data fast rendering and high-speed caching method, realizes the organic association and caching of different spatial data between levels, can effectively process cross-level and dynamically changing spatial data, and enables spatial data to be quickly rendered and displayed across multiple clients, thereby improving the user experience of comprehensive geographic spatial information services. Timely data feedback greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0045] Figure 1 A flowchart of a method for obtaining tile data provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of another method for obtaining tile data provided in an embodiment of the present application;

[0047] Figure 3 A structural block diagram of a device for acquiring tile data provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the pyramid model structure of spatial tile data provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of a device for acquiring tile data provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0052] The existing spatial data rendering and display method with layers as the basic unit lacks the organic connection between static basic spatial data and dynamic business spatial data, and it is difficult to meet the requirements of integrated processing and rapid display of cross-level and cross-category spatial data. The existing tile mechanism for improving data access performance cannot effectively handle cross-level and dynamically changing spatial data, and is mainly used for caching basic framework spatial data that rarely changes. If the data that users want to see needs to be updated in real time and dynamically, and no time delay is accepted when using it, it is not suitable to directly cache such spatial data. Therefore, real-time and dynamically changing business application spatial data is generally separated from the cached tile data, stored and accessed separately, and displayed separately on the client. In the field of geographic information business applications, the access efficiency of spatial data determines the interactivity of the application. Too slow access speed and insufficient timely data feedback will greatly affect the user experience.

[0053] To this end, an embodiment of the present application provides a method for obtaining tile data, the method for obtaining tile data is applied to a cache server, the cache server includes a first-level cache and a second-level cache, Figure 1 The flowchart of the method specifically includes the following steps:

[0054] S101. Receive a spatial data access request sent by a client.

[0055] S102. In response to a spatial data access request, if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, determine whether there is business data within the geographic space to which the target tile data belongs. When there is no business data within the geographic space to which the target tile data belongs, execute step S103; when there is business data within the geographic space to which the target tile data belongs, execute step S104.

[0056] S103: Send target tile data to the client.

[0057] S104: Render the business data based on the target tile data to obtain rendered tile data, and send the rendered tile data to the client.

[0058] Optionally, due to the large amount of geospatial data, its storage and access require sufficient bandwidth and data rendering capabilities. The geospatial data to be rendered is pre-processed on the server side, pre-divided into small tile data, and pre-rendered to obtain pre-rendered images. The client usually displays geospatial data in the form of images, which is a common way to access geospatial data. Since the image rendering of geospatial data is a relatively time-consuming calculation, it is generally pre-processed into tile data and stored in a third party. For example, the first-level cache and the second-level cache can be: application server cache, global cache, distributed cache and client cache, etc.

[0059] Cache is temporary storage for data and calculations. Accessing data from cache is faster and more economical than accessing the original data or repeating the calculation. There are two ways to cache. One is to store the results of user requests in a location different from the original storage location or temporary storage location. With the caching process, data access can avoid repeatedly executing the same database access operation, saving storage resources. Another way to use it is to temporarily cache time-consuming calculation results to avoid subsequent repeated calculations, saving computing resources and improving access speed. This paper implements two caching methods at the same time, namely, caching data storage access and caching rendering calculation results.

[0060] The tile data acquisition method provided in the present application breaks the traditional access and display methods of separate basic framework type spatial data and business application type spatial data by constructing a new cross-category spatial data fast rendering and high-speed caching method, realizes the organic association and caching of different spatial data between levels, can effectively process cross-level and dynamically changing spatial data, and enables spatial data to be quickly rendered and displayed across multiple clients, thereby improving the user experience of comprehensive geographic spatial information services. Timely data feedback greatly improves the user experience.

[0061] Optionally, the above-mentioned method for obtaining tile data further includes:

[0062] In response to the spatial data access request, if the target tile data corresponding to the spatial data access request is cached in the secondary cache, the target tile data is sent to the client.

[0063] See also Figure 2 , Figure 2 A flowchart of another method for obtaining tile data provided in an embodiment of the present application includes:

[0064] S201. When the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is not cached in the primary cache, the target tile data is generated using the data corresponding to the spatial data access request extracted from the database.

[0065] S202: Cache the generated target tile data into a first-level cache.

[0066] S203: When there is no business data within the geographic space to which the target tile data belongs, send the target tile data to the client.

[0067] Optionally, the above-mentioned method for obtaining tile data further includes:

[0068] If there is business data within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is cached in the secondary cache;

[0069] Send rendered tile data to the client.

[0070] See also Figure 3 The present application also provides a device for acquiring tile data, which is applied to a cache server, and the cache server includes a first-level cache and a second-level cache, so as to realize integrated collaborative caching of spatial data for geospatial business applications.

[0071] 1) The tile data acquisition device of the present application realizes the static management of basic framework spatial data

[0072] Basic framework spatial data refers to fixed static data. For example, planning departments at all levels of cities, counties (districts), and towns will formulate spatial plans. For such spatial data with clear relationships and long change cycles, a basic spatial data tile first-level cache system is constructed through the first rendering, and basic framework spatial data is incorporated into a unified first-level cache to achieve integrated organization and management of basic tile data.

[0073] 2) The tile data acquisition device of the present application realizes the dynamic rendering and management of business application spatial data (i.e. business data)

[0074] Business application spatial data is changeable and may be updated at any time. Unlike the prior art, in this application, such data will be re-rendered on the rendered basic tile data stored in the first-level cache. The rendered tile data is stored in the second-level cache as the final cache data presented to the user terminal.

[0075] 3) The tile data acquisition device of the present application realizes fast dynamic rendering of cross-category spatial data

[0076] This application requires real-time association and dynamic response between the first-level cache and the second-level cache, so as to achieve the purpose of real-time and fast rendering of spatial data and improve user experience. When the background service on the server side finds that there is a new business application spatial data update, it is necessary to invalidate the relevant tile data in the second-level cache in time, and at the same time generate new second-level tile data based on the first-level cache tiles and replace the old tile data that has been invalidated in the second-level cache. This step will be the key to improving the user's geographic spatial service experience, and can be performed in parallel in the tile data acquisition device.

[0077] Based on the static coding and dynamic association of cross-category spatial data, this application constructs a multi-level and multi-topic integrated spatial data organization framework, establishes a discovery mechanism for spatial data resources, realizes the positioning of target spatial data resources from the cross-category spatial data integration organization framework, and supports the comprehensive application of spatial data.

[0078] See also Figure 4 , is a schematic diagram of the pyramid model structure of the spatial tile data provided in the embodiment of the present application. The spatial data in the embodiment of the present application is based on tiles as the basic unit, and the basic framework type spatial data and the business application type spatial data are integrated into the framework of a unified tile data acquisition device based on the secondary tile cache for integrated storage and management. Multi-level tile data is uniformly organized and indexed in the cache using the geographic space encoding string as the key value.

[0079] The device for acquiring tile data has uniform geographic spatial attributes including spatial projection. For example, the tile data in the cache adopts the National 2000 projection coordinate system, and the spatial scale is the scale or resolution of each level of tiles. This application assumes that all spatial data has been converted to the same spatial projection benchmark after data preprocessing. Therefore, all tile data can be rendered and generated in a uniform manner.

[0080] The geocoding method of tile data builds the association relationship between geospatial data at multiple levels. By tracing back geocoding, the spatial objects corresponding to the same geospatial object on different layers can be found, solving the problem of integrated association and organizational management of spatial data across the feature level. The unified coding system for cross-category spatial data realizes the organic association of spatial objects at the two levels of basic framework spatial data and business application spatial data, and also establishes a vertical and horizontal integrated spatial data caching architecture, laying the foundation for collaborative caching of spatial data.

[0081] The steps for users to access spatial data in the tile data acquisition device provided by the present application are as follows:

[0082] Step 1. Receive a spatial data access request instruction sent by a user, and determine the geographical location information corresponding to the spatial data according to the request;

[0083] Step 2. Determine the key value of the map tile data based on the geographic location information;

[0084] Step 3. Get the target tile data from the secondary cache according to the key value, and update the number of accesses to the corresponding target tile data in the secondary cache in the most recent time period. If the target tile data exists, return the target tile data to the requesting user, and the access ends. If there is no corresponding target tile data in the secondary cache, proceed to the next step (step 4);

[0085] Step 4. Get the tile data pre-generated by the basic framework class space data from the first-level cache according to the key value. Rendering result based on the tile data obtained from the first-level cache:

[0086] Step 4.1. If the pre-generated tile data does not exist in the first-level cache, proceed to the next step (step 5);

[0087] Step 4.2. If there is pre-generated tile data in the first-level cache:

[0088] Step 4.2.1. If there is no business data within the geographic space to which the tile data belongs, the tile data is directly returned to the requesting user, and the access ends;

[0089] Step 4.2.2. If there is business data within the geographic space to which the tile data belongs, the business data is rendered based on this tile data, and then the rendered tile data is returned to the requesting user as the final tile data. At the same time, the rendered tile data is stored in the secondary cache, and this access ends.

[0090] Step 5. Extract the corresponding basic framework class data from the database, generate the target tile data, and then perform the following steps:

[0091] Step 5.1. Store the generated target tile data into the first-level cache;

[0092] Step 5.2. If there is no business data within the geographic space to which the target tile data belongs, the target tile data is directly returned to the requesting user, and the access ends;

[0093] Step 5.3. If there is business data within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data, and the rendered tile data is stored in the secondary cache. At the same time, the rendered tile data is returned to the requesting user, and the access ends.

[0094] In the embodiment of the present application, the user access records of tile data are recorded in the secondary cache as the hot data of tile data, and the primary cache will store tile data and perform cache elimination mechanism based on the hot data in the secondary cache according to the principle of least recent use. The secondary cache adopts a random replacement cache elimination mechanism.

[0095] See also Figure 5 , a schematic diagram of a structure of a device for acquiring tile data provided in an embodiment of the present application, the system comprising:

[0096] A receiving unit 51 is used to receive a spatial data access request sent by a client;

[0097] The response unit 52 is used to respond to the spatial data access request, and if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, perform the following operations according to the existence of business data within the geographic space to which the target tile data belongs:

[0098] When there is no business data within the geographic space to which the target tile data belongs, the target tile data is sent to the client;

[0099] When there is business data within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is sent to the client.

[0100] Optionally, the tile data acquisition device further includes:

[0101] The tile data sending unit is used to respond to the spatial data access request and send the target tile data to the client if the target tile data corresponding to the spatial data access request is cached in the secondary cache.

[0102] Optionally, the tile data acquisition device further includes:

[0103] A data generating unit, configured to generate the target tile data by using the data corresponding to the spatial data access request extracted from the database when the target tile data corresponding to the spatial data access request is not cached in the secondary cache and the target tile data corresponding to the spatial data access request is not cached in the primary cache;

[0104] A first cache unit, used to cache the generated target tile data into a first-level cache;

[0105] The first sending unit is used to send the target tile data to the client when there is no business data within the geographical space to which the target tile data belongs.

[0106] In some embodiments, the tile data acquisition device further includes:

[0107] The second cache unit is used for rendering the business data based on the target tile data to obtain rendered tile data when there is business data within the geographic space to which the target tile data belongs, and caching the rendered tile data into the secondary cache;

[0108] The second sending unit sends the rendered tile data to the client.

[0109] There is a relatively stable deterministic relationship among basic framework spatial data. Through the first-level cache mechanism, various basic framework spatial data can be incorporated into the unified rendering spatial organization system. According to the spatial data granularity and geographical location, the basic framework spatial data tiles will be dynamically generated when they are first accessed and saved in the first-level cache. The capacity of the first-level cache is limited. When necessary, the pre-rendered tile data in the first-level cache that is rarely used will be evicted according to the least recently used principle based on the hotspot records recorded in the second-level cache.

[0110] Business application spatial data is a special type of data that is closely related to specific business domain requirements. For example, some thematic layer data in the field of building planning are closely related, but in the field of forestry census, these thematic layers are no longer related. It is necessary to define specific thematic business relationships based on the needs of thematic business domains. Business application spatial data and business requirements change dynamically, so this type of data is not suitable for long-term static storage, and common static caching mechanisms can hardly meet the real-time response requirements of the business.

[0111] In view of this, the embodiment of the present application alleviates this contradiction well by introducing a secondary cache mechanism: static basic framework-class spatial data is first pre-processed for rendering, and the tile data generated after processing is placed in the primary cache. If there is no dynamic business application-class data superposition, the tile data can be directly accessed from the primary cache when the user requests it; if there is dynamic business application-class spatial data, secondary rendering is performed on the basis of the tile data in the primary cache when the user requests it, and the generated new tile data superimposed with two types of spatial data will be stored in the secondary cache. The secondary cache is responsible for real-time tracking of the validity of the saved tile data and recording the user's access hotspots at the same time. When a notification to invalidate the tile is received, the invalid tile will be expelled from the secondary cache. The secondary cache stores the tile spatial data directly in the memory in the form of a hash table, and its cache capacity depends on the size of the server's physical memory.

[0112] The embodiment of the present application realizes the organic association of cross-category thematic data through the spatial data secondary caching method; solves the problem of fast rendering and fast access of cross-category spatial data through the method of spatial data geocoding backtracking and spatial association rule constraints, realizes the fast client presentation of cross-category spatial data, and improves the user's interactive experience. It also solves the problem of separate caching and access of spatial data in the existing spatial data organization method with layers as the basic unit, which is isolated from each other and difficult to perform fast synthesis and rendering of multiple spatial data. It has the ability to support comprehensive applications of spatial information such as smart cities and spatial big data analysis, and is conducive to promoting the in-depth application of spatial information technology in all walks of life.

[0113] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of each method embodiment are implemented, for example, including:

[0114] Receive spatial data access requests sent by clients;

[0115] In response to a spatial data access request, if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, the following operations are performed according to the existence of business data within the geographic space to which the target tile data belongs:

[0116] When there is no business data within the geographic space to which the target tile data belongs, the target tile data is sent to the client;

[0117] When there is business data within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is sent to the client.

[0118] Figure 6 It is a schematic diagram of the structure of an electronic device provided by another embodiment of the present invention. Figure 6 The electronic device 600 shown includes: at least one processor 601, a memory 602, at least one network interface 604 and other user interfaces 603. The various components in the electronic device 600 are coupled together via a bus system 605. It is understood that the bus system 605 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 605 is not shown in FIG. Figure 6 Various buses are labeled as bus system 605 .

[0119] The user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0120] It can be understood that the memory 602 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 602 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0121] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 6021 and an application 6022 .

[0122] The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 6022.

[0123] In the embodiment of the present invention, by calling the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application 6022, the processor 601 is used to execute the method steps provided by each method embodiment, for example, including: receiving a spatial data access request sent by a client;

[0124] In response to a spatial data access request, if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, the following operations are performed according to the existence of business data within the geographic space to which the target tile data belongs:

[0125] When there is no business data within the geographic space to which the target tile data belongs, the target tile data is sent to the client;

[0126] When there is business data within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is sent to the client.

[0127] The method disclosed in the above embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0128] It is understood that the embodiments described herein can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application or a combination thereof.

[0129] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0130] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0131] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0132] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0133] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for obtaining tile data, characterized in that: The acquisition method is applied to a cache server, the cache server includes a first-level cache and a second-level cache, and the acquisition method includes the following steps: Receive spatial data access requests sent by clients; In response to the spatial data access request, if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, the following operations are performed according to the existence of business data within the geographic space to which the target tile data belongs: When the service data does not exist within the geographical space to which the target tile data belongs, sending the target tile data to the client; When the service data exists within the geographic space to which the target tile data belongs, rendering the service data based on the target tile data to obtain rendered tile data, and sending the rendered tile data to the client; In response to the spatial data access request, if the target tile data corresponding to the spatial data access request is cached in the secondary cache, sending the target tile data to the client; In the case that the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is not cached in the primary cache, the target tile data is generated using the data corresponding to the spatial data access request extracted from the database; the generated target tile data is cached in the primary cache; in the case that the business data does not exist within the geographic space to which the target tile data belongs, the target tile data is sent to the client; in the case that the business data exists within the geographic space to which the target tile data belongs, the business data is rendered based on the target tile data to obtain rendered tile data, and the rendered tile data is cached in the secondary cache, and the rendered tile data is sent to the client.

2. The method for obtaining tile data according to claim 1, characterized in that: Multi-level tile data is indexed in the cache using geospatial encoding strings as key values; By back-tracing geocoding, the spatial objects corresponding to the same geographic spatial object on different layers can be found.

3. The method for obtaining tile data according to claim 1, characterized in that: The spatial data has been converted to the same spatial projection reference after data preprocessing.

4. The method for obtaining tile data according to claim 1, characterized in that: Determine the geographical location information corresponding to the spatial data according to the spatial data access request sent by the user; Determine the key value of the map tile data according to the geographic location information; obtain the target tile data from the secondary cache according to the key value, and / or obtain the pre-generated tile data of the basic framework class spatial data from the primary cache according to the key value.

5. A device for acquiring tile data, characterized in that: The acquisition device is applied to a cache server, the cache server includes a first-level cache and a second-level cache, and the acquisition device includes: A receiving unit, used for receiving a spatial data access request sent by a client; A response unit, configured to respond to the spatial data access request, and if the target tile data corresponding to the spatial data access request is not cached in the secondary cache, and the target tile data corresponding to the spatial data access request is cached in the primary cache, perform the following operations according to the existence of business data within the geographic space to which the target tile data belongs: When the service data does not exist within the geographical space to which the target tile data belongs, sending the target tile data to the client; When the service data exists within the geographic space to which the target tile data belongs, rendering the service data based on the target tile data to obtain rendered tile data, and sending the rendered tile data to the client; a tile data sending unit, configured to respond to the spatial data access request and, if the target tile data corresponding to the spatial data access request is cached in the secondary cache, send the target tile data to the client; a data generating unit, configured to generate the target tile data by using data corresponding to the spatial data access request extracted from a database when the target tile data corresponding to the spatial data access request is not cached in the secondary cache and the target tile data corresponding to the spatial data access request is not cached in the primary cache; A first cache unit, configured to cache the generated target tile data into the first-level cache; A first sending unit, configured to send the target tile data to the client when the service data does not exist within the geographical space to which the target tile data belongs; A second cache unit is used for rendering the service data based on the target tile data to obtain rendered tile data if the service data exists within the geographic space to which the target tile data belongs, and caching the rendered tile data into a secondary cache; The second sending unit sends the rendered tile data to the client.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor, a memory, at least one network interface and a user interface; The at least one processor, memory, at least one network interface and user interface are coupled together via a bus system; The processor is used to execute the tile data acquisition method according to any one of claims 1 to 4 by calling the program or instruction stored in the memory.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for obtaining tile data according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Multisource tile map acquiring method and device

    CN105468691A

  • Unmanned aerial vehicle tile map rapid loading method, system and device and storage medium

    CN109977192A