Visual modeling method, system and equipment for spatial analysis process and medium
By building a visualization component library and using directed acyclic graph parsing technology, a low-code solution for WebGIS spatial analysis has been achieved, which lowers the operational threshold, improves the efficiency and reusability of process construction, and supports dynamic adjustment and visual collaboration.
Patent Information
- Application Number
- CN202511159047.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2025-11-28
AI Technical Summary
Traditional WebGIS spatial analysis operations have high barriers to entry, cumbersome workflow construction, poor reusability, low visualization, and are difficult to meet the needs of non-technical personnel.
This paper provides a visualization modeling method for spatial analysis processes. By constructing a visualization component library, it responds to user interaction commands to configure parameters and connect components. It uses a directed acyclic graph to parse and generate spatial analysis code in real time, and then visualizes and exports the results.
It enables the construction of a low-threshold spatial analysis workflow, improves workflow construction efficiency and reusability, supports dynamic adjustment and visual collaboration, reduces operational complexity, and enhances analysis efficiency.
Smart Images

Figure CN121029150A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network geographic information system technology, and in particular to a visualization modeling method, system, device and medium for spatial analysis processes. Background Technology
[0002] WebGIS, as an extension of Geographic Information Systems (GIS) in a network environment, has been widely applied in smart cities, natural resource management, transportation planning, and other fields. Spatial analysis is a core function of WebGIS, used to uncover spatial relationships and patterns hidden in geographic data. However, traditional WebGIS spatial analysis suffers from the following problems: High operational threshold: Users need to master professional programming languages or complex API interfaces, making it difficult to meet the needs of non-technical personnel. Cumbersome workflow construction: Spatial analysis workflows often involve multiple stages such as data preprocessing, spatial calculations, and result visualization; manually coding and constructing workflows is time-consuming and labor-intensive. Poor reusability: Repeated analysis tasks require rewriting code, and there is a lack of standardized workflow templates. Low visualization: The workflow logic and spatial analysis process are difficult to present intuitively, hindering user understanding and debugging.
[0003] Currently, although some WebGIS platforms have attempted to introduce visualization, these efforts mostly remain at the level of simple data display and have failed to achieve full-process visualized construction and management of spatial analysis workflows. How to lower the barrier to entry for WebGIS spatial analysis through visual drag-and-drop methods, and achieve efficient workflow construction, reuse, and dynamic adjustment, is a pressing issue that needs to be addressed. Summary of the Invention
[0004] The main objective of this invention is to provide a visualization modeling method, system, device, and medium for spatial analysis processes, aiming to solve at least one of the aforementioned technical problems.
[0005] In a first aspect, embodiments of the present invention provide a visualization modeling method for spatial analysis processes, including:
[0006] Build a visual component library;
[0007] In response to user input of canvas interaction commands, parameter configuration and component connection are performed based on the visualization component library to obtain the canvas workflow logic;
[0008] The workflow logic is parsed in real time based on a directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code;
[0009] The analysis results are visualized and exported based on the visualization component library.
[0010] In some embodiments, the construction of the visualization component library includes:
[0011] The spatial analysis process of a network geographic information system is functionally classified, and the classification results are obtained.
[0012] Different types of spatial analysis components are set up based on the classification results;
[0013] Each spatial analysis component is configured with a visual icon and interface definition, input or output parameter specification, and underlying spatial analysis algorithm setting to obtain an initial spatial analysis component.
[0014] The initial spatial analysis component is tested to obtain the tested component;
[0015] The tested components are stored in the library to obtain a visualization component library; wherein, the visualization component library includes data preprocessing components, spatial operation components, visualization components, and control flow components.
[0016] In some embodiments, the response to a user-input canvas interaction command, configuring parameters and connecting components based on the visualization component library to obtain the canvas workflow logic, includes:
[0017] In response to user input of component drag commands, display the target component and component nodes on the canvas;
[0018] In response to user configuration instructions based on parameters input from the component node, update the component properties;
[0019] In response to a user's component connection command input based on the component node, a connection is established between components to form a data flow path;
[0020] The workflow logic of the canvas is obtained based on the data flow path.
[0021] In some embodiments, the real-time parsing of the workflow logic based on a directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code includes:
[0022] Perform syntax validation on the workflow logic;
[0023] When the syntax check passes, the process parsing algorithm based on the directed acyclic graph automatically generates spatial analysis code according to the component configuration and connection relationship of the workflow logic;
[0024] The generated spatial analysis code is submitted to the backend server for execution, and the analysis results are received from the backend server.
[0025] In some embodiments, the method further includes:
[0026] During the execution of the workflow logic, in response to the user's input of preview node selection instructions and preview parameter setting instructions, the intermediate results of the execution up to the preview node are obtained;
[0027] The intermediate results are displayed in real time on the canvas;
[0028] Determine whether to continue debugging;
[0029] If so, in response to the user-defined debugging options, step through the process or set breakpoints in the workflow logic to execute step by step and view intermediate data status.
[0030] In some embodiments, the method further includes:
[0031] Acquire multi-source spatial data;
[0032] Based on the visualization component library, the multi-source spatial data is converted into a data format, converted to a coordinate system, and checked for data quality to obtain the processed data.
[0033] A data index is created based on the processed data, and data is stored and managed to provide data query services, data visualization services, or data analysis services.
[0034] In some embodiments, the method further includes:
[0035] Set up a workflow template library to save preset workflows as templates;
[0036] In response to user-input search criteria, keywords, application scenarios, and spatial analysis types are extracted based on the search criteria;
[0037] The corresponding target template is retrieved from the workflow template library based on the keywords, application scenarios, and spatial analysis types.
[0038] The target template is displayed and a parameter variable modification interface is provided to suit the user's analysis task.
[0039] Secondly, embodiments of the present invention provide a visualization modeling system for spatial analysis processes, comprising:
[0040] The component library building module is used to build a visual component library;
[0041] The canvas interaction module is used to respond to the canvas interaction commands input by the user, and to configure parameters and connect components based on the visualization component library to obtain the canvas workflow logic.
[0042] The code generation module is used to perform real-time parsing of the workflow logic based on the directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code;
[0043] The visualization display module is used to visualize and export the analysis results based on the visualization component library.
[0044] Thirdly, embodiments of the present invention provide an electronic device, including:
[0045] One or more processors;
[0046] Memory, used to store one or more programs;
[0047] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.
[0048] Fourthly, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.
[0049] This invention provides a visual modeling method for spatial analysis workflows, comprising: constructing a visual component library; responding to user-inputted canvas interaction commands, configuring parameters and connecting components based on the visual component library to obtain the canvas workflow logic; performing real-time parsing of the workflow logic based on a directed acyclic graph (DAG) to generate spatial analysis code and obtain the analysis results of the spatial analysis code; and visualizing and exporting the analysis results based on the visual component library. This invention defines a component drag-and-drop, parameter configuration, and connection mechanism suitable for WebGIS spatial analysis to realize the construction of a visual workflow. Based on a DAG workflow parsing algorithm, efficient and executable spatial analysis code is automatically generated, supporting dynamic optimization and parallel computing, thereby realizing the visual modeling and automated execution of spatial analysis workflows. This provides a novel low-code solution for WebGIS spatial analysis, which is conducive to promoting the popularization and innovative development of GIS technology in various industries. Attached Figure Description
[0050] Figure 1 A flowchart illustrating a spatial analysis process visualization modeling method provided in an embodiment of the present invention;
[0051] Figure 2 This is a schematic diagram of the three-layer architecture design involved in the embodiment of the present invention;
[0052] Figure 3 This is a schematic diagram of the technical route involved in the embodiments of the present invention;
[0053] Figure 4 This is a schematic diagram of the visual component library construction process involved in the embodiments of the present invention;
[0054] Figure 5 This is a schematic diagram of the workflow canvas interaction process involved in the embodiment of the present invention;
[0055] Figure 6 This is a schematic diagram of the automated process analysis and execution process involved in the embodiments of the present invention;
[0056] Figure 7 This is a schematic diagram of the real-time preview and dynamic debugging process involved in the embodiments of the present invention;
[0057] Figure 8 This is a schematic diagram of the spatial data integration and management process involved in the embodiments of the present invention;
[0058] Figure 9 This is a schematic diagram of the workflow template library and reuse mechanism involved in the embodiments of the present invention;
[0059] Figure 10 This is a schematic diagram of the input / output data structure code involved in the embodiment of the present invention;
[0060] Figure 11 A structural block diagram of a visualization modeling system for spatial analysis workflow provided in an embodiment of the present invention;
[0061] Figure 12 This is a structural block diagram of an electronic device provided in an embodiment of the present invention.
[0062] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0063] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0064] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.
[0065] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0066] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0067] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0068] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.
[0069] In related technologies, the following problems exist in the construction of WebGIS spatial analysis workflows: 1. High operational complexity: Non-technical users need to learn GIS professional knowledge and programming skills, making it difficult to independently complete the spatial analysis workflow design. 2. Low workflow construction efficiency: Manually writing code to implement spatial analysis steps, such as buffer analysis and overlay analysis, is time-consuming and error-prone. 3. Insufficient reusability: Existing workflows cannot be directly reused for similar analysis tasks, leading to redundant development and wasted resources. 4. Difficulty in dynamic adjustment: Traditional static code cannot quickly respond to changes in requirements, necessitating the redevelopment of the entire workflow. 5. Lack of visual representation: The workflow logic and spatial data processing lack intuitive display, hindering team collaboration and result verification. These problems severely restrict the popularization and application efficiency of WebGIS spatial analysis technology.
[0070] To address at least one of the technical problems existing in the aforementioned related technologies, the present invention provides a visualization modeling method for spatial analysis processes. Figure 1This is a flowchart illustrating a spatial analysis process visualization modeling method provided in an embodiment of the present invention.
[0071] As an embodiment of the present invention, such as Figure 1 As shown, the visualization modeling method for the spatial analysis process includes:
[0072] Step S100: Build a visual component library;
[0073] Step S200: In response to the user's input canvas interaction command, perform parameter configuration and component connection based on the visualization component library to obtain the canvas workflow logic;
[0074] Step S300: Perform real-time parsing of the workflow logic based on the directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code;
[0075] Step S400: Visualize and export the analysis results based on the visualization component library.
[0076] It should be noted that the execution subject in this embodiment can be an electronic device, which can be a computer device with data processing function, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, a computer device is used as an example for explanation.
[0077] Specifically, the method described in this embodiment is a WebGIS spatial analysis workflow construction method based on visual drag-and-drop. It is an innovative approach integrating WebGIS, visual drag-and-drop, spatial analysis, and workflow management. Through the collaborative work of a visual component library, a drag-and-drop interactive engine, and an automated process parser, it achieves a "what you see is what you get" construction of WebGIS spatial analysis workflows. It supports visual drag-and-drop of spatial analysis components, parameter configuration, and process connections, automatically generating executable spatial analysis code. It also provides a workflow template library, real-time preview, and dynamic debugging functions, significantly reducing the barrier to entry for WebGIS spatial analysis, improving workflow construction efficiency and reusability, and realizing visual modeling and automated execution of spatial analysis processes. This embodiment uses a visual drag-and-drop-based solution as an example to illustrate the low-code construction and intelligent management of workflows.
[0078] For example, the architecture design: This embodiment adopts a three-tier architecture design, including: a presentation layer, a logic layer, and a data layer. (See reference...) Figure 2 The architecture diagram shown and Figure 3The technology roadmap shown includes the following layers: Presentation Layer: Provides a visual drag-and-drop interface, including a component library panel, workflow canvas, and property configuration window. Logic Layer: Implements drag-and-drop interaction, process parsing, and spatial analysis algorithm scheduling. Data Layer: Manages spatial data sources, workflow template library, and analysis result storage.
[0079] In one embodiment, constructing a visualization component library includes: classifying the spatial analysis process of a network geographic information system by function to obtain classification results; setting different types of spatial analysis components according to the classification results; defining visualization icons and interfaces, specifying input or output parameters, and setting underlying spatial analysis algorithms for each spatial analysis component to obtain an initial spatial analysis component; testing the initial spatial analysis components to obtain tested components; and adding the tested components to the library to obtain a visualization component library; wherein the visualization component library includes data preprocessing components, spatial computation components, visualization components, and control flow components.
[0080] Specifically, the visualization component library is built with a rich set of pre-defined spatial analysis components, which can be categorized by function as: data preprocessing components, spatial computation components, visualization components, and control flow components.
[0081] For example, such as Figure 4 As shown, the data preprocessing components include data cleaning, coordinate transformation, and format conversion. Spatial computation components include buffer analysis, overlay analysis, network analysis, and interpolation analysis. Visualization components include thematic map generation, 3D scene rendering, and dynamic symbol configuration. Control flow components include conditional statements, loop iterations, and sub-process calls. Each component includes: visualization icons and interface definitions; input / output parameter specifications; and underlying spatial analysis algorithm implementation.
[0082] In one embodiment, in response to a user-inputted canvas interaction command, parameter configuration and component connection are performed based on the visual component library to obtain the canvas workflow logic, including: in response to a user-inputted component drag command, displaying the target component and component nodes on the canvas; in response to a user-inputted parameter configuration command based on the component nodes, updating component properties; in response to a user-inputted component connection command based on the component nodes, establishing connections between components to form a data flow path; and obtaining the canvas workflow logic based on the data flow path.
[0083] Specifically, such as Figure 5 As shown, this illustrates workflow canvas interaction. In practical applications, users can build workflows through the following operations: component dragging and dropping, dragging target components from the component library to the canvas; parameter configuration, double-clicking a component to open its properties window and setting input data and algorithm parameters (such as buffer radius, analysis fields, etc.); and process connection, establishing input / output connections between components by dragging and dropping with the mouse to form data flow paths.
[0084] For example, such as Figure 5 As shown, when a user opens the WebGIS system, the computer receives the user's request and loads a component list. The user selects a component from the list and drags it onto the canvas. The computer adds the selected component to the canvas as a component node. When the user double-clicks a component node on the canvas, the computer displays the component's properties panel. The user modifies the component's properties in the properties panel, and the computer updates the component's display on the canvas in real time to reflect the property changes. When the user initiates a command to save the workflow, the computer stores the current workflow definition.
[0085] In one embodiment, the workflow logic is parsed in real time based on a directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code. This includes: performing syntax verification on the workflow logic; when the syntax verification passes, automatically generating spatial analysis code based on a directed acyclic graph process parsing algorithm according to the component configuration and connection relationship of the workflow logic; submitting the generated spatial analysis code to a backend server for execution, and receiving the analysis results fed back by the backend server.
[0086] Specifically, this involves automated process parsing and execution. Real-time parsing of workflow logic within the canvas, such as... Figure 6 As shown, the syntax validation checks the validity of component connections, such as whether input and output data types match. Code generation automatically generates executable code based on GIS scripting languages (e.g., PyQGIS, ArcPy) or WebGL, according to component configuration and connection relationships. Task scheduling submits the generated code to a backend server for execution, supporting distributed computing.
[0087] In one embodiment, the method further includes: during the execution of the workflow logic, in response to a user-inputted preview node selection instruction and preview parameter setting instruction, obtaining intermediate results executed up to the preview node; displaying the intermediate results in real time on the canvas; determining whether to continue debugging; if so, in response to the debugging options set by the user, performing single-step execution or setting breakpoints in the workflow logic to perform step-by-step execution and view the intermediate data status.
[0088] Specifically, it allows for real-time preview and dynamic debugging. For example... Figure 7 As shown, the visualization preview displays intermediate spatial analysis results in real time on the canvas, such as the buffer analysis range and the intersection area of overlay analysis. Breakpoint debugging supports setting breakpoints in the workflow, allowing step-by-step execution and viewing of intermediate data status. Error diagnosis automatically identifies errors in process execution (such as missing data or abnormal algorithm parameters), providing visual error location and repair suggestions.
[0089] For example, based on the analysis objectives and data characteristics, appropriate spatial analysis methods can be selected, including but not limited to buffer analysis, overlay analysis, network analysis, and spatial statistical analysis. For instance, when assessing the impact of a road on the surrounding area, buffer analysis can be used to determine the affected area.
[0090] In one embodiment, the method further includes: acquiring multi-source spatial data; performing data format conversion, coordinate system unification, and data quality checks on the multi-source spatial data based on the visualization component library to obtain processed data; establishing a data index based on the processed data, and storing and managing the data to provide data query services, data visualization services, or data analysis services.
[0091] Specifically, spatial data integration and management. For example... Figure 8 As shown, it supports multi-source data access: Shapefile, GeoJSON, WMS / WFS services, database spatial tables, and other data sources. Data mapping mechanism: Field mapping and coordinate system unification for different data formats are achieved through visual configuration. Real-time data updates: Supports the access and processing of dynamic data sources (such as GPS trajectory streams and IoT sensor data).
[0092] In one embodiment, the method further includes: setting a workflow template library to save preset workflows as templates; responding to user-input search conditions, extracting keywords, application scenarios, and spatial analysis types based on the search conditions; retrieving a corresponding target template from the workflow template library according to the keywords, application scenarios, and spatial analysis types; displaying the target template and providing a parameter variable modification interface to adapt to the user's analysis task.
[0093] Specifically, workflow template libraries and reuse mechanisms. For example... Figure 9 As shown, template creation allows users to save frequently used workflows as templates and set template parameter variables. Template retrieval allows users to search for templates by keywords, application scenarios, or spatial analysis types. Parameterized reuse allows users to dynamically modify parameter variables when calling a template, quickly adapting it to similar analysis tasks.
[0094] In one embodiment, the analysis results are visualized and exported based on the visualization component library.
[0095] Specifically, the results are visualized and exported. Multi-dimensional display: Supports various visualization methods such as 2D maps, 3D scenes, and statistical charts. Interactive operations: Enables interactive functions such as map zooming, feature querying, and result filtering. Results export: Supports exporting analysis results in formats such as PDF reports, vector data, and imagery.
[0096] It is understood that in this embodiment, the component interface is designed with standardization. For example, a unified component interface specification is adopted to define the input / output data structure (such as...). Figure 10 (As shown). In this embodiment, the workflow logic is modeled using a Directed Acyclic Graph (DAG), where each node is a spatial analysis component and edges represent data flow directions. For example, the execution order of components is determined through topological sorting, supporting parallel computing optimization. In this embodiment, the visualization drag-and-drop engine is implemented using HTML5Canvas / SVG and mouse event listeners to achieve drag, scaling, and rotation operations of components, as well as the drawing and dynamic adjustment of Bézier curves for connecting lines. In this embodiment, traditional spatial analysis algorithms are optimized for the characteristics of the Web environment: spatial indexes (e.g., R-trees) are used to accelerate spatial queries; incremental computation is implemented to avoid redundant processing of unchanged data; and WebGL hardware acceleration is supported to improve 3D visualization performance.
[0097] It should be noted that, compared with related technologies, this embodiment has the following advantages: 1. Low barrier to entry: Through a visual drag-and-drop interface, non-technical users can independently complete the construction of complex spatial analysis workflows without writing code. 2. Efficient workflow construction: Workflow construction efficiency is improved by more than 50%, and templates can be directly reused for repetitive tasks, reducing development time. 3. Dynamic adjustability: Supports real-time modification and re-execution of workflows, quickly responding to changes in requirements. 4. Visual collaboration: Workflow logic is presented intuitively, facilitating understanding, review, and collaborative development among team members. 5. Cross-platform compatibility: Implemented based on Web technology, it supports access from mainstream browsers and mobile devices, requiring no client software installation.
[0098] Specifically, the key technical value of this embodiment lies in proposing an innovative method that integrates WebGIS, visual drag-and-drop, spatial analysis, and workflow management, realizing the visual modeling and automated execution of spatial analysis processes. Specifically, it includes: 1. A visual drag-and-drop interactive model: defining a component drag-and-drop, parameter configuration, and process connection mechanism suitable for WebGIS spatial analysis, achieving a "what you see is what you get" workflow construction. 2. A component-based spatial analysis engine: encapsulating complex spatial analysis algorithms into reusable components, enabling data interaction and process collaboration between components through standardized interfaces. 3. Intelligent workflow parsing technology: based on a directed acyclic graph (DAG) process parsing algorithm, automatically generating efficient and executable spatial analysis code, supporting dynamic optimization and parallel computing. 4. A template-based reuse mechanism: establishing a workflow template library and a parameterized configuration system to achieve rapid reuse and personalized adjustments for similar analysis tasks. 5. A real-time visual debugging system: providing visual preview and breakpoint debugging functions for the spatial analysis process, improving the observability of process development and the efficiency of error location. This embodiment provides a new low-code solution for WebGIS spatial analysis, promoting the widespread application and innovative development of GIS technology across various industries.
[0099] This embodiment provides a visualization modeling method for spatial analysis workflows, including: constructing a visualization component library; responding to user-inputted canvas interaction commands, configuring parameters and connecting components based on the visualization component library to obtain the canvas workflow logic; performing real-time parsing of the workflow logic based on a directed acyclic graph (DAG) to generate spatial analysis code and obtain the analysis results of the spatial analysis code; and visualizing and exporting the analysis results based on the visualization component library. In this embodiment, a component drag-and-drop, parameter configuration, and connection mechanism suitable for WebGIS spatial analysis is defined to realize the construction of a visualized workflow. Based on the DAG workflow parsing algorithm, efficient and executable spatial analysis code is automatically generated, supporting dynamic optimization and parallel computing, thereby realizing the visualized modeling and automated execution of the spatial analysis workflow. This provides a new low-code solution for WebGIS spatial analysis, which is conducive to promoting the popularization and innovative development of GIS technology in various industries.
[0100] Reference Figure 11 , Figure 11 This is a structural block diagram of an embodiment of the visualization modeling system for spatial analysis workflow of the present invention. Figure 11 As shown, the visualization modeling system for the spatial analysis process includes:
[0101] Component library building module 10 is used to build a visual component library;
[0102] The canvas interaction module 20 is used to respond to the canvas interaction commands input by the user, and to configure parameters and connect components based on the visualization component library to obtain the canvas workflow logic.
[0103] The code generation module 30 is used to perform real-time parsing of the workflow logic based on the directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code;
[0104] The visualization display module 40 is used to visualize and export the analysis results based on the visualization component library.
[0105] This embodiment provides a visual modeling system for spatial analysis workflows, proposing an innovative system that integrates WebGIS, visual drag-and-drop, spatial analysis, and workflow management, achieving visual modeling and automated execution of spatial analysis workflows. Specifically, it includes: 1. A visual drag-and-drop interactive model: defining a component drag-and-drop, parameter configuration, and workflow connection mechanism suitable for WebGIS spatial analysis, achieving a "what you see is what you get" workflow construction. 2. A component-based spatial analysis engine: encapsulating complex spatial analysis algorithms into reusable components, enabling data interaction and workflow collaboration between components through standardized interfaces. 3. Intelligent workflow parsing technology: based on a directed acyclic graph (DAG) workflow parsing algorithm, automatically generating efficient and executable spatial analysis code, supporting dynamic optimization and parallel computing. 4. A template-based reuse mechanism: establishing a workflow template library and a parameterized configuration system to achieve rapid reuse and personalized adjustments for similar analysis tasks. 5. A real-time visual debugging system: providing visual preview and breakpoint debugging functions for the spatial analysis process, improving the observability of workflow development and the efficiency of error location. This embodiment provides a new low-code solution for WebGIS spatial analysis, promoting the widespread application and innovative development of GIS technology across various industries.
[0106] It should be noted that technical details not described in detail in the visualization modeling system embodiment of this spatial analysis process can be found in the visualization modeling method applied to the spatial analysis process described above, provided in any embodiment of the present invention, and will not be repeated here.
[0107] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 12 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 12 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement a visualization modeling method for any of the spatial analysis processes described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.
[0108] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0109] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0110] In some embodiments, the one or more processors 101 include a field-programmable gate array.
[0111] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps in the visualization modeling method of any of the spatial analysis flows described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.
[0112] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the visualization modeling method of the above-described spatial analysis process.
[0113] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0114] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0115] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0116] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0117] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0118] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0119] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0120] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0122] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. A visualization modeling method for spatial analysis processes, characterized in that, include: Build a visual component library; In response to user input of canvas interaction commands, parameter configuration and component connection are performed based on the visualization component library to obtain the canvas workflow logic; The workflow logic is parsed in real time based on a directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code; The analysis results are visualized and exported based on the visualization component library.
2. The method as described in claim 1, characterized in that, The construction of the visualization component library includes: The spatial analysis process of a network geographic information system is functionally classified, and the classification results are obtained. Different types of spatial analysis components are set up based on the classification results; Each spatial analysis component is configured with a visual icon and interface definition, input or output parameter specification, and underlying spatial analysis algorithm setting to obtain an initial spatial analysis component. The initial spatial analysis component is tested to obtain the tested component; The tested components are stored in the library to obtain a visualization component library; wherein, the visualization component library includes data preprocessing components, spatial operation components, visualization components, and control flow components.
3. The method as described in claim 1, characterized in that, The response to user-inputted canvas interaction commands involves configuring parameters and connecting components based on the visualization component library to obtain the canvas workflow logic, including: In response to user input of component drag commands, display the target component and component nodes on the canvas; In response to user configuration instructions based on parameters input from the component node, update the component properties; In response to a user's component connection command input based on the component node, a connection is established between components to form a data flow path; The workflow logic of the canvas is obtained based on the data flow path.
4. The method as described in claim 1, characterized in that, The real-time parsing of the workflow logic based on a directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code includes: Perform syntax validation on the workflow logic; When the syntax check passes, the process parsing algorithm based on the directed acyclic graph automatically generates spatial analysis code according to the component configuration and connection relationship of the workflow logic; The generated spatial analysis code is submitted to the backend server for execution, and the analysis results are received from the backend server.
5. The method as described in claim 4, characterized in that, The method further includes: During the execution of the workflow logic, in response to the user's input of preview node selection instructions and preview parameter setting instructions, the intermediate results of the execution up to the preview node are obtained; The intermediate results are displayed in real time on the canvas; Determine whether to continue debugging; If so, in response to the user-defined debugging options, step through the process or set breakpoints in the workflow logic to execute step by step and view intermediate data status.
6. The method as described in claim 1, characterized in that, The method further includes: Acquire multi-source spatial data; Based on the visualization component library, the multi-source spatial data is converted into a data format, converted to a coordinate system, and checked for data quality to obtain the processed data. A data index is created based on the processed data, and data is stored and managed to provide data query services, data visualization services, or data analysis services.
7. The method as described in claim 1, characterized in that, The method further includes: Set up a workflow template library to save preset workflows as templates; In response to user-input search criteria, keywords, application scenarios, and spatial analysis types are extracted based on the search criteria; The corresponding target template is retrieved from the workflow template library based on the keywords, application scenarios, and spatial analysis types. The target template is displayed and a parameter variable modification interface is provided to suit the user's analysis task.
8. A visualization modeling system for spatial analysis processes, characterized in that, include: The component library building module is used to build a visual component library; The canvas interaction module is used to respond to the canvas interaction commands input by the user, and to configure parameters and connect components based on the visualization component library to obtain the canvas workflow logic. The code generation module is used to perform real-time parsing of the workflow logic based on the directed acyclic graph to generate spatial analysis code and obtain the analysis results of the spatial analysis code; The visualization display module is used to visualize and export the analysis results based on the visualization component library.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
Citation Information
Cited By
Connection dragging configuration information system and method based on medical system
CN121300845A
