A method, device, medium and equipment for real-time processing of GIS data query requests

Through multi-level caching and quadtree index technology, hierarchical caching and real-time updating of GIS data solve the problem of traditional GIS visualization technology's insufficient ability to process large amounts of data, achieve rapid response and dynamic updates, and reduce server and network pressure.

CN112948439BActive Publication Date: 2024-09-10CHINA TRANSINFO TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110245964.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-05
Publication Date
2024-09-10
Estimated Expiration
2041-03-05

AI Technical Summary

Technical Problem

Traditional GIS visualization technology has insufficient capabilities when processing large amounts of data, resulting in heavy pressure on servers and database networks, making it difficult to process massive data rendering in real time.

Method used

Multi-level caching and quad-tree index technology are used to separate massive vector data into dynamic data and static vector data. Through primary key ID association, quad-tree index is used for grid division to generate spatial index and structured vector tile data, hierarchical Cache and update rendering data in real time to achieve fast response and dynamic updates.

Benefits of technology

It achieves fast response and dynamic update of GIS data, reduces server and network pressure, and improves data query and rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112948439B
    Figure CN112948439B
Patent Text Reader

Abstract

The present disclosure provides a method, device, medium and equipment for real-time processing of GIS data query requests, wherein the method includes: obtaining a GIS data query request, wherein the query request includes map level and request range information; determining whether the query request exists in a data request cache database; if not, obtaining the corresponding static vector slice data in the slice data cache database according to the query request; obtaining the dynamic data corresponding to the static vector slice data according to the primary key ID; merging the static vector slice data with the dynamic data for rendering to obtain rendering data, associating the rendering data with the query request and storing it in a rendering data cache database; and displaying the rendering data to the request end of the data query. The present disclosure introduces a dynamic data rapid update mechanism implemented by multi-level caching technology and quadtree indexing technology, thereby realizing rapid query and dynamic update of data objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer computing technology, and more specifically, to a method, device, medium and equipment for real-time processing of GIS data query requests. Background Art

[0002] The basic idea of ​​quadtree index is to recursively divide geographic space into tree structures of different levels. It divides the space of known range into four equal subspaces, and recursively continues until the tree level reaches a certain depth or meets certain requirements. The structure of quadtree is relatively simple, and when the spatial data objects are evenly distributed, it has a relatively high efficiency of spatial data insertion and query. Therefore, quadtree is one of the commonly used spatial indexes in GIS.

[0003] Faced with the need for real-time rendering of massive data, traditional GIS visualization technology is difficult to process in real time, and the overall slicing costs are too high. A large amount of data needs to be analyzed in the dimensions of time and space, and traditional static GIS visualization technology is insufficient in processing dynamic real-time geographic elements. Traditional GIS visualization puts a lot of pressure on servers, databases and networks when analyzing large amounts of data. Summary of the invention

[0004] To solve the technical problems that the traditional GIS visualization of existing technology is insufficient in processing large amounts of data and puts great pressure on the server and database network.

[0005] To achieve the above technical objectives, the present disclosure provides a method for real-time processing of GIS data query requests, including:

[0006] Obtaining a GIS data query request, wherein the query request includes map level and request scope information;

[0007] Determine whether the query request exists in the data request cache database;

[0008] If not, obtaining the corresponding static vector slice data in the slice data cache database according to the query request;

[0009] According to the primary key ID, dynamic data corresponding to the static vector slice data is obtained;

[0010] Combining the static vector slice data with the dynamic data and rendering to obtain rendering data, associating the rendering data with the query request and storing the rendering data in a rendering data cache database;

[0011] The rendered data is displayed to the requesting end of the data query.

[0012] Furthermore, before obtaining the data query request, it also includes:

[0013] Data preprocessing, separating the massive vector data into dynamic data and static vector data, wherein the dynamic data and the static vector data are associated with each other through a primary key ID;

[0014] The static vector data is gridded by using a quadtree index to obtain a spatial index and structured vector slice data, and the spatial index and structured vector slice data are stored in a slice data cache database for caching.

[0015] Furthermore, the method further comprises:

[0016] The dynamic data is cached separately in the memory database, and the real-time changes of the dynamic data are monitored through the data update service.

[0017] When the dynamic data is updated, the rendering data in the rendering data cache database or the dynamic data in the rendering process is updated in real time.

[0018] Further, when the map level corresponding to the GIS data is level 12, the static vector data is gridded using quadtree indexing to obtain spatial index information and vector slice data:

[0019] Get the maximum and minimum data coordinates (x, y, z) of the static vector data at level 12 and generate a grid;

[0020] Associating the generated grid with the GIS data level to generate a corresponding first relationship table;

[0021] A second relational table corresponding to the data coordinates (x, y, z) of the GIS data at the 2nd to 11th levels and the data coordinates (x, y, z) of the 12th level is established by using a quadtree key;

[0022] Associating the first relationship table with the second relationship table to obtain a corresponding relationship between the data of the 2nd to 11th levels and the data of the 12th level;

[0023] Use the quadtree key to generate the coordinates (x, y, z) of the data in levels 2 to 11, and use all the GIS data in level 12 to generate vector tiles;

[0024] Among them, x, y, and z refer to the grid row number, column number, and map level number respectively.

[0025] Furthermore, the vector elements of the GIS data include: coordinates of the vector data, status information of the length of the vector data and / or the area of ​​the vector data, update time of the vector data and / or dynamic attributes of the status value of the vector data.

[0026] Further, acquiring corresponding static slice vector data in the slice data cache database according to the query request includes:

[0027] The map level and request range information in the query request are associated with the spatial index information in the slice data cache database to obtain the corresponding static slice vector data in the slice data cache database.

[0028] The data request cache database is loaded with a first cache algorithm for determining a cache time according to the frequency of query requests;

[0029] The rendering data cache database has a built-in second cache algorithm for determining the update cycle of dynamic data of the rendering data, the memory upper limit of the database, and the data elimination condition.

[0030] The present disclosure can also provide a device for real-time processing of GIS data query requests, comprising:

[0031] A data query request acquisition module is used to obtain GIS data query requests;

[0032] A data storage module, used for storing data in a hierarchical manner, including a data request cache database, a slice data cache database, and a rendering data cache database;

[0033] A determination module, used to determine whether the query request exists in the data request cache database;

[0034] A rendering module, configured to, when the query request does not exist in the data request cache database, obtain the corresponding static vector slice data in the slice data cache database according to the query request, obtain the dynamic data corresponding to the static vector slice data according to the primary key ID, merge the static vector slice data with the dynamic data for rendering, obtain the rendering data and cache it in the rendering data cache database;

[0035] A data display module is used to display the rendered data to the request end of the data query.

[0036] In order to achieve the above technical objectives, the present disclosure can also provide a computer storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, they are used to implement the steps of the above-mentioned method for real-time processing of GIS data query requests.

[0037] To achieve the above technical objectives, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned method for real-time processing of GIS data query requests are implemented.

[0038] The beneficial effects of the present disclosure are:

[0039] The present invention realizes rapid response of GIS data based on query request based on multi-level cache and quadtree index technology, including data positioning, data merging rendering and display. Specifically, data query request, static slice vector data, dynamic data and rendering data are cached in different databases in a hierarchical manner. When a data query request is received, it is first determined whether the query request exists in the corresponding data request cache database. If the query request exists, it is determined that the query request has been responded to, and the corresponding rendering data is directly searched from the rendering data cache database to respond to the data query request. If the query request does not exist, data rendering is started, and the corresponding static vector slice data in the slice data cache database is obtained according to the query request, and then the dynamic data corresponding to the static vector slice data is obtained according to the primary key ID, and the static vector slice data and the dynamic data are merged and rendered to obtain rendering data, and the rendering data is displayed to the request end of the data query, so as to realize rapid rendering and dynamic update of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram showing a process of an embodiment of the present disclosure is shown;

[0041] Figure 2 A schematic diagram showing a process of an embodiment of the present disclosure is shown;

[0042] Figure 3 A schematic diagram of a GIS data quadtree map hierarchy according to an embodiment of the present disclosure is shown;

[0043] Figure 4 A schematic diagram of a quadtree index of GIS data according to an embodiment of the present disclosure is shown;

[0044] Figure 5 A schematic structural diagram of an embodiment of the present disclosure is shown;

[0045] Figure 6 A structural schematic diagram of an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0046] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0047] Various structural schematic diagrams according to embodiments of the present disclosure are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may further design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0048] Embodiment 1:

[0049] like Figure 1 As shown:

[0050] The present invention provides a method for real-time processing of GIS data query requests based on quadtree index and multi-level cache.

[0051] include:

[0052] S101: Obtain a GIS data query request, the query request includes map level and request range information; the GIS data is vector data, and the vector elements of the vector data include: the coordinates of the vector data, the length of the vector data and / or the status information of the area of ​​the vector data, the update time of the vector data and / or the dynamic attributes of the status value of the vector data.

[0053] Before making a GIS data query request, data preprocessing is also included. Massive GIS data is structured according to attributes. First, the massive GIS data is separated into dynamic data and static vector data. An index is established between the dynamic data and the static vector data, and the index information is stored in a key-value database. The key-value database can store multiple vector attributes of the data, such as the spatial attribute information corresponding to the data, time information, grid ID, etc. According to the primary key ID information in the key-value database, fast query and associated data can be achieved.

[0054] It should be noted that the solution of the present application relies on a multi-level cache database and a multi-level data cache, using memory databases such as Redis, Memcahe, MongoDB (if no complex queries are performed, they can be directly placed in the memory), and establishing a static slice data cache database, a data request cache library, and a rendering data cache library at the three levels (or four levels of cache, for example, considering placing dynamic data into the cache database) cache, wherein the static slice data cache database caches structured static slices, the data request cache library caches data requests, and the rendering data cache library caches rendering data. In some implementations, the static slice data cache database can also be regarded as a solidified memory database that independently stores structured static vector slices.

[0055] Specifically, in the implementation manner of the present application, the storage method of the separated dynamic data can be adopted as follows. First, the dynamic data is indexed in the memory database according to time and space attributes. According to the spatial attributes, the dynamic data is associated with the preprocessed 12th-level static slice vector data grid table, and the grid id attribute is recorded. The grid id is also one of the index items of the index. The dynamic data and the static vector data are stored in a key-value database and associated through the primary key id.

[0056] Use quadtree index to grid the static vector data to obtain spatial index information and static vector slice data:

[0057] Take the map level 2-12 of GIS data as an example

[0058] Get the maximum and minimum data coordinates (x, y, z) of the static vector data at level 12 and generate a grid;

[0059] The generated grid and data id are associated with the GIS data level to generate the corresponding first relationship table, such as Figure 3 As shown;

[0060] The quadtree key is used to establish the second relationship table corresponding to the data coordinates (x, y, z) of the GIS data of the 2nd to 11th levels and the data coordinates (x, y, z) of the 12th level, such as Figure 4 As shown;

[0061] Associating the first relationship table with the second relationship table to obtain a corresponding relationship between the data of the 2nd to 11th levels and the data of the 12th level;

[0062] Use the quadtree key to generate the data coordinates (x, y, z) of the 2nd to 11th levels, and generate vector slices for all GIS data at the 12th level;

[0063] Among them, x, y, and z refer to the grid row number, column number, and map level number respectively.

[0064] S102: Determine whether the query request exists in the data request cache database;

[0065] S103: If not, obtaining the corresponding static vector slice data in the slice data cache database according to the query request;

[0066] Specifically, obtaining corresponding static slice vector data in the slice data cache database according to the query request includes:

[0067] The map level and request range information in the query request are associated with the spatial index information in the tile data cache database. For example, based on the obtained map level, the spatial index map level in the static vector tile cache library is queried, and then based on the spatial index map level, the vector tile data corresponding to the level and area range is queried to obtain the corresponding static tile vector data in the tile data cache database.

[0068] S104: Acquire dynamic data corresponding to the static vector slice data according to the primary key ID;

[0069] Specifically, the dynamic data corresponding to the static vector slice data is obtained according to the primary key ID in the key-value database.

[0070] S105: merging the static vector slice data with the dynamic data for rendering to obtain rendering data, associating the rendering data with the query request and storing the data in a rendering data cache database;

[0071] The data request cache database is loaded with a first cache algorithm for determining a cache time based on the frequency of query requests; for example, a counter is also provided in the data request cache database to count the frequency of a data query request cache appearing, and the retention time of a data request in the cache database is proportional to the frequency of data appearance.

[0072] The rendering data cache database has a built-in second cache algorithm for determining the update cycle of dynamic data of the rendering data, the memory upper limit of the database, and the data elimination conditions. In a certain embodiment, the cache retention time of the rendering data is related to the cache retention time of the corresponding data request; in a preferred embodiment, the cache retention time of the rendering data is the same as the cache retention time of the corresponding data request.

[0073] In a preferred implementation, after the rendering data in the cache library reaches a data elimination condition, the rendering data in the cache library can be transferred to the memory database.

[0074] In a preferred embodiment, a thread pool is used in the data request cache database and the rendering data cache library to cache multiple threads and improve the CPU working efficiency. The background pre-read data thread pre-reads data, and in order to maintain the size of the thread pool, an elimination mechanism is adopted to eliminate the least needed data from the thread pool.

[0075] S106: Display the rendered data to the requesting end of the data query.

[0076] Preferably, when the map level corresponding to the GIS data is level 12,

[0077] When a GIS data query request is obtained, the data request cache database is first queried to determine whether the request exists based on the query request. Specifically, based on the spatial attributes of the query request, such as the request range and other information, the index is used to quickly determine whether the data request exists.

[0078] If the request does not exist, then the index information in the quadtree key is obtained according to the request range of the query request, and the static slice vector data in the static slice vector database and the dynamic data in the memory are obtained according to the index information, and the static slice vector data and the dynamic data in the dynamic database are merged and rendered. The specific rendering process is as follows:

[0079] (1) Start the dynamic visualization module. Construct the dynamic data and static slice vector data into animation batch data in sequence, specifically including serializing the obtained dynamic data or dynamic batch data into geographic coordinate data;

[0080] (2) Dynamic objects change their spatial attributes and basic attributes in real time to achieve animation effects. After drawing is completed, the percentage t of the attribute value change per unit time is calculated based on the time range and attribute range of the dynamic object. The t value extracted each time remains unchanged in the animation. After the current rendering is completed, t is incremented and the drawing thread is notified to send a new data rendering task. The above process is repeated until the attribute value reaches the target value and the t value is 0, completing the entire dynamic object data update process.

[0081] (3) The updated dynamic data is merged with the static slice vector data to obtain rendering data.

[0082] The rendered data is displayed to the client through the screen. Before displaying it to the client, it is necessary to perform coordinate conversion through the map module. Specifically, the geographic coordinates are converted into screen coordinates. Then the pixel data is drawn to a bitmap of specified width and height through the graphics rendering engine and displayed on the client that issued the query request.

[0083] It should be noted that, in the embodiments of the present application,

[0084] 1. The length of the quadtree key is equal to the map level corresponding to the grid;

[0085] 2. The first few bits of the quadtree key of each grid are the same as the quadtree key of its parent grid (corresponding to the style of the previous map level): for example, 'grid 2' of level 1 is the parent of 'grid 20' to 'grid 23' of level 2, and 'grid 13' of level 2 is the parent of '130' to '133' of level 3. The key in this disclosure is the key of the quadtree, and the value is the different grids divided by the level of the static vector data during the preprocessing above. There are multiple vector data sets in each grid, and each grid corresponds to a quadtree key at different levels, thus forming a key-value pair.

[0086] An optional implementation of the present disclosure is as follows:

[0087] 1. Set up three-level caches in the memory database: slice data cache database, data request cache library, and rendering data cache library, and place static slice data, data request, and rendering data in different cache databases.

[0088] 1) Slice data cache database caches spatial index information and sliced ​​vector data. After slicing, vector data can be loaded in slices on demand without having to load all the data for each request. Fragmented data is also beneficial to network transmission, data request and data update, reducing server and network pressure.

[0089] 2) The data request cache library caches the data query request information sent by the client each time, including the map level and the request range. This can quickly determine whether a new data request has been responded to. If the same request has been included, the client does not need to send it to the server for rendering, reducing the possibility of repeated requests.

[0090] 2. Distinguish the massive vector data into dynamic data and static vector data. Static vector data and dynamic data are associated through primary keys. When dynamic data changes, the relevant dynamic data in the rendering data cache is directly updated.

[0091] 3. Use quadtree index to grid the static vector data. Store the organized spatial index and structured vector slice data into the slice data cache database for caching.

[0092] 4. After the client makes a request, it first determines whether there has been the same request in the data request cache library. If so, the result is directly obtained from the rendering data cache and returned, otherwise the rendering process is started.

[0093] 5. During the rendering process, the request information is requested to the corresponding static vector cache data through the spatial index in the slice data cache database, and the vector data is obtained to obtain real-time dynamic data through the primary key association.

[0094] 6. The rendered visualization result is associated with the map level and range information in the request cache, stored in the rendering data cache library and returned to the client at the same time.

[0095] The beneficial effects of the present disclosure are:

[0096] The present invention realizes rapid response of GIS data based on query request based on multi-level cache and quadtree index technology, including data positioning, data merging rendering and display. Specifically, data query request, static slice vector data, dynamic data and rendering data are cached in different databases in a hierarchical manner. When a data query request is received, it is first determined whether the query request exists in the corresponding data request cache database. If the query request exists, it is determined that the query request has been responded to, and the corresponding rendering data is directly searched from the rendering data cache database to respond to the data query request. If the query request does not exist, data rendering is started, and the corresponding static vector slice data in the slice data cache database is obtained according to the query request, and then the dynamic data corresponding to the static vector slice data is obtained according to the primary key ID, and the static vector slice data and the dynamic data are merged and rendered to obtain the rendering data, and the rendering data is displayed to the request end of the data query, so as to realize rapid rendering and dynamic update of the data.

[0097] Embodiment 2:

[0098] like Figure 2 As shown:

[0099] The technical solution of the first embodiment of the present disclosure can also be improved as follows:

[0100] Before obtaining the data query request, it also includes:

[0101] S100: Data preprocessing, separating the massive vector data into dynamic data and static vector data, wherein the dynamic data and the static vector data are associated with each other through a primary key ID;

[0102] The static vector data is gridded using quadtree indexing to obtain spatial index and structured vector slice data, which are then stored in a slice data cache database for caching.

[0103] The technical solution of the first embodiment of the present disclosure can also be improved as follows:

[0104] The method further includes:

[0105] S107: Cache the separated dynamic data separately in the memory database, and monitor the real-time changes of the dynamic data through the data update service.

[0106] When the dynamic data is updated, the rendering data in the rendering data cache database or the dynamic data in the rendering process is updated in real time. Wherein, updating the rendering data in the rendering data cache database refers to updating the dynamic attribute data in the rendering data to obtain the latest rendering data. Embodiment 3:

[0107] like Figure 5 As shown:

[0108] The present disclosure also provides a device for real-time data processing based on quadtree index and multi-level cache, comprising:

[0109] The data query request acquisition module 201 is used to acquire a GIS data query request, wherein the query request includes map level and request range information;

[0110] The data storage module 202 is used to store data in a hierarchical manner, including a data request cache database, a slice data cache database, and a rendering data cache database;

[0111] A determination module 203 is used to determine whether the query request exists in the data request cache database;

[0112] The rendering module 204 is used to obtain the corresponding static vector slice data in the slice data cache database according to the query request when there is no query request in the data request cache database, obtain the dynamic data corresponding to the static vector slice data according to the primary key ID, and merge the static vector slice data with the dynamic data for rendering, obtain the rendering data and cache it in the rendering data cache database;

[0113] The data display module 205 is used to display and render data to the request end of the data query.

[0114] The data query request acquisition module 201 of the present disclosure is sequentially connected to the data storage module 202 , the judgment module 203 , the rendering module 204 and the data display module 205 .

[0115] Embodiment 4:

[0116] The present disclosure can also provide a computer storage medium on which computer program instructions are stored, characterized in that when the computer program instructions are executed by a processor, they are used to implement the steps of the above-mentioned method for real-time processing of GIS data query requests based on quadtree indexing and multi-level cache.

[0117] The computer storage medium of the present disclosure may be implemented using a semiconductor memory or a magnetic core memory.

[0118] Semiconductor memory, mainly used in computers, has two types of semiconductor storage elements: Mos and bipolar. Mos elements have high integration, simple process but slow speed. Bipolar elements have complex process, high power consumption, low integration but fast speed. After the advent of NMos and CMos, Mos memory began to occupy a dominant position in semiconductor memory. NMos is fast, such as Intel's 1K-bit static random access memory with an access time of 45ns. CMos consumes less power, and the access time of 4K-bit CMos static memory is 300ns. The above-mentioned semiconductor memories are all random access memories (RAM), that is, new content can be read and written randomly during operation. Semiconductor read-only memory (ROM) can be read randomly but cannot be written during operation. It is used to store solidified programs and data. ROM is divided into two types: non-rewritable fuse read-only memory - PROM and rewritable read-only memory EPROM.

[0119] Magnetic core memory has the characteristics of low cost and high reliability, and has more than 20 years of practical experience. Magnetic core memory was widely used as main memory before the mid-1970s. Its storage capacity can reach more than 10 bits, and the fastest access time is 300ns. The capacity of typical magnetic core memory in the world is 4MS~8MB, and the access cycle is 1.0~1.5μs. After the rapid development of semiconductor storage to replace magnetic core memory as the main memory, magnetic core memory can still be used as a large-capacity expansion memory.

[0120] Embodiment five:

[0121] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the computer program, the steps of the method for real-time processing of GIS data query requests based on quadtree indexing and multi-level cache are implemented.

[0122] The electronic device includes but is not limited to smart phones, computers, tablet computers, wearable smart devices, artificial intelligence devices, mobile power supplies, etc.

[0123] Figure 6 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 6As shown, the electronic device includes a processor, a storage medium, a memory and a network interface connected via a system bus. Among them, the storage medium of the computer device stores an operating system, a database and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for real-time processing of GIS data query requests based on quadtree indexing and multi-level cache. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute a method for real-time processing of GIS data query requests based on quadtree indexing and multi-level cache. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In some embodiments, the processor may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor is the control core (Control Unit) of an electronic device, which uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory (for example, executing remote data reading and writing programs, etc.), and calling data stored in the memory.

[0125] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between a memory and at least one processor, etc.

[0126] Figure 6 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 6The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0127] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to at least one processor through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0128] Furthermore, the electronic device may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.

[0129] Optionally, the electronic device may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0130] Furthermore, the computer-usable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.

[0132] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0133] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0134] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, a person skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for real-time processing of GIS data query requests, characterized in that: The method includes: Obtaining a GIS data query request, wherein the query request includes map level and request scope information; Determine whether the query request exists in the data request cache database; If not, obtaining the corresponding static vector slice data in the slice data cache database according to the query request; According to the primary key ID, dynamic data corresponding to the static vector slice data is obtained; Combining the static vector slice data with the dynamic data and rendering to obtain rendering data, associating the rendering data with the query request and storing the rendering data in a rendering data cache database; Displaying the rendered data to the requesting end of the data query; Before obtaining the data query request, it also includes: Data preprocessing, separating the massive vector data into dynamic data and static vector data, wherein the dynamic data and the static vector data are associated with each other through a primary key ID; The static vector data is gridded by using a quadtree index to obtain a spatial index and structured static vector slice data, and the spatial index and the static vector slice data are stored in a slice data cache database for caching.

2. The method according to claim 1, characterized in that The method further includes: The dynamic data is cached separately in the memory database, and the real-time changes of the dynamic data are monitored through the data update service. When the dynamic data is updated, the rendering data in the rendering data cache database or the dynamic data in the rendering process is updated in real time.

3. The method according to claim 1, characterized in that When the map level corresponding to the GIS data is level 12, the static vector data is gridded using quadtree indexing to obtain spatial index information and static vector slice data: Get the maximum and minimum data coordinates (x, y, z) of the static vector data at level 12 and generate a grid; Associating the generated grid with the GIS data level to generate a corresponding first relationship table; A second relational table corresponding to the data coordinates (x, y, z) of the GIS data at the 2nd to 11th levels and the data coordinates (x, y, z) of the 12th level is established by using a quadtree key; Associating the first relationship table with the second relationship table to obtain a corresponding relationship between the data of the 2nd to 11th levels and the data of the 12th level; Use the quadtree key to generate the coordinates (x, y, z) of the data in levels 2 to 11, and use all the GIS data in level 12 to generate vector tiles; Among them, x, y, and z refer to the grid row number, column number, and map level number respectively.

4. The method according to claim 1, characterized in that: The vector elements of the GIS data include: coordinates of the vector data, status information of the length of the vector data and / or the area of ​​the vector data, update time of the vector data and / or dynamic attributes of the status value of the vector data.

5. The method according to claim 1, characterized in that: The acquiring corresponding static slice vector data in the slice data cache database according to the query request comprises: The map level and request range information in the query request are associated with the spatial index information in the slice data cache database to obtain the corresponding static slice vector data in the slice data cache database.

6. The method according to claim 1, characterized in that The data request cache database is loaded with a first cache algorithm for determining a cache time according to the frequency of query requests; The rendering data cache database has a built-in second cache algorithm for determining the update cycle of dynamic data of the rendering data, the memory upper limit of the database, and the data elimination condition.

7. A device for processing GIS data query requests in real time, using the method according to any one of claims 1 to 6, characterized in that: include: A data query request acquisition module is used to obtain GIS data query requests; A data storage module, used for storing data in a hierarchical manner, including a data request cache database, a slice data cache database, and a rendering data cache database; A determination module, used to determine whether the query request exists in the data request cache database; A rendering module, configured to, when the query request does not exist in the data request cache database, obtain the corresponding static vector slice data in the slice data cache database according to the query request, obtain the dynamic data corresponding to the static vector slice data according to the primary key ID, merge the static vector slice data with the dynamic data for rendering, obtain the rendering data and cache it in the rendering data cache database; A data display module is used to display the rendered data to the request end of the data query.

8. A computer storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, they are used to implement the steps of the method for real-time processing of GIS data query requests as described in any one of claims 1-6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for real-time processing of GIS data query requests as described in any one of claims 1-6 are implemented.