Methods, devices and systems for processing geospatial data
Through the visual modeling service of the client and the server, the construction and distributed execution of geospatial data processing processes are simplified, the problem of low production efficiency of geospatial data mining in the existing technology is solved, and efficient processing in a distributed environment is achieved. Data processing.
Patent Information
- Application Number
- CN202010617612.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-06-30
AI Technical Summary
The use of existing distributed geoprocessing technology requires development experience and distributed knowledge, resulting in low productivity in geospatial data mining. Especially for people without development experience, it takes a lot of time to build a development environment and write code. .
Provides a geospatial data processing method that connects the client and server through visual modeling services and provides predefined operators. Users can drag and connect operators to build models and generate model files, which are parsed and executed by the server. These models,utilize distributed clusters for computation, avoiding the,need to write large amounts of code.
It improves the productivity of geospatial data mining and simplifies complex logic geospatial data processing processes. Traditional geospatial processing processes can run in a distributed environment, improving the efficiency of distributed mining of geospatial data.
Smart Images

Figure CN111753040B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data mining, and in particular to a method, device and system for processing geographic spatial data. Background Art
[0002] With the rapid development of mobile Internet, 80% of big data is related to geographic location. "Location" connects everything, location services are ubiquitous, and the application of geographic location big data is constantly expanding. How to use GIS technology to mine data from geographic location big data and provide guidance and decision-making for users through GIS's technical advantages such as spatial analysis, spatial query and spatial visualization is the direction that various industries are working towards. This requires GIS to have relevant technical support for big data.
[0003] Distributed geoprocessing technology (the technology formed by the application of distributed technology to the geography industry) is being used more and more widely. Under the mainstream IT technology system, there is already relatively mature and complete distributed technology support. Among them, this distributed geoprocessing technology has the ability to quickly obtain valuable information from various types of geospatial big data. Specifically, it includes data collection, storage, management, analysis and mining, visualization and other technologies and their integration.
[0004] At present, distributed geoprocessing technology is mostly provided in the form of open source code, which requires certain development experience and distributed knowledge as a basis. When using it, geographic information workers need to spend a lot of time to build a development environment, learn distributed knowledge, learn development languages, write codes and debug. People without development experience may need weeks or even months to implement distributed geoprocessing algorithms, which has low production efficiency for geospatial data mining. Summary of the invention
[0005] The present application provides a method, device and system for processing geographic spatial data, aiming to solve the problem of low production efficiency in mining geographic location big data.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] This application provides a method for processing geospatial data, which is applied to a client and includes:
[0008] Upon receiving the start instruction, connecting to a visual modeling service of the server; the visual modeling service is used to provide a plurality of predefined operators for the client;
[0009] In response to a drag instruction for any one of the plurality of operators, and in response to a connection instruction for the dragged operator, a model is established;
[0010] In response to a configuration instruction for cluster information of the model, configure cluster information of the model; the cluster information includes a cluster address;
[0011] In response to an instruction to run the model, a model file of the model is generated; the model file includes the cluster information;
[0012] The model file is sent to the server.
[0013] Optionally, the method further includes:
[0014] When receiving the export instruction, generating a model file of the model indicated by the export instruction to obtain a model file to be saved;
[0015] Saving the model file to be saved;
[0016] In case of receiving a preset import instruction, displaying the saved model file;
[0017] In response to a selection instruction for any model file among the displayed model files, a model of the model file indicated by the selection instruction is displayed.
[0018] Optionally, the method further includes:
[0019] In response to a preset publishing instruction of the model, the established model indicated by the publishing instruction is sent to the server.
[0020] The present application also provides a method for processing geospatial data, which is applied to a server, including:
[0021] When receiving a model file sent by a client, the model file is parsed to obtain operators included in the model indicated by the model file, input-output relationships between operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate a distributed cluster for running each operator included in the model;
[0022] The distributed cluster indicated by the cluster address in the cluster information is controlled to execute the computing tasks of each operator included in the model.
[0023] Optionally, controlling the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model includes:
[0024] From the parsed operators, identify the target operator and the Cache operator; the target operator is the operator to be executed in a distributed manner;
[0025] Start the Driver process; the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster;
[0026] Send the Cache operator to the Master node of the distributed cluster.
[0027] Optionally, the method further includes:
[0028] When the established model sent by the client is received, the established model is saved in the operator list of the visual modeling service.
[0029] Optionally, the method further includes:
[0030] Query the newly added JAR package in the library folder;
[0031] Parse the newly added JAR package to obtain the newly added operator;
[0032] The newly added operator is added to the operator list of the visual modeling service.
[0033] The present application also provides a device for processing geographic spatial data, which is applied to a client and includes:
[0034] A connection module, used for connecting to a visual modeling service of a server upon receiving a start instruction; the visual modeling service is used for providing a plurality of predefined operators for the client;
[0035] A first response module, configured to establish a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator;
[0036] A second response module, configured to configure the cluster information of the model in response to a configuration instruction for the cluster information of the model; the cluster information includes a cluster address;
[0037] A third response module, configured to generate a model file of the model in response to an instruction to run the model; the model file includes the cluster information;
[0038] The sending module is used to send the model file to the server.
[0039] The present application also provides a device for processing geographic spatial data, which is applied to a server, and includes:
[0040] A parsing module, configured to parse the model file upon receiving the model file sent by the client, and obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate a distributed cluster for running the operators included in the model;
[0041] The control module is used to control the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model.
[0042] The present application also provides a system for processing geospatial data, including: a client, a server, and a distributed cluster;
[0043] The client is used to connect to the visual modeling service of the server when receiving a start instruction; the visual modeling service is used to provide the client with a plurality of predefined operators;
[0044] The client is further used to establish a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator;
[0045] The client is further configured to receive cluster information of the model in response to a configuration instruction for cluster information of the model; the cluster information includes a cluster address;
[0046] The client is further configured to generate a model file of the model in response to an instruction to run the model; the model file includes the cluster information;
[0047] The client is also used to send the model file to the server;
[0048] The server is used to parse the model file when receiving the model file sent by the client, and obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate a distributed cluster running each operator included in the model;
[0049] The server is further used to control the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model.
[0050] The processing method, device and system of geospatial data described in the present application, when the client receives the start instruction, connects to the visual modeling service of the server, and the visual modeling service is used to provide the client with multiple predefined operators; in response to the drag instruction of any operator among the multiple operators, and in response to the connection instruction of the dragged operator, a model is established; in response to the configuration instruction of the cluster information of the model, the cluster information of the model is received; wherein the cluster information includes the cluster address, and in response to the running instruction of the model, a model file of the model is generated; the model file is sent to the server, wherein the model file includes the cluster information, and when the server receives the model file sent by the client, the server parses the model file to obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and the cluster information, wherein the cluster address in the cluster information is used to indicate the distributed cluster of the operators included in the running model; and the distributed cluster indicated by the cluster address is controlled to execute the computing tasks of the operators included in the model. That is, the present application generates the model file of the geospatial data processing model through the client, and the server parses the model file and controls the distributed cluster to execute the computing tasks of the operators in the model file.
[0051] Furthermore, in the present application, the client provides a method of building a model by dragging and connecting operators, thereby avoiding the problem that users need to write a large amount of code to implement a complex logic geospatial data mining process.
[0052] Therefore, this application implements the technology of visual model building and model distributed operation in the distributed visual modeling process, so that the traditional geographic processing process can be run in a distributed environment, thereby improving the production efficiency of distributed mining of geographic spatial data. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A schematic diagram of the structure of a system for processing geographic spatial data disclosed in an embodiment of the present application;
[0055] Figure 2 A flowchart of a geographic spatial data processing process disclosed in an embodiment of the present application;
[0056] Figure 3An example diagram of a processing flow including an output operator and a key operator disclosed in an embodiment of the present application;
[0057] Figure 4 A schematic diagram of the structure of a device for processing geographic spatial data disclosed in an embodiment of the present application;
[0058] Figure 5 This is a schematic diagram of the structure of another device for processing geographic spatial data disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] Figure 1 A system for processing geographic spatial data provided in an embodiment of the present application includes a client, a server, and a distributed cluster. The client is connected to the server, and the server is connected to the distributed cluster. Of course, in practice, the connection method can be a wireless connection or a wired connection, as long as communication is possible.
[0061] In this embodiment, the server is configured with a visual modeling service, a parsing execution engine, and a Driver process. The visual modeling service includes an operator list and a model building page, and a plurality of operators are pre-configured in the operator list. When the client is started, it connects to the visual modeling service of the server, and the client can obtain the operators in the operator list of the visual modeling service to complete the model building later. The client also receives the cluster information of the model in response to the configuration instruction of the cluster information of the model, wherein the cluster information includes the cluster address. The client also generates a model file of the model in response to the running instruction of the model, wherein the model file includes cluster information, and sends the model file to the server.
[0062] The parsing execution engine in the server is used to parse the model file sent by the client, and based on the operators obtained by parsing the model file, call the Driver process to control the distributed cluster for distributed computing.
[0063] In this embodiment, the distributed cluster may be a distributed cluster of the Spark framework, including a Master node and a Worker node, wherein the function of Spark is a prior art and will not be described in detail here.
[0064] In this embodiment, the client may be a desktop client or a Web client, and this embodiment does not limit the specific form of the client.
[0065] In this embodiment, the working principle of the system for processing geospatial data may include the following steps:
[0066] S201. Upon receiving a start instruction, the client connects to the visual modeling service of the server.
[0067] In this embodiment, the visual modeling service is used to provide the client with a plurality of predefined operators and a model building page.
[0068] In this embodiment, after the client is started, an operator list, a canvas, and a parameter panel are displayed on the interface. The operator list is used to display the operators in the operator list of the visual modeling service. In this embodiment, the operator list also has a filter function, through which the required operator can be queried in the operator list of the client.
[0069] Based on the operator list, canvas and parameter panel on the client interface, conditions are provided for building the model. Specifically, the process of building the client response model is introduced in S202.
[0070] S202: The client establishes a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator.
[0071] In this embodiment, a model is usually composed of multiple operators, that is, multiple operators used to construct the model need to be dragged into the canvas. The process of the client responding to the dragging of any operator is taken as an example for introduction. Specifically, in this step, the client responds to the drag instruction of any operator in the operator list and displays the dragged operator at the corresponding position of the canvas, wherein the specific position is indicated by the drag instruction. Specifically, the specific implementation process of the client responding to the drag instruction of any operator and displaying the operator at the corresponding position of the canvas is prior art and will not be repeated here.
[0072] In this embodiment, the operators dragged into the canvas can be arranged and connected, that is, the operators can be moved, selected, and connected in the canvas. Among them, the main operations for drawing connections may include: moving the cursor to the connection point of the output node of the preceding operator, the connection point is highlighted, holding down the left mouse button, moving the cursor to the connection point of the input node of the operator to be connected, and releasing the mouse after the connection point is highlighted, and the connection line is drawn successfully. To ensure the normal operation of the model, it is necessary to ensure that the output parameters of the preceding node are the same as the input parameters of the subsequent nodes. Click to select an operator or a connection line and use the Delete key on the keyboard to delete it.
[0073] In this step, the client responds to the connection operation of the operator dragged into the canvas and establishes the data input and output relationship between the connected operators, thereby realizing the construction of the model.
[0074] S203: The client configures the cluster information of the model in response to the configuration instruction for the cluster information of the model.
[0075] In this embodiment, the parameter panel in the display interface of the client is used to provide parameter input and environment parameter configuration for the operator. The environment parameters include cluster address and cluster parameters, wherein the cluster address indicates the distributed cluster used to run each operator in the built model, and the cluster parameters are used to indicate the operating parameters of the distributed cluster indicated by the cluster address.
[0076] In this step, the client receives and configures the cluster information of the model in response to the configuration instruction for the cluster information of the model. The cluster information may include a cluster address and cluster parameters. The specific implementation of this step is the existing technology and will not be repeated here.
[0077] In this embodiment, in the constructed model, the operator used to output the final result is called an output operator. Wherein, when the constructed model includes multiple output operators, the following situation may exist: the data processing flow of the output results of multiple output operators needs to pass through the same operator. For the convenience of description, the same operator is called a key operator.
[0078] like Figure 3 As shown, it includes two output operators, namely, "output 1" and "output 2", which respectively indicate the operators from Figure 3 It can be seen that the data processing flow of the operators indicated by "output 1" and "output 2" respectively needs to pass through the key operator (the operator marked with "key operator").
[0079] In this embodiment, if multiple data processing flows that need to simultaneously pass through the key operator respectively perform operations on the key operator and the key operator's predecessor, the multiple data processing flows may repeatedly perform operations on the key operator and the key operator's predecessor.
[0080] In order to avoid the problem of repeated calculation in multiple data processing flows, in this embodiment, the client supports the connection operation of the Cache operator, wherein the Cache operator is connected after the key operator, and the server is instructed to control the distributed cluster to save the calculation results of the key operator connected to the Cache operator in the memory, so that when executing the data processing flow of certain output operators, it is only necessary to obtain the execution result of the key operator from the memory, and perform subsequent calculations of the data processing flow based on the execution result, thereby avoiding the calculation of the key operator in the data processing flow and the predecessor operator of the key operator.
[0081] Also Figure 3 For example, since the data processing flows corresponding to the output operators indicated by "output 1" and "output 2" respectively need to go through the calculation of the operator marked with "key operator" and the preceding operator. In this embodiment, after configuring the Cache operator, the server only needs to calculate the key operator and the preceding operator of the key operator for one of the output operators in the process of controlling the distributed cluster to calculate the results of the two operators indicated by "output 1" and "output 2" respectively. For example, for the output operator indicated by "output 1", calculate the key operator and the preceding operator of the key operator in the data processing flow of the output operator, and save the calculation result of the key operator. For the output operator indicated by "output 2", it is only necessary to execute the processing flow after the key operator in the data processing flow of the output operator indicated by "output 2" based on the calculation result of the key operator, that is, there is no need to execute the calculation process of the key operator and the preceding operator of the key operator.
[0082] Specifically, the client responds to the drag command of the Cache operator to drag the Cache operator to the corresponding position of the canvas. The client responds to the connection command of the Cache operator to connect the Cache operator with the corresponding key operator.
[0083] S204: The client generates a model file of the model in response to the running instruction of the model.
[0084] In this embodiment, after the model is built, the client generates a model file of the model when receiving the preset running instruction of the model. Optionally, in this embodiment, the model file generated by the client can be an XML file, of course, it can also be a file in other forms, and this embodiment does not limit the specific form of the model file.
[0085] The client generates a model file using extensible markup language based on the model, wherein the content of the model file may include: the model's operators and operator parameters <processes>, the input and output connection relationship between operators <relations>, connection information of distributed cluster <environments>, UI information of operators in the visualization interface <ui>.
[0086] S205: The client sends the model file to the server.
[0087] In this step, the client sends the generated model file to the server so that the server controls the distributed cluster to calculate each operator in the model file.
[0088] In this embodiment, the model file may include configured cluster information.
[0089] S206. When receiving the model file sent by the client, the server parses the model file to obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and the cluster information.
[0090] In this embodiment, the cluster address in the cluster information is used to indicate the distributed cluster of each operator included in the running model.
[0091] In this embodiment, the server is configured with a parsing execution engine, which is used to parse the model file and control the distributed cluster indicated by the cluster address to execute the computing tasks of each operator in the model file.
[0092] Optionally, in this step, the parsing execution engine may use the Executor class to parse the content of the model file and identify the operators and structures in the model file.
[0093] S207: The server controls the distributed cluster indicated by the cluster address to execute the computing tasks of each operator included in the model.
[0094] Optionally, in this embodiment, the process of the execution engine controlling the distributed cluster indicated by the cluster address to execute the computing tasks of each operator in the model file may include the following steps A1 to A3:
[0095] A1. Identify the target operator and the cache operator from the parsed operators.
[0096] In this step, the target operator is the operator to be executed in a distributed manner.
[0097] In this embodiment, the parsing execution engine parses the target operator and the Cache operator and their connection relationship according to the generation rule of the model file.
[0098] A2. Start the Driver process.
[0099] In this step, the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster indicated by the cluster address.
[0100] In this embodiment, after receiving the Driver process, the Master node of the distributed cluster distributes the computing task partitions of the target operator to the Worker node for parallel computing. The specific implementation process of the Master node distributing the target operator to the Worker node is an existing technology and will not be repeated here.
[0101] A3. Send the Cache operator to the Master node of the distributed cluster.
[0102] In this embodiment, when the parsing execution engine identifies the Cache operator from the operators obtained from the parsing model file, the identified Cache operator is sent to the Master node of the distributed cluster indicated by the cluster address.
[0103] In this embodiment, after receiving the Cache operator, the Master node sends a cache instruction to the Worker node. For each Worker, after completing the partition calculation of the key operator, the intermediate results of the partition are cached in their respective memories. When the key operator needs to be executed multiple times, the data is directly read from the cache for calculation without recalculating the key operator and its predecessor operator.
[0104] In this embodiment, the Worker node feeds back the calculation results and progress to the Master node, which performs task integration and feeds back the task integration results to the Driver process. The Driver process receives the task integration results and stores them in memory, and then sends the task integration results to the distributed computing cluster to directly perform the calculation of the next operator in the model without writing and reading data on disk.
[0105] It should be noted that, in this embodiment, if the distributed cluster is configured with a Master standby node, when the Master node changes state, the state can be synchronized to the Master standby node. The specific implementation method of synchronization is the existing technology and will not be repeated here.
[0106] In this embodiment, the client also supports the function of saving the constructed model, so as to use or edit the saved constructed model later. Specifically, the specific implementation process of the client realizing the function of saving the constructed model may include the following steps B1 to B4:
[0107] B1. When an export instruction is received, a model file of the model indicated by the export instruction is generated to obtain a model file to be saved.
[0108] In this step, upon receiving the model export instruction, the client generates a model file of the model indicated by the export instruction. For the convenience of description, the model file generated in this step is referred to as a model file to be saved.
[0109] B2. Save the model file to be saved.
[0110] Optionally, in this step, the client can save the model file to be saved in a local preset storage path. Of course, saving locally is only a specific saving method. In practice, other saving methods can also be used, such as saving on the server side. This embodiment does not limit the specific saving method.
[0111] B3. When receiving the preset import instruction, the saved model file is displayed.
[0112] In this step, when the client receives the export instruction of the historical model building, the client displays the model file historically saved locally.
[0113] B4. In response to a selection instruction for any model file among the displayed model files, display the model of the model file indicated by the selection instruction.
[0114] In this step, the client responds to a selection instruction for any model file among the displayed model files and displays the model of the model file indicated by the selection instruction. That is, the client restores the model to a visual form in the canvas, wherein the restored model retains the overall process and parameter settings of the model.
[0115] In this embodiment, the client and the server also support a sharing function of historically established models. Specifically, when the client receives a preset publishing instruction, it sends the established model indicated by the publishing instruction to the server.
[0116] In this embodiment, when the server receives the established model sent by the client, it saves the established model in the operator list of the visual modeling service. When any client connected to the server connects to the visual modeling service, the established model can be obtained from the operator list of the display interface of the client, and the established model can be reused in the same way as a common operator, thereby achieving sharing of the established model.
[0117] In this embodiment, the parsing execution engine includes two classes: operator factory (IProcessFactory) and custom operator (IProcess). IProcessFactory can be used to discover and create IProcess operators. Since this application is developed based on the JVM environment, it supports operator extensions in development languages under the JVM environment, such as Java / Scala, and implements RPC remote call support for the Python language, so that this application can use multiple development languages (Java / Scala / Python) to create custom operators. After creating a custom operator, it can be added to the operator list through a jar package to achieve the expansion of the operator in the operator list, so that the extended operator can be associated and combined with the existing operator to achieve flexible concatenation and build a variety of operation processes.
[0118] Specifically, the specific implementation process of the client and the server in this embodiment to implement operator extension may include the following steps C1 to C3:
[0119] C1. The client uploads the jar package of the custom operator to the library folder of the server.
[0120] In this embodiment, the creation process of any operator may include: customizing IProcessFactory and IProcess, implementing the logic of the custom operator, and injecting IProcess into IProcessFactory using the annotation mechanism of SPI.
[0121] In this step, the client uploads the jar package of the custom operator to the library folder of the server.
[0122] C2. The server queries the newly added JAR package in the library folder.
[0123] In this step, the visual modeling service of the server queries the newly added JAR package in the library folder. The specific implementation method of this step is the existing technology and will not be repeated here.
[0124] C3. The server parses the newly added JAR package to obtain the newly added operator.
[0125] In this step, the server parses the newly added JAR package to obtain an operator. For the convenience of description, the operator obtained by parsing is called a newly added operator. The specific implementation method of this step is the existing technology and will not be repeated here.
[0126] C4. The server adds the new operator to the operator list of the visual modeling service.
[0127] In this step, the server adds the new operator to the operator list of the visual modeling service, so that after the client connects to the visual modeling service, the new operator can be obtained from the client's operator list, thereby providing conditions for combining the new operator with the existing operator.
[0128] This embodiment has the following beneficial effects:
[0129] Beneficial effect 1:
[0130] This embodiment calls a distributed computing cluster through the server, and uses multiple and scalable Worker nodes of the distributed cluster to distribute and execute analysis tasks, which greatly improves the operating performance of the geospatial data model and provides technical support for complex spatial computing of large-scale geospatial data.
[0131] Beneficial effect 2:
[0132] The method for processing massive geographic spatial data provided in this embodiment can automate the spatial analysis and data management processes and share memory, without the need to save and re-read intermediate results. This embodiment implements a partitioned cache mechanism for key operators that require multiple calculations, thereby achieving multiple uses of the key operator calculation results after one calculation, thereby improving the utilization rate of the calculation results of the distributed cluster and the execution efficiency of distributed computing.
[0133] Beneficial effect three:
[0134] The client of this embodiment provides the function of visually constructing a geospatial data processing model. The geospatial data processing model can be created and modified. In addition, this embodiment can save the geospatial data processing model built by the client to the local computer in the form of a file, which is convenient for subsequent multiple reading and editing.
[0135] Beneficial effect 4:
[0136] In this embodiment, the server supports storing the established models published by the client, and adds the established models to the operator list of the visual modeling service to facilitate the client's reuse, providing a way for the multi-domain and cross-system flow of geospatial data processing models.
[0137] Beneficial effect 5:
[0138] In this embodiment, the server discovers the custom operator factory class and the custom operator class through the SPI mechanism and adds them to the visual modeling service, so that users do not need to consider issues such as how to connect operators in series and build models. They can combine custom spatial analysis algorithms with existing operators to meet the needs of various industries for customized construction of domain models.
[0139] In summary, the geoprocessing service provided in this embodiment supports visualization construction, model storage and sharing, and scalable visualization modeling, which improves the production efficiency of distributed geoprocessing technology, increases the computing speed of traditional geospatial big data processing, and promotes the application of distributed computing in spatial big data.
[0140] Figure 4 A device for processing geographic spatial data provided in an embodiment of the present application is applied to a client, and includes: a connection module 401, a first response module 402, a second response module 403, a third response module 404 and a sending module 405.
[0141] The connection module 401 is used to connect to the visual modeling service of the server when receiving the start instruction; the visual modeling service is used to provide a plurality of predefined operators for the client.
[0142] The first response module 402 is used to establish a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator.
[0143] The second response module 403 is used to configure the cluster information of the model in response to the configuration instruction of the cluster information of the model; the cluster information includes the cluster address.
[0144] The third response module 404 is used to generate a model file of the model in response to the running instruction of the model; the model file includes cluster information.
[0145] The sending module 405 is used to send the model file to the server.
[0146] Optionally, the device for processing geographic spatial data may further include: a first storage module and a display module.
[0147] Among them, the first saving module is used to generate a model file of the model indicated by the export instruction when receiving the export instruction, obtain the model file to be saved; and save the model file to be saved.
[0148] The display module is used to display the saved model files when receiving a preset import instruction; and in response to a selection instruction for any model file among the displayed model files, display the model of the model file indicated by the selection instruction.
[0149] Optionally, the device for processing geographic location data may further include:
[0150] The publishing module is used to respond to a preset publishing instruction of the model and send the established model indicated by the publishing instruction to the server.
[0151] Figure 5 A device for processing geographic spatial data provided in an embodiment of the present application is applied to a server, comprising: a parsing module 501 and a control module 502, wherein:
[0152] The parsing module 501 is used to parse the model file when receiving the model file sent by the client, and obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and cluster information; the cluster information includes the cluster address; the cluster address is used to indicate the distributed cluster of each operator included in the running model.
[0153] The control module 502 is used to control the computing tasks of each operator included in the distributed cluster execution model indicated by the cluster address in the cluster information.
[0154] Optionally, the control module is used to control the computing tasks of each operator included in the distributed cluster execution model indicated by the cluster address in the cluster information, including:
[0155] The control module is specifically used to identify the target operator and the Cache operator from the parsed operators; the target operator is the operator to be executed in a distributed manner; the Driver process is started; the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster; and the Cache operator is sent to the Master node of the distributed cluster.
[0156] Optionally, the geographic spatial data processing device may further include:
[0157] The second saving module is used to save the established model in the operator list of the visual modeling service when receiving the established model sent by the client.
[0158] Optionally, the geographic spatial data processing device may further include:
[0159] The execution module is used to query the newly added JAR package in the library folder; parse the newly added JAR package to obtain the newly added operator; and add the newly added operator to the operator list of the visual modeling service.
[0160] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0161] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0162] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.< / ui> < / environments> < / relations> < / processes>
Claims
1. A method for processing geographic spatial data, characterized in that: Applied to a client, the client is connected to a server, the server is connected to a distributed cluster, the distributed cluster is a distributed cluster of a Spark framework, the distributed cluster of the Spark framework includes a Master node and multiple Worker nodes, including: Upon receiving the start instruction, connecting to a visual modeling service of the server; the visual modeling service is used to provide a plurality of predefined operators for the client; In response to a drag instruction for any one of the plurality of operators, and in response to a connection instruction for the dragged operator, a model is established; In response to a configuration instruction for cluster information of the model, configure cluster information of the model; the cluster information includes a cluster address, and the cluster address indicates a distributed cluster used to run each operator in the constructed model; In response to the running instruction of the model, a model file of the model is generated; the model file includes the operator, the input-output relationship between the operators, and the cluster information; wherein the client generates the model file using the extensible markup language according to the model; the model file is sent to the server, so that the parsing execution engine in the server parses the model file, and calls the Driver process to control the distributed cluster to perform distributed computing according to the operator obtained by parsing the model file; The process of the execution engine controlling the distributed cluster indicated by the cluster address to execute the computing tasks of each operator in the model file includes: From the parsed operators, identify the target operator and the Cache operator, where the target operator is the operator to be executed in a distributed manner; Start the Driver process, which is used to send the execution task of the target operator to the Master node of the distributed cluster indicated by the cluster address; Send the Cache operator to the Master node of the distributed cluster.
2. The method according to claim 1, characterized in that Also includes: When receiving the export instruction, generating a model file of the model indicated by the export instruction to obtain a model file to be saved; Saving the model file to be saved; In case of receiving a preset import instruction, displaying the saved model file; In response to a selection instruction for any model file among the displayed model files, a model of the model file indicated by the selection instruction is displayed.
3. The method according to claim 1, characterized in that Also includes: In response to a preset publishing instruction of the model, the established model indicated by the publishing instruction is sent to the server.
4. A method for processing geographic spatial data, characterized in that: Applied to a server, the server is connected to a client and a distributed cluster respectively, the distributed cluster is a distributed cluster of a Spark framework, the distributed cluster of the Spark framework includes a Master node and multiple Worker nodes, including: When receiving a model file sent by a client, the model file is parsed to obtain operators included in the model indicated by the model file, input-output relationships between operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate a distributed cluster for running each operator included in the model; the model file is generated by the client using extensible markup language according to the model; Controlling the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model; The controlling the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model includes: From the parsed operators, identify the target operator and the Cache operator; the target operator is the operator to be executed in a distributed manner; Start the Driver process; the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster; Send the Cache operator to the Master node of the distributed cluster.
5. The method according to claim 4, characterized in that Also includes: When the established model sent by the client is received, the established model is saved in the operator list of the visual modeling service.
6. The method according to claim 4, characterized in that Also includes: Query the newly added JAR package in the library folder; Parse the newly added JAR package to obtain the newly added operator; The newly added operator is added to the operator list of the visual modeling service.
7. A device for processing geographic spatial data, characterized in that: Applied to a client, the client is connected to a server, the server is connected to a distributed cluster, the distributed cluster is a distributed cluster of a Spark framework, the distributed cluster of the Spark framework includes a Master node and multiple Worker nodes, including: A connection module, used for connecting to a visual modeling service of a server upon receiving a start instruction; the visual modeling service is used for providing a plurality of predefined operators for the client; A first response module, configured to establish a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator; A second response module, configured to configure the cluster information of the model in response to a configuration instruction for the cluster information of the model; the cluster information includes a cluster address, and the cluster address indicates a distributed cluster used to run each operator in the constructed model; a third response module, configured to generate a model file of the model in response to an instruction to run the model; the model file includes operators, input-output relationships between operators, and the cluster information; wherein the client generates the model file using extensible markup language according to the model; A sending module is used to send the model file to the server, so that the parsing execution engine in the server parses the model file, and calls the Driver process to control the distributed cluster to perform distributed computing based on the operator obtained by parsing the model file; The process of the execution engine controlling the distributed cluster indicated by the cluster address to execute the computing tasks of each operator in the model file includes: From the parsed operators, identify the target operator and the Cache operator, where the target operator is the operator to be executed in a distributed manner; Start the Driver process, which is used to send the execution task of the target operator to the Master node of the distributed cluster indicated by the cluster address; Send the Cache operator to the Master node of the distributed cluster.
8. A device for processing geographic spatial data, characterized in that: Applied to a server, the server is connected to a client and a distributed cluster respectively, the distributed cluster is a distributed cluster of a Spark framework, the distributed cluster of the Spark framework includes a Master node and multiple Worker nodes, including: A parsing module is used to parse the model file when receiving the model file sent by the client, and obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate the distributed cluster running the operators included in the model; the model file is generated by the client using extensible markup language according to the model; A control module, used to control the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model; The controlling the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model includes: From the parsed operators, identify the target operator and the Cache operator; the target operator is the operator to be executed in a distributed manner; Start the Driver process; the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster; Send the Cache operator to the Master node of the distributed cluster.
9. A system for processing geographic spatial data, characterized in that: include: A client, a server and a distributed cluster, wherein the distributed cluster is a distributed cluster of a Spark framework, and the distributed cluster of the Spark framework includes a Master node and multiple Worker nodes; The client is used to connect to the visual modeling service of the server when receiving a start instruction; the visual modeling service is used to provide the client with a plurality of predefined operators; The client is further used to establish a model in response to a drag instruction for any operator among the multiple operators and in response to a connection instruction for the dragged operator; The client is further configured to receive cluster information of the model in response to a configuration instruction for cluster information of the model; the cluster information includes a cluster address; The client is further used to generate a model file of the model in response to an instruction to run the model; the model file includes the cluster information; the model file is generated by the client using extensible markup language according to the model; The client is also used to send the model file to the server; The server is used to parse the model file when receiving the model file sent by the client, and obtain the operators included in the model indicated by the model file, the input-output relationship between the operators, and cluster information; the cluster information includes a cluster address; the cluster address is used to indicate a distributed cluster running each operator included in the model; The server is further used to control the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model; The controlling the distributed cluster indicated by the cluster address in the cluster information to execute the computing tasks of each operator included in the model includes: From the parsed operators, identify the target operator and the Cache operator; the target operator is the operator to be executed in a distributed manner; Start the Driver process; the Driver process is used to send the execution task of the target operator to the Master node of the distributed cluster; Send the Cache operator to the Master node of the distributed cluster.
