Online edge type space calculation organization method
By building an online edge-based spatial computing organization method in the spatial computing system, dynamically calling the spatial computing functions and databases of the client, edge and main server side, the problem of relying on server-side computing and storage in the existing technology is solved, and efficient and flexible spatial data processing is achieved.
Patent Information
- Application Number
- CN202510107013.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-16
AI Technical Summary
The existing spatial computing technology relies on server-side computing and storage, resulting in the need of a large amount of data transmission and waiting time for personal computing requests, and the calculation error rate is high, making it difficult to meet the needs of flexible and efficient spatial data processing.
An online edge-based spatial computing organization method is proposed. By building the spatial computing functions and databases of the main server side, edge side and client side, and dynamically calling the spatial computing functions and database order are: client side, edge side and main server side, in order to scientifically configure the edge-based spatial computing capabilities.
It improves the operation efficiency of the overall spatial information system, especially the ability of the client to process spatial data, realizes local processing and security management of data, and improves the flexibility and efficiency of applications.
Smart Images

Figure CN120011377A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of geographic information systems, smart cities, urban planning, and the like, and in particular to an online edge-based spatial computing organization method. Background Art
[0002] Spatial computing has been applied to all aspects of society. According to experts, 70% to 80% of human data is closely related to geographic spatial information, and the actual application demand is also very strong, such as travel navigation, educational site selection, population distribution characteristics calculation, etc. However, current spatial computing often relies mainly on the computing and storage capabilities of the server. Personal computing requests require a lot of data transmission and waiting time, and even the computing error rate is too high to be truly put into application. With the improvement of personal computer storage and computing power, the spatial computing platform can make full use of the "edge" capabilities of personal storage and computing, and not all computing and data must rely on the server. At the same time, the advantage of this approach is that personal spatial computing needs are more flexible and convenient.
[0003] In spatial computing, data and computing power are currently mainly dependent on the server. In a spatial computing process, users need to upload data to the server, and the server returns the calculation results to the user. However, in fact, the user side can achieve some work task requirements through some data given by the server side. Based on this, to realize an online "edge-type" spatial computing platform, it is necessary to propose a distributed organizational model that reasonably utilizes the server side, edge segment, and client side in data storage and computing power, and can realize data caching, server-side and client-side computing function organization through the WEB online method. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide an online edge-based spatial computing organization method. The present invention can more scientifically improve the operating efficiency of the overall spatial information system by configuring edge-based spatial computing capabilities, especially improve the client's own ability to process spatial data.
[0005] The present invention adopts the following technical solutions to solve the above technical problems:
[0006] In a first aspect, an online edge-based spatial computing organization method according to the present invention includes:
[0007] Build the spatial computing function and database on the main server side;
[0008] Build spatial computing functions and databases at the edge;
[0009] Build client-side spatial computing functions and databases;
[0010] Update spatial computing functions and databases at the edge and client ends;
[0011] The client dynamically calls the spatial computing function and the database, wherein the order of dynamically calling the spatial computing function and the database is: the client, the edge end, and the main server end.
[0012] As a further optimization scheme of the online edge-based spatial computing organization method described in the present invention, a client-side spatial computing function and database are constructed; specifically as follows:
[0013] The client builds a node service n_service;
[0014] The client configures a SpatiaLite database;
[0015] Use spl.js to call the database and spatial computing functions of the SpatiaLite database;
[0016] Use node-gdal to analyze spatial computing functions;
[0017] The client starts n_service to monitor spatial computing function analysis tasks.
[0018] As a further optimization scheme of the online edge-based spatial computing organization method described in the present invention, the edge end and the client end update the database as follows:
[0019] The edge and client update the database data from the main server, set the rules for the storage duration, validity period and password of each updated data on the client, and the updated data refers to the data d downloaded from the database of the main server.
[0020] As a further optimization scheme of the online edge-based spatial computing organization method described in the present invention, the rules for the client storage duration, validity duration, and password are as follows:
[0021] If the storage time of d after downloading exceeds the specified threshold, it will be deleted through n_service;
[0022] If the validity period saved after d is downloaded exceeds the specified threshold, it cannot be called through n_service and the validity period must be re-applied;
[0023] The data of d is encrypted. When n_service calls d, the client enters the specified password.
[0024] As a further optimization scheme of the online edge-type spatial computing organization method described in the present invention, the main server side includes the same spatial computing function as the client side.
[0025] As a further optimization scheme of the online edge-based spatial computing organization method described in the present invention, the edge end includes the same spatial computing function as the client end.
[0026] As a further optimization solution of the online edge-based spatial computing organization method described in the present invention, n_service is an Electron program.
[0027] As a further optimization scheme of the online edge-based spatial computing organization method described in the present invention, when the edge and the client update the database, a middleware is set up to perform data conversion processing between different types of databases.
[0028] A computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the steps of the above-mentioned online edge-based spatial computing organization method are implemented.
[0029] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned online edge-based spatial computing organization method.
[0030] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:
[0031] (1) The present invention can more scientifically improve the operating efficiency of the overall spatial information system by configuring edge spatial computing capabilities, especially improving the client's own ability to process spatial data;
[0032] (2) The present invention can not only utilize the data storage and spatial computing capabilities of the main server, but also can scientifically utilize the spatial computing functions and data storage capabilities of the edge and client ends. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the overall process of the present invention;
[0034] Figure 2 It is a schematic diagram of the organizational structure of the core subject of the present invention;
[0035] Figure 3 It is a schematic diagram of the design ideas of the client computing function;
[0036] Figure 4 It is a schematic diagram of dynamic calls between core entities;
[0037] Figure 5 This is a diagram showing the sequence of dynamic calls. DETAILED DESCRIPTION
[0038] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings:
[0039] An online edge-based spatial computing organization method, comprising:
[0040] Step 1: Figure 1 As shown, it is the overall technical roadmap of the present invention. From the technical roadmap, it can be seen that the core of the present invention is to build a comprehensive spatial computing method. This method can not only utilize the data storage and spatial computing capabilities of the main server, but also scientifically utilize the spatial computing functions and data storage capabilities of the edge and client. First, it is necessary to build the spatial computing functions and databases of the main server, edge, and client, respectively.
[0041] like Figure 2 As shown, the main server side, edge side and client side of the present invention are not simply stacked, but are realized through system organization and collaborative design, realizing the scientific configuration of spatial computing functions, the organic organization of data, and security management, etc.
[0042] Then, for the construction of the spatial computing function and database of the main server, it is divided into two aspects: spatial computing function and database storage. The server is the key to the entire operating system and has extremely strong data storage and spatial computing capabilities. However, in order to reasonably distribute the pressure of data storage and spatial computing, the data needs to be downloaded to the edge and client. In this way, after the edge and client obtain the computing function, they can also perform spatial computing processing through the downloaded data and the data collected by themselves. Another advantage of this processing is that some data does not need to be directly transmitted to the main server or edge, but only needs to be processed on the client. This is of great significance for protecting user data and increasing flexible application capabilities.
[0043] Step 2: Build the spatial computing function and database on the edge. The edge needs to provide spatial computing capabilities that are basically the same as those on the server. At the same time, it is necessary to download data from the server, so a database also needs to be built.
[0044] Combination Figure 2 The organizational relationship between the server, edge, and client in the network is that the edge and client need to download data from the server. When the client performs calculations, it also needs to determine whether the computing power of the server is needed. If the computing power of the server is not needed, the calculation can be performed directly on the edge or client.
[0045] Step 3: Build the client's spatial computing function and database;
[0046] like Figure 3 As shown, the design of the client of the present invention is a very critical process. It is necessary to realize the client to conveniently perform spatial calculation and data storage through a certain design. If the client is to be able to easily start the spatial calculation function, it is necessary to provide a deployment process flow that is different from the complex server. To this end, the present invention has the following features when designing:
[0047] First, the client builds a node service n_service. The node service is a computer service developed based on Node.js. In order to better allow Javascript to run on platforms outside the browser, Nodejs implements many modules: file system, modules, packages, operating system API, network communication and other functions that are not available or incomplete in CoreJavascript. Since the node service can run outside the browser, it can run without relying on the browser and allow it to be executed directly on the client as a running program. The node service constructed in the present invention is recorded as n_service.
[0048] The second is to configure a SpatiaLite database on the client. The SpatiaLite database is a spatial database that can be run directly locally, without the need for the user to install the database. At the same time, the database can also be started through the node service, which means that the user can operate the SpatiaLite database after starting the node service.
[0049] The third is to use spl.js to call the database and spatial computing functions of the SpatiaLite database. As described above, if the node service is to process the SpatiaLite database, it is necessary to access and process the SpatiaLite database through a certain js library. The present invention proposes to use spl.js to call the database and spatial computing functions of the SpatiaLite database.
[0050] Fourth, node-gdal is used to analyze spatial computing functions. Node-gdal can directly provide various spatial computing function processing functions, and can be called by the node service. In other words, the node service can perform various spatial computing services through the SpatiaLite database and node-gdal.
[0051] Fifth, the client starts n_service to monitor the spatial computing function analysis task. The client needs to trigger various spatial computing service requirements of the monitoring node service by starting n_service.
[0052] Step 4: The edge and client update the spatial computing function and database. In the present invention, it is designed to download some important or frequently used data of the edge and client from the server, so that the client can also carry out spatial computing functions through its own computing resources. However, the downloaded data is not for the client to process at will. Certain restrictive processing is required to make reasonable use of server-side data resources.
[0053] To this end, when the edge and client update the database, the specific settings are as follows: the edge and client update the database data from the main server, set the rules for the storage duration, validity period and password of each updated data on the client, and the updated data refers to the data downloaded from the database on the main server. The purpose of this processing is that the data downloaded from the server has a certain timeliness, and the SpatiaLite database used by the client also has a certain encryption. Then, when the user performs spatial computing function analysis on the edge and client, the data is used under certain protection and restrictions.
[0054] Furthermore, the rules for the client storage duration, validity duration, and password in the present invention are:
[0055] If the storage time of d after downloading exceeds the specified threshold, it will be deleted through n_service. n_service is a node service that can manage the deletion of the database when accessing the database. The length of time that data d is retained on the client after it is downloaded from the main server. The threshold here is set for the retention time. If the retention time exceeds a certain threshold, it is considered that the data d needs to be deleted and should not be used anymore.
[0056] If the validity period of d after downloading exceeds the specified threshold, it cannot be called by n_service and the validity period must be re-applied. The purpose of this process is to prevent the downloaded data from being retained on the client for too long, so that n_service cannot call it, thereby protecting the data from over-limit use.
[0057] The data of d is encrypted. When n_service calls d, the client enters the specified password. After some data is downloaded from the server, it is necessary to set a password through n_service, and then it needs to be unlocked with a password before it can be used. This can also well protect the data security of the server.
[0058] The main server includes the same spatial computing functions as the client. The edge includes the same spatial computing functions as the client. The purpose of this process is that the main server and the edge can solve all the problems set by the client. When the client cannot solve them, the main server and the edge can also complete the spatial computing tasks.
[0059] n_service is an Electron program. n_service is an Electron program, that is, it can be an executable program that can be easily executed. Users can use n_service by quickly starting this Electron program.
[0060] When the edge and client update the database, a middleware is set up to perform data conversion processing between different types of databases. Since the databases between the server, edge, and client may be heterogeneous, a data conversion processing middleware is also required so that the data on the main server can be accessed and used on the edge and client.
[0061] Step 5: Figure 4 and Figure 5 As shown in the figure, the client needs to dynamically call the spatial calculation function and database, where the order of dynamically calling the spatial calculation function and database is: client, edge, and main server. When the user starts n_service, the default is to call the client's spatial calculation function first. If the client does not start n_service, or does not use the client for spatial calculation processing, the spatial analysis function of the edge or main server will be called. Similarly, by default, the edge is called first compared to the main server.
[0062] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the above-mentioned online edge-based spatial computing organization method when executing the computer program.
[0063] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned online edge-based spatial computing organization method are implemented.
[0064] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0065] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0066] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0068] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0069] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An online edge-based spatial computing organization method, characterized in that: include: Build the spatial computing function and database on the main server side; Build spatial computing functions and databases at the edge; Build client-side spatial computing functions and databases; Update spatial computing functions and databases at the edge and client ends; The client dynamically calls the spatial computing function and the database, wherein the order of dynamically calling the spatial computing function and the database is: the client, the edge end, and the main server end.
2. The online edge-based spatial computing organization method according to claim 1, characterized in that: Build the client's spatial computing function and database; the details are as follows: The client builds a node service n_service; The client configures a SpatiaLite database; Use spl.js to call the database and spatial computing functions of the SpatiaLite database; Use node-gdal to analyze spatial computing functions; The client starts n_service to monitor spatial computing function analysis tasks.
3. The online edge-based spatial computing organization method according to claim 2, characterized in that: The edge and client update the database as follows: The edge and client update the database data from the main server, set the rules for the storage duration, validity period and password of each updated data on the client, and the updated data refers to the data d downloaded from the database of the main server.
4. The online edge-based spatial computing organization method according to claim 3, characterized in that: The rules for client storage duration, validity period, and password are as follows: If the storage time of d after downloading exceeds the specified threshold, it will be deleted through n_service; If the validity period saved after d is downloaded exceeds the specified threshold, it cannot be called through n_service and the validity period must be re-applied; The data of d is encrypted. When n_service calls d, the client enters the specified password.
5. The online edge-based spatial computing organization method according to claim 1, characterized in that: The main server includes the same spatial computing functions as the client.
6. The online edge-based spatial computing organization method according to claim 1, characterized in that: The edge includes the same spatial computing capabilities as the client.
7. The online edge-based spatial computing organization method according to claim 2, characterized in that: n_service is an Electron program.
8. The online edge-based spatial computing organization method according to claim 2, characterized in that: When the edge and client update the database, a middleware is set up to perform data conversion processing between different types of databases.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the steps of the online edge-based spatial computing organization method as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the online edge-based spatial computing organization method as described in any one of claims 1 to 8 are implemented.