CN114595301A - Tile data acquisition method, device, equipment and storage medium - Google Patents

Tile data acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN114595301A
CN114595301A CN202210210334.6A CN202210210334A CN114595301A CN 114595301 A CN114595301 A CN 114595301A CN 202210210334 A CN202210210334 A CN 202210210334A CN 114595301 A CN114595301 A CN 114595301A
Authority
CN
China
Prior art keywords
data
tile data
target tile
cache
spatial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210210334.6A
Other languages
Chinese (zh)
Inventor
吴磊
张福庆
任应超
江雯倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Information Research Institute of CAS
Original Assignee
Aerospace Information Research Institute of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Information Research Institute of CAS filed Critical Aerospace Information Research Institute of CAS
Priority to CN202210210334.6A priority Critical patent/CN114595301A/en
Publication of CN114595301A publication Critical patent/CN114595301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a tile data obtaining method, a tile data obtaining device, tile data obtaining equipment and a storage medium, wherein the tile data obtaining method is applied to a cache server, the cache server comprises a first-level cache and a second-level cache, and the tile data obtaining method comprises the following steps: receiving a space data access request sent by a client; under the condition that the target tile data are not cached in the second-level cache and the target tile data are cached in the first-level cache, the target tile data are sent to the client side according to the fact that no business data exist in the geographic space range to which the target tile data belong; and rendering the business data on the basis of the target tile data when the business data exists in the geographic space range to which the target tile data belongs, and sending the rendered tile data to the client. According to the method, the space data can be quickly rendered and displayed across various clients by constructing a new method for quickly rendering and caching the cross-category space data, so that the user experience of the geospatial information comprehensive service is improved, and the user experience is greatly improved through timely data feedback.

Description

Tile data acquisition method, device, equipment and storage medium
Technical Field
The present application relates to the field of spatial information technologies, and in particular, to a tile data obtaining method, apparatus, device, and storage medium.
Background
Geospatial data is a mapping of spatial objects of the real geographic world in a virtual digital world, being a conceptual digital abstraction of real-world geographic entities. Geospatial data as a whole can be divided into two categories: basic framework class space data and business application class space data. The basic framework type spatial data is used for expressing basic composition elements of the real world, such as urban parts, place name data and the like, and mainly comes from surveying and mapping data products serving as national basis, and the data rarely change or slowly change in units of years; the business application type spatial data changes at any time according to the needs of an application scene, sometimes the two types of data need to be organized for unified modeling, and unified management, analysis and rendering are performed in a geographic spatial element mode with attribute information.
Currently, geographic information services have been advanced into many areas of national economy, and geospatial data has become an indispensable national information infrastructure. In recent years, the development of applications in smart cities and the like also promotes the development of geospatial information applications from specialization to scale, synthesis and systematization. The spatial data organization mode of the related technology organizes spatial objects with the same spatial scale and thematic attribute into a layer, and the layers are independent of each other. The traditional spatial data organization mode that different types of spatial data all use layers as basic units is clear in concept and convenient to organize, but internal association of spatial objects between levels and between topics is also split, and cross-scale and cross-category spatial data rendering display is difficult to carry out.
In the related technology, a multi-level geospatial data organization mode which takes a layer as a basic unit is usually used, organic association of spatial data between levels and topics is lacked, and the requirement of fast rendering of various types of geospatial data which cross levels and topics on various clients is difficult to meet, so that a new multi-level multi-topic fast rendering technology of spatial data needs to be developed, the traditional organization mode of spatial data isolation is broken through, the fast spatial data display of various types of spatial data which cross levels, cross topics and cross various clients is realized, the comprehensive application of spatial information is supported, and the network geographic information service performance is improved.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
in the related art, a spatial data rendering display mode with a layer as a basic unit lacks organic association of spatial data between static basic class spatial data and dynamic business class spatial data, and is difficult to meet requirements of cross-level and cross-class spatial data integration processing and quick display. Moreover, the existing tile mechanism for improving the data access performance is mainly used for caching rarely-changed basic framework type spatial data, cannot effectively process cross-level and dynamically-changed spatial data, and greatly influences user experience due to untimely data feedback.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
In order to solve the technical problem, the present application provides a tile data obtaining method, apparatus, device and storage medium.
The application provides a tile data obtaining method, wherein the space data dynamic rendering method is applied to a cache server, the cache server comprises a first-level cache and a second-level cache, and the obtaining method comprises the following steps:
receiving a space data access request sent by a client;
responding to the spatial data access request, and under the condition that target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, executing the following operations according to the existence condition of service data in the geographic spatial range to which the target tile data belongs:
when the business data does not exist in the geographic space range of the target tile data, the target tile data is sent to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
Optionally, the method further comprises:
and responding to the spatial data access request, and sending the target tile data to the client under the condition that the target tile data corresponding to the spatial data access request is cached in the secondary cache.
Optionally, the method further comprises:
under the condition that target tile data corresponding to the spatial data access request are not cached in the secondary cache and target tile data corresponding to the spatial data access request are not cached in the primary cache, generating the target tile data by utilizing data extracted from a database and corresponding to the spatial data access request;
caching the generated target tile data into the primary cache;
and sending the target tile data to the client under the condition that the business data does not exist in the geographic space range to which the target tile data belongs.
Optionally, the method further comprises:
under the condition that the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and caching the rendered tile data into a secondary cache;
and sending the rendered tile data to the client.
The application also provides an obtaining device of tile data, the obtaining device is applied to the cache server, the cache server includes first-level cache and second-level cache, the obtaining device includes:
the receiving unit is used for receiving a space data access request sent by a client;
a response unit, configured to, in response to the spatial data access request, perform, when target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, according to a presence of service data in a geographic space range to which the target tile data belongs, and according to a presence of service data in a geographic space range to which the target tile data belongs, the following operations:
when the business data does not exist in the geographic space range to which the target tile data belongs, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
Optionally, the obtaining apparatus further includes:
a tile data sending unit, configured to send, in response to the spatial data access request, 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.
Optionally, the obtaining means further comprises:
a data generating unit, configured to generate target tile data corresponding to the spatial data access request by using data extracted from a database and corresponding 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 not cached in the primary cache;
the first cache unit is used for caching the generated target tile data into the first-level cache;
a first sending unit, configured to send the target tile data to the client if the service data does not exist in the geographic space range to which the target tile data belongs.
Optionally, the obtaining apparatus further includes:
a second cache unit, configured to render, when the service data exists in the geographic space range to which the target tile data belongs, the service data based on the target tile data to obtain rendered tile data, and cache the rendered tile data in a secondary cache;
and the second sending unit is used for sending the rendered tile data to the client.
The present application further provides an electronic device, which includes: at least one processor, 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 by a bus system;
the processor is used for executing the steps of the tile data acquisition method by calling the program or the instruction stored in the memory.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned tile data obtaining method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the tile data acquisition method, the tile data acquisition device, the tile data acquisition equipment and the tile data storage medium, a new cross-category space data fast rendering and caching method is established, an access mode and a display mode of separation of traditional basic framework type space data and business application type space data are broken through, organic association and caching of different space data among levels are achieved, cross-level and dynamically-changed space data can be effectively processed, the space data can be quickly rendered and displayed across multiple clients, user experience of geographic space information comprehensive service is improved, and timely data feedback greatly improves user experience.
Drawings
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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a tile data obtaining method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another tile data obtaining method according to an embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for acquiring tile data according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a pyramid model of spatial tile data according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an apparatus for acquiring tile data according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The existing spatial data rendering display mode taking the image layer as a basic unit lacks organic association of spatial data between static basic class spatial data and dynamic business class spatial data, and is difficult to meet requirements of cross-level and cross-class spatial data integrated processing and rapid display. The existing tile mechanism for improving data access performance cannot effectively process cross-hierarchy and dynamically-changed spatial data, and is mainly used for caching rarely-changed basic framework type spatial data. Direct caching of such spatial data is not appropriate if the data that the user wishes to see needs to be dynamically updated in real time, without accepting any time delay in use. Therefore, the real-time dynamically changing service application class space data is generally separated from the cached tile data, and is respectively stored, respectively accessed and respectively displayed at the client. The access efficiency of the spatial data in the geographic information service application in the industry field determines the application interactivity, and if the access speed is too slow, the user experience can be greatly influenced by the data feedback which is not timely enough.
To this end, an embodiment of the present application provides a tile data obtaining method, where the tile data obtaining method is applied to a cache server, where the cache server includes a first-level cache and a second-level cache, fig. 1 is a schematic flow diagram of the method, and the method specifically includes the following steps:
s101, receiving a space data access request sent by a client.
S102, responding to a space data access request, under the condition that target tile data corresponding to the space data access request is not cached in a secondary cache and target tile data corresponding to the space data access request is cached in a primary cache, judging whether business data exist in a geographic space range to which the target tile data belong, and executing the step S103 when the business data do not exist in the geographic space range to which the target tile data belong; and when business data exist in the geographic space range to which the target tile data belongs, executing the step S104.
And S103, sending the target tile data to the client.
And S104, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
Alternatively, geospatial data requires sufficient bandwidth and data rendering capabilities for its storage and access due to its large data volume. The method comprises the steps of preprocessing geospatial data to be rendered at a server side, pre-dividing the geospatial data into small tile data, pre-rendering the tile data to obtain a pre-rendered picture, and displaying the geospatial data in a picture mode at a client side. Since the picture rendering of the geospatial data is a time-consuming calculation, the picture rendering is generally stored in a manner of preprocessing the tile data in a third party, for example, the first-level cache and the second-level cache may be: application server caching, global caching, distributed caching, client caching, and the like.
A cache is a temporary storage of data and computations, and accessing data from the cache may be faster and less expensive than accessing the original data or repeating computations. The cache mode has two modes, one mode is to store the result requested by the user in a position different from the original storage position or the temporary storage position, and the process of caching the data can avoid repeatedly executing the same database access operation, thereby saving the storage resource. The other use mode is to temporarily cache the time-consuming calculation result so as to avoid subsequent repeated calculation, save the calculation resource and improve the access speed. Two caching modes, namely caching for data storage access and caching for rendering calculation results, are realized at the same time.
According to the tile data acquisition method, a new cross-category space data fast rendering and caching method is established, so that an access mode and a display mode of separating traditional basic framework type space data and business application type space data are broken through, organic association and caching of different space data among levels are achieved, cross-level and dynamically-changed space data can be effectively processed, the space data can be quickly rendered and displayed across multiple clients, user experience of geographic space information comprehensive service is improved, and timely data feedback greatly improves user experience.
Optionally, the tile data obtaining method further includes:
and responding to the space data access request, and sending the target tile data to the client under the condition that the target tile data corresponding to the space data access request is cached in the secondary cache.
Referring to fig. 2, fig. 2 is a schematic flowchart of another tile data obtaining method according to an embodiment of the present application, including:
s201, under the condition 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 utilizing the data extracted from the database and corresponding to the spatial data access request.
S202, caching the generated target tile data into a first-level cache.
And S203, sending the target tile data to the client under the condition that the business data does not exist in the geographic space range to which the target tile data belongs.
Optionally, the tile data obtaining method further includes:
under the condition that the business data exist in the geographic space range to which the target tile data belong, rendering the business data on the basis of the target tile data to obtain rendered tile data, and caching the rendered tile data into a secondary cache;
and sending the rendered tile data to the client.
Referring to fig. 3, the present application further provides an obtaining apparatus for tile data, where the obtaining apparatus is applied to a cache server, and the cache server includes a first-level cache and a second-level cache, so as to implement geospatial service application-oriented spatial data integrated collaborative cache.
1) The tile data acquisition device realizes static management of basic framework class space data
The basic framework class space data refers to determined static data. For example, planning departments at all levels of cities, counties (regions) and towns can make space plans, for space data with definite relations and long change period, a primary cache system of basic space data tiles is constructed through first rendering, and the basic frame type space data is incorporated into a unified primary cache to realize the integrated organization and management of the basic tile data.
2) The tile data acquisition device realizes dynamic rendering and management of business application space data (namely business data)
The method is characterized in that the service application type space data are changeable and can be updated at any time, and different from the prior art, the service application type space data are subjected to secondary rendering on rendered basic tile data stored in a first-level cache, and the rendered tile data are stored in a second-level cache and serve as final cache data presented to a user terminal.
3) The tile data acquisition device realizes rapid dynamic rendering of cross-category spatial data
The method and the device require real-time association and dynamic response of the primary cache and the secondary cache, so that the purposes of realizing real-time and rapid rendering of spatial data and improving user experience are achieved. When a background service of a server side discovers that new business application class spatial data is updated, related tile data of a secondary cache needs to be invalidated in time, and meanwhile, new secondary tile data are produced based on a primary cache tile and old tile data which are invalidated in the secondary cache are replaced.
On the basis of static coding and dynamic association of cross-category spatial data, a multi-level multi-topic spatial data integrated organization frame is constructed, a spatial data resource discovery mechanism is established, target spatial data resources are positioned from the cross-category spatial data integrated organization frame, and comprehensive application of spatial data is supported.
Referring to fig. 4, a schematic diagram of a pyramid model structure of spatial tile data provided in the embodiment of the present application is shown, where in the spatial data in the embodiment of the present application, tiles are used as basic units, and basic framework class spatial data and business application class spatial data are incorporated into a framework of a unified tile data acquisition device based on a secondary tile cache to perform integrated storage and management. The multi-level tile data takes the geospatial coding character string as a key value to be uniformly organized and indexed in the cache.
The tile data acquisition device has uniform geospatial attributes including spatial projection, for example, the tile data in the cache adopts a national 2000 projection coordinate system, and the spatial scale is the scale or resolution of each level of tile. The method defaults that all spatial data are converted into the same spatial projection reference through data preprocessing. Therefore, all tile data can be rendered in a uniform manner.
The geographic coding mode of the tile data constructs the association relationship of the geospatial data among a plurality of levels. By backtracking the geocoding, the spatial objects corresponding to the same geospatial object on different hierarchical layers can be found, and the problems of integrated association and organization management of element-level cross-hierarchical spatial data are solved. The cross-category spatial data unified coding system realizes the organic association of two-level spatial objects of the basic framework type spatial data and the business application type spatial data, establishes a vertical and horizontal integrated spatial data cache architecture and lays a foundation for spatial data cooperative cache.
The method for accessing the space data by the user in the tile data acquisition device comprises the following steps:
step 1, receiving a spatial data access request instruction sent by a user, and determining geographical position information corresponding to spatial data according to the request;
step 2, determining a key value of the map tile data according to the geographical position information;
and 3, acquiring the target tile data from the secondary cache according to the key value, and updating the access times of the corresponding target tile data in the secondary cache in the latest time period. And if the target tile data exists, returning the target tile data to the requesting user, and ending the access. If the second-level cache does not have corresponding target tile data, executing the next step (step 4);
and 4, acquiring tile data pre-generated by the basic frame class space data from the primary cache according to the key value. According to the rendering result of the tile data obtained from the first-level cache:
step 4.1, if the pre-generated tile data does not exist in the first-level cache, executing the next step (step 5);
step 4.2, if the pre-generated tile data exists in the first-level cache:
step 4.2.1, if no business data exists in the geographic space range where the tile data belongs, directly returning the tile data to the requesting user, and ending the access;
and 4.2.2, if the tile data belongs to the geographic space range, rendering the service data on the basis of the tile data, then returning the rendered tile data serving as final tile data to a requesting user, storing the rendered tile data in a secondary cache, and finishing the access.
Step 5, extracting corresponding basic frame data from the database to generate target tile data, and then executing the following steps:
step 5.1, storing the generated target tile data into a first-level cache;
step 5.2, if no business data exists in the geographic space range to which the target tile data belong, directly returning the target tile data to the requesting user, and ending the access;
and 5.3, if the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data, storing the rendered tile data into a secondary cache, returning the rendered tile data to the requesting user, and finishing the access.
According to the embodiment of the application, the user access record for recording the tile data is used as the hot spot data of the tile data in the second-level cache, and the first-level cache performs tile data storage and cache elimination according to the hot spot data in the second-level cache on the principle of least recent use. The second-level cache adopts a cache elimination mechanism of random replacement.
Referring to fig. 5, a schematic structural diagram of an apparatus for acquiring tile data according to an embodiment of the present application is provided, where the system includes:
a receiving unit 51, configured to receive a spatial data access request sent by a client;
a response unit 52, configured to, in response to the spatial data access request, perform the following operations according to the existence of the service data in the geographic space range to which the target tile data belongs and according to the existence of the service data in the geographic space range to which the target tile data belongs, 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 cached in the primary cache:
when the business data does not exist in the geographic space range to which the target tile data belongs, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
Optionally, the tile data obtaining apparatus further includes:
and the tile data sending unit is used for responding to the space data access request, and sending the target tile data to the client under the condition that the target tile data corresponding to the space data access request is cached in the secondary cache.
Optionally, the tile data obtaining apparatus further includes:
the data generating unit is used for generating target tile data by utilizing the data extracted from the database and corresponding to the space data access request under the condition that the target tile data corresponding to the space data access request is not cached in the secondary cache and the target tile data corresponding to the space data access request is not cached in the primary cache;
the first cache unit is used for caching the generated target tile data into a first-level cache;
and the first sending unit is used for sending the target tile data to the client under the condition that no business data exists in the geographic space range to which the target tile data belongs.
In some embodiments, the tile data obtaining apparatus further includes:
the second cache unit is used for rendering the business data on the basis of the target tile data under the condition that the business data exists in the geographic space range to which the target tile data belongs to obtain the rendered tile data, and caching the rendered tile data into a second-level cache;
and the second sending unit is used for sending the rendered tile data to the client.
The basic frame type space data has a relatively stable determined relationship, and various basic frame type space data can be brought into a uniformly rendered space organization system through a first-level cache mechanism. According to the difference of the spatial data granularity and the geographic position, the basic framework type spatial data tiles are dynamically generated during the first access and are stored in a first-level cache. The capacity of the first-level cache is limited, and if necessary, the pre-rendering tile data in the rarely used first-level cache is evicted according to the least recently used principle according to the hot spot records recorded in the second-level cache.
Business application class spatial data is a special kind of data that is closely related to the specific business domain requirements. For example, there is a close correlation between certain thematic map layers in the building planning field, whereas they are no longer relevant in the forestry census field. Specific thematic business relationships need to be defined according to the requirements of the thematic business field. The service application space data and the service requirement change dynamically, so the data is not suitable for long-term static storage, and the common static cache mechanism is difficult to meet the real-time response requirement of the service.
In view of this, the embodiment of the present application well alleviates this contradiction by introducing a second-level cache mechanism: rendering preprocessing is carried out on static basic frame type space data, the processed generated tile data are placed in a first-level cache, and if no dynamic business application type data are overlapped, the tile data can be directly accessed from the first-level cache when a user requests; if the dynamic service application type space data exists, secondary rendering is carried out on the basis of the tile data of the first-level cache when a user requests, the generated new tile data superposed with the two types of space data is stored in a second-level cache, the second-level cache is responsible for tracking the effectiveness of the stored tile data in real time and recording access hot spots of the user, and when a notice for enabling the tile to be invalid is received, the invalid tile is expelled from the second-level cache. The second-level cache directly stores the tile space data in the memory in a hash table mode, and the cache capacity of the second-level cache depends on the size of the physical memory of the server.
The embodiment of the application realizes the organic association of the cross-category thematic data by a space data secondary cache method; the method solves the problems of rapid rendering and rapid access of cross-category spatial data through spatial data geocoding backtracking and spatial association rule constraint, realizes rapid client presentation of the cross-category spatial data, and improves the interaction experience of users. The method solves the problems that the spatial data are separately cached and accessed in the existing spatial data organization mode with the image layer as the basic unit, are mutually isolated and are difficult to perform multi-spatial data rapid synthesis rendering, has the capability of supporting the comprehensive application of spatial information such as smart cities, spatial big data analysis and the like, and is beneficial to promoting the deep application of the spatial information technology in various industries.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method embodiments, for example, including:
receiving a space data access request sent by a client;
responding to the spatial data access request, and under the condition that target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, executing the following operations according to the existence condition of service data in the geographic spatial range to which the target tile data belongs:
when the business data does not exist in the geographic space range to which the target tile data belongs, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
Fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present invention. The electronic device 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable connected communication between these components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 6022 includes various applications such as a media player (MediaPlayer), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including: receiving a space data access request sent by a client;
responding to the spatial data access request, and under the condition that target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, executing the following operations according to the existence condition of service data in the geographic spatial range to which the target tile data belongs:
when no business data exist in the geographic space range where the target tile data belong, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
The method disclosed by the above embodiments of the present invention may be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The processor 601 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. 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 method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions of the present application, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, apparatus or system embodiments, which are substantially similar to method embodiments, are described in relative ease, and reference may be made to some descriptions of method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A tile data obtaining method is applied to a cache server, wherein the cache server comprises a first-level cache and a second-level cache, and the obtaining method comprises the following steps:
receiving a space data access request sent by a client;
responding to the spatial data access request, and under the condition that target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, executing the following operations according to the existence condition of service data in the geographic spatial range to which the target tile data belongs:
when the business data does not exist in the geographic space range to which the target tile data belongs, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
2. The tile data obtaining method according to claim 1, further comprising:
and responding to the spatial data access request, and sending the target tile data to the client under the condition that the target tile data corresponding to the spatial data access request is cached in the secondary cache.
3. The tile data obtaining method according to claim 1, further comprising:
under the condition 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 utilizing the data extracted from the database and corresponding to the spatial data access request;
caching the generated target tile data into the primary cache;
and sending the target tile data to the client under the condition that the business data does not exist in the geographic space range to which the target tile data belongs.
4. The tile data obtaining method according to claim 3, further comprising:
under the condition that the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and caching the rendered tile data into a secondary cache;
and sending the rendered tile data to the client.
5. The tile data acquisition device is applied to a cache server, wherein the cache server comprises a first-level cache and a second-level cache, and the acquisition device comprises:
the receiving unit is used for receiving a space data access request sent by a client;
a response unit, configured to, in response to the spatial data access request, if target tile data corresponding to the spatial data access request is not cached in the secondary cache and target tile data corresponding to the spatial data access request is cached in the primary cache, perform the following operations according to a presence of service data in a geospatial range to which the target tile data belongs and according to a presence of service data in a geospatial range to which the target tile data belongs, where:
when the business data does not exist in the geographic space range to which the target tile data belongs, sending the target tile data to the client;
and when the business data exists in the geographic space range to which the target tile data belongs, rendering the business data on the basis of the target tile data to obtain rendered tile data, and sending the rendered tile data to the client.
6. The tile data obtaining apparatus according to claim 5, further comprising:
a tile data sending unit, configured to send, in response to the spatial data access request, 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.
7. The tile data obtaining apparatus according to claim 5, further comprising:
a data generating unit, configured to generate target tile data corresponding to the spatial data access request by using data extracted from a database and corresponding 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 not cached in the primary cache;
the first cache unit is used for caching the generated target tile data into the first-level cache;
a first sending unit, configured to send the target tile data to the client if the service data does not exist in the geographic space range to which the target tile data belongs.
8. The tile data obtaining apparatus according to claim 7, further comprising:
a second cache unit, configured to render, when the service data exists in the geographic space range to which the target tile data belongs, the service data based on the target tile data to obtain rendered tile data, and cache the rendered tile data in a secondary cache;
and the second sending unit is used for sending the rendered tile data to the client.
9. An electronic device, characterized in that the electronic device comprises: at least one processor, 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 by a bus system;
the processor is configured to execute the tile data obtaining method according to any one of claims 1 to 4 by calling a program or an instruction stored in the memory.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, implements the tile data obtaining method according to any one of claims 1 to 4.
CN202210210334.6A 2022-03-03 2022-03-03 Tile data acquisition method, device, equipment and storage medium Pending CN114595301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210210334.6A CN114595301A (en) 2022-03-03 2022-03-03 Tile data acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210210334.6A CN114595301A (en) 2022-03-03 2022-03-03 Tile data acquisition method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114595301A true CN114595301A (en) 2022-06-07

Family

ID=81815984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210210334.6A Pending CN114595301A (en) 2022-03-03 2022-03-03 Tile data acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114595301A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024098395A1 (en) * 2022-11-11 2024-05-16 杭州数梦工场科技有限公司 Vector tile management method and apparatus, and device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024098395A1 (en) * 2022-11-11 2024-05-16 杭州数梦工场科技有限公司 Vector tile management method and apparatus, and device and storage medium

Similar Documents

Publication Publication Date Title
CN100458787C (en) Method for forming and applying high speed Wcb electronic map based on space data base and SVG
CN110399441B (en) Mass point data aggregation rendering method, device, equipment and storage medium
Yang et al. Performance‐improving techniques in web‐based GIS
US8352480B2 (en) Methods, apparatuses and computer program products for converting a geographical database into a map tile database
Song et al. The role of mobile volunteered geographic information in urban management
CN102902745B (en) A kind of web service integration method of geographic information
CN110119266A (en) A kind of WebGIS applicating developing technology frame based on OpenLayers
US20120215817A1 (en) Cross-platform cloud-based map creation
Wang et al. Retrieving and indexing spatial data in the cloud computing environment
Das et al. Spatio-Fog: A green and timeliness-oriented fog computing model for geospatial query resolution
CN103744995A (en) Thematic map building method and mobile terminal applying same
CN104361025A (en) Method for fusing and integrating multi-source spatial data
CN101625690A (en) Method and device for sharing access of distributed and heterogeneous earth science data resource
CN114595301A (en) Tile data acquisition method, device, equipment and storage medium
Hijazi et al. 3DCITYDB4BIM: A system architecture for linking bim server and 3d citydb for bim-gis-integration
Akroyd Building a cross-sector digital twin
CN116737852A (en) Vector tile data-based vector drawing method and device and electronic equipment
Lai et al. Design and realization of the intangible cultural heritage information management system based on web map service
Costa et al. Strategy for extraction of foursquare’s social media geographic information through data mining
CN111552893A (en) Method, plug-in and system for realizing online loading of multi-source geographic information data in AutoCAD
Hu et al. Geospatial web service for remote sensing data visualization
Šuba Design and development of a system for vario-scale maps
Gao et al. Research on Natural Resources Spatio-Temporal Big Data Analysis Platform for High Performance Computing
Li et al. The Research and Implementation of Urban Pollution Sources Information Management System Based on ArcGIS Server Web ADF
Zhang et al. Improving geospatial query performance of an interoperable geographic situation‐awareness system for disaster response

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination