Microservice-based stormwater consultation system

By integrating the rainstorm and flood consultation system based on a microservice architecture with a spatial consultation system, the problems of traditional models being difficult to integrate and visualize are solved. This enables online calculation and simulation results display, improving the efficiency and accuracy of disaster relief.

CN116205055BActive Publication Date: 2026-03-24AEROSPACE INFORMATION RES INST CAS
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-16
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing spatial consultation systems lack professional disaster analysis functions, traditional rainstorm and flood management models are difficult to integrate with external application systems, and cannot achieve map visualization of rainstorm and flood simulation results.

Method used

The system adopts a microservices-based architecture, decomposing the rainstorm and flood management model into rainstorm simulation calculation, simulation result analysis, and simulation result visualization modules. It is integrated with a spatial consultation system, and data transmission and visualization are achieved through a communication rules module.

Benefits of technology

It enables online calculation of rainstorm and flood management models and visualization of rainstorm simulation results, improving the efficiency and accuracy of flood control and rescue decision-making, and providing a brand-new online discussion platform for disaster relief.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116205055B_ABST
    Figure CN116205055B_ABST
Patent Text Reader

Abstract

The application provides a rain flood consultation system based on micro services, which comprises a rain flood management model micro service and a spatial rain flood consultation system, the rain flood management model micro service comprising a rain flood simulation calculation module, a simulation result analysis module, a simulation result visualization module and a communication rule module; the rain flood simulation calculation module, the simulation result analysis module and the simulation result visualization module are respectively connected with the communication rule module; the rain flood simulation calculation module performs real-time online calculation on the rain flood management model; the simulation result analysis module performs online analysis and data management on the simulation result of the rain flood management model; the simulation result visualization module displays the simulation result of the rain flood; and the communication rule module establishes a communication connection between the rain flood management model micro service and the spatial rain flood consultation system. The rain flood consultation system based on micro services provided in the application integrates the rain flood management model after micro service and the spatial consultation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computers, and more particularly to a microservice-based rain and flood consultation system. Background Technology

[0002] Currently, spatial consultation systems rely on Geographic Information System (GIS) functionality as the core tool for disaster analysis, including modules such as map editing, annotation, and spatial analysis. However, the GIS functions of these systems are general-purpose and applicable to most consultation scenarios. They lack specialized disaster analysis capabilities when dealing with specific disasters. The Storm Water Management Model (SWMM), a mature and widely used hydrological and hydrodynamic model, is a traditional standalone client program. Its deployment is cumbersome, it struggles to exchange data with external applications, and it cannot visualize stormwater simulation results on maps. Furthermore, current spatial consultation systems are built on WebGIS, making them web-oriented applications, which hinders the integration of the SWMM model with the spatial consultation system. Summary of the Invention

[0003] This invention provides a microservice-based rain and flood consultation system, which aims to integrate the microservice-based rain and flood management model with the spatial consultation system.

[0004] In a first aspect, the present invention provides a microservice-based rain and flood consultation system, the microservice-based rain and flood consultation system including a rainstorm and flood management model microservice and a spatial rain and flood consultation system, the rainstorm and flood management model microservice including a rain and flood simulation calculation module, a simulation result parsing module, a simulation result visualization module and a communication rule module;

[0005] The stormwater simulation calculation module, the simulation result parsing module, and the simulation result visualization module each establish a communication connection with the communication rule module.

[0006] The rainfall simulation calculation module is used for real-time online calculation of the rainstorm and flood management model;

[0007] The simulation result analysis module is used for online analysis and data management of the simulation results of the rainstorm and flood management model;

[0008] The simulation results visualization module is used to display the results of the rainstorm simulation, the dynamic simulation of water level in drainage pipelines based on the 3D geographic information system, the rainstorm simulation results, and the analysis of the inundation range based on the digital elevation model, which converts the one-dimensional simulation results into geographic information system data.

[0009] The communication rules module is used to establish a communication connection between the rainstorm and flood management model microservice and the spatial rainstorm and flood consultation system based on the transmission protocol.

[0010] In one embodiment, the stormwater simulation calculation module includes a stormwater and flood management model file management component and an online real-time simulation calculation component;

[0011] The storm flood management model file management component is used to generate and manage the input and output files of the storm flood management model;

[0012] The online real-time simulation calculation component is used to read the input file of the rainstorm and flood management model provided by the rainstorm and flood management model file management component, and call the dynamic link library of the rainstorm and flood management model to perform rainstorm and flood management model calculations and generate output files.

[0013] The simulation result parsing module includes a simulation output file structure parsing component and a rainstorm and flood management model object management component;

[0014] The storm flood management model object management component is used to create and save the sub-catchments, pipelines and nodes of the storm flood management model;

[0015] The simulation output file structure parsing component is used to extract stormwater simulation results from the sub-catchments, pipelines, and nodes created and saved by the stormwater and flood management model object management component;

[0016] The simulation output file structure parsing component is also used to determine the parsing strategy of the output file output by the rainstorm and flood management model based on the file format and parameter definition of the simulation results.

[0017] The simulation result parsing module also includes a simulation result type conversion component and a simulation result management component;

[0018] The simulation result type conversion component is used to convert the data of the binary format output file parsed by the simulation output file structure parsing component into character data and numerical data;

[0019] The simulation result management component is used to manage the binary data extracted from the output file by the simulation output file structure parsing component, the binary data converted into character data and numerical data by the simulation result type conversion component, the character data and numerical data converted by the rainstorm and flood management model object management component, and the sub-catchments, pipelines and nodes of the rainstorm and flood management model generated by the rainstorm and flood management model object management component.

[0020] The simulation result visualization module includes a first water level visualization component and a second water level visualization component;

[0021] The first water level visualization component is used to extract the attribute time series results of water depth and water volume of sub-catchment areas, pipelines and nodes during the simulation calculation of the rainstorm flood management model from the simulation result analysis module, and to display the extracted attribute time series results on the spatial consultation system in the form of a line graph.

[0022] The second water level visualization component is used to obtain geographical locations from the stormwater simulation calculation module and time series data of water level changes of nodes and pipelines from the simulation result analysis module through the visualization means of the geographic information system, combined with the three-dimensional models of nodes and pipelines, and to display the water level changes of nodes and pipelines in the calculation period using three-dimensional dynamic simulation.

[0023] The simulation results visualization module also includes a seed point search component;

[0024] The seed point search component is used to obtain the geographical location information of the nodes from the stormwater simulation calculation module, and to search for seed nodes based on the D8 algorithm. It uses a disjoint-set data structure to record the search path during the seed search process, and performs a search process to make reasonable use of drainage nodes through search and merge operations to obtain a seed point set.

[0025] The simulation results visualization module also includes a water level calculation component and an inundation range visualization component;

[0026] The water level calculation component is used to obtain the overflow volume of each drainage node from the simulation result analysis module, obtain the water accumulation point of the drainage node from the seed point search component as the initial point for calculation, and obtain the water level of each water accumulation point by giving a maximum water level and a minimum water level, and search for the water level of each water accumulation point by binary search.

[0027] The flooding range visualization component uses a digital elevation model as terrain data, combines water accumulation nodes obtained from the seed point search component and water accumulation levels obtained from the water accumulation level calculation component, and employs a seed point spread algorithm to calculate the flooding range.

[0028] The communication rules module includes a rainstorm and flood management model calculation communication rules component, a time series result extraction communication rules component, and an inundation range calculation communication rules component;

[0029] The rainstorm and flood management model calculation and communication rule component is used for the spatial consultation system to call the rainstorm and flood simulation calculation module and simulation result parsing module of the rainstorm and flood management model microservice;

[0030] The time series result extraction communication rule component is used for the spatial consultation system to make calls, and the rainstorm and flood management model microservice converts the simulation results of the rainstorm and flood management model into time series data;

[0031] The inundation range calculation communication rule component is used for invocation by the spatial consultation system, and the rainstorm and flood management model microservice performs inundation range calculation of the digital elevation model.

[0032] The microservice-based rain and flood consultation system also includes a service health management module;

[0033] The service health management module is used to perform cluster deployment of the rainstorm and flood management model microservice, manage the online operation service information of the rainstorm and flood management model microservice, and manage the health status of the rainstorm and flood management model microservice.

[0034] The service health management module includes service governance components and service monitoring components;

[0035] The service governance component is used to register its own service information with the registry center when the rainstorm and flood management model microservice starts up, and to request information on callable services from the registry center when the spatial consultation calls the rainstorm and flood management model microservice.

[0036] The service monitoring component is used to assign tasks to each investigator based on the workload, use a heartbeat mechanism to monitor the service in real time, and determine the dynamics of taking the service offline when it is unavailable.

[0037] The microservice-based rainstorm and flood consultation system provided by this invention includes a rainstorm and flood management model microservice and a spatial rainstorm and flood consultation system. The rainstorm and flood management model microservice includes a rainstorm and flood simulation calculation module, a simulation result analysis module, a simulation result visualization module, and a communication rules module. The rainstorm and flood simulation calculation module, simulation result analysis module, and simulation result visualization module establish communication connections with the communication rules module. The rainstorm and flood simulation calculation module performs real-time online calculations of the rainstorm and flood management model. The simulation result analysis module performs online analysis and data management of the simulation results of the rainstorm and flood management model. The simulation result visualization module displays the rainstorm and flood simulation results. The communication rules module establishes a communication connection between the rainstorm and flood management model microservice and the spatial rainstorm and flood consultation system, realizing the integration of the microservice-based rainstorm and flood management model with the spatial consultation system. This enables the microservice-based rainstorm and flood consultation system to support online calculation of the rainstorm and flood management model, analysis of rainstorm and flood simulation results, and visualization of rainstorm and flood inundation results. It provides a new platform for disaster relief personnel to discuss the rainstorm and flood situation and development trends online, greatly improving the efficiency of flood control and rescue decision-making and responding to the damage of rainstorm and flood disasters more scientifically and accurately. Attached Figure Description

[0038] To more clearly illustrate the technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is one of the schematic diagrams of the microservice-based rain and flood consultation system provided by the present invention;

[0040] Figure 2 This is the second schematic diagram of the rain and flood consultation system based on microservices provided by the present invention. Detailed Implementation

[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0042] Reference Figure 1 , Figure 1 This is one of the schematic diagrams of a microservice-based stormwater and flood consultation system provided by the present invention. The microservice-based stormwater and flood consultation system provided by this embodiment of the invention includes: a stormwater and flood management model microservice and a spatial stormwater and flood consultation system. The stormwater and flood management model microservice includes a stormwater and flood simulation calculation module, a simulation result parsing module, a simulation result visualization module, and a communication rules module.

[0043] The stormwater simulation calculation module, the simulation result parsing module, and the simulation result visualization module each establish a communication connection with the communication rule module.

[0044] The rainfall simulation calculation module is used for real-time online calculation of the rainstorm and flood management model;

[0045] The simulation result analysis module is used for online analysis and data management of the simulation results of the rainstorm and flood management model;

[0046] The simulation results visualization module is used to display the results of the rainstorm simulation, the dynamic simulation of water level in drainage pipelines based on the 3D geographic information system, the rainstorm simulation results, and the analysis of the inundation range based on the digital elevation model, which converts the one-dimensional simulation results into geographic information system data.

[0047] The communication rules module is used to establish a communication connection between the rainstorm and flood management model microservice and the spatial rainstorm and flood consultation system based on the transmission protocol.

[0048] It should be noted that the microservice-based stormwater management system includes: a Stormwater Management Model (SWMM) microservice and a spatial stormwater management system. Furthermore, the SWMM microservice includes: a stormwater simulation calculation module, a simulation result parsing module, a simulation result visualization module, and a communication rules module.

[0049] It should be further noted that the stormwater simulation calculation module, the simulation result analysis module, and the simulation result visualization module establish communication connections with the communication rules module, respectively.

[0050] Specifically, the stormwater simulation calculation module performs real-time online calculations for the stormwater and flood management model (SWMM).

[0051] Furthermore, the simulation results analysis module analyzes the simulation results of the Rainstorm Flood Management Model (SWMM) online and manages the data of the SWMM.

[0052] Furthermore, the simulation results visualization module displays the simulation results of rainwater runoff.

[0053] In one embodiment, the simulation results visualization module draws and displays charts such as water level-time graphs and precipitation-time graphs, showing the rainstorm simulation results in the form of line graphs.

[0054] In one embodiment, the simulation results visualization module is based on the dynamic simulation results of drainage pipe water level in a 3D (three-dimensional) Geographic Information System (GIS) of rainwater and flood simulation results.

[0055] In one embodiment, the simulation results visualization module converts the one-dimensional simulation results into geographic information system data based on the inundation range analysis of the Digital Elevation Model (DEM).

[0056] Furthermore, the communication rules module establishes a communication connection between the SWMM microservice of the rainstorm and flood management model and the spatial rainstorm and flood consultation system based on the transmission protocol.

[0057] In one embodiment, the communication rules module establishes a communication connection between the storm flood management model (SWMM) microservice and the spatial storm flood consultation system based on the Hypertext Transfer Protocol (HTTP).

[0058] The microservice-based rainstorm and flood consultation system provided by this invention includes a rainstorm and flood management model microservice and a spatial rainstorm and flood consultation system. The rainstorm and flood management model microservice includes a rainstorm and flood simulation calculation module, a simulation result analysis module, a simulation result visualization module, and a communication rules module. The rainstorm and flood simulation calculation module, simulation result analysis module, and simulation result visualization module establish communication connections with the communication rules module. The rainstorm and flood simulation calculation module performs real-time online calculations of the rainstorm and flood management model. The simulation result analysis module performs online analysis and data management of the simulation results of the rainstorm and flood management model. The simulation result visualization module displays the rainstorm and flood simulation results. The communication rules module establishes a communication connection between the rainstorm and flood management model microservice and the spatial rainstorm and flood consultation system, realizing the integration of the microservice-based rainstorm and flood management model with the spatial consultation system. This enables the microservice-based rainstorm and flood consultation system to support online calculation of the rainstorm and flood management model, analysis of rainstorm and flood simulation results, and visualization of rainstorm and flood inundation results. It provides a new platform for disaster relief personnel to discuss the rainstorm and flood situation and development trends online, greatly improving the efficiency of flood control and rescue decision-making and responding to the damage of rainstorm and flood disasters more scientifically and accurately.

[0059] Furthermore, the stormwater simulation calculation module includes a stormwater and flood management model file management component and an online real-time simulation calculation component;

[0060] The storm flood management model file management component is used to generate and manage the input and output files of the storm flood management model;

[0061] The online real-time simulation calculation component is used to read the input file of the rainstorm and flood management model provided by the rainstorm and flood management model file management component, and call the dynamic link library of the rainstorm and flood management model to perform rainstorm and flood management model calculations and generate output files.

[0062] Specifically, the Rainstorm and Flood Management Model (SWMM) file management component generates the input and output files of the Rainstorm and Flood Management Model (SWMM) and manages these files.

[0063] Furthermore, the online real-time simulation calculation component reads the input file of the Rainstorm Flood Management Model (SWMM) provided by the Rainstorm Flood Management Model (SWMM) file management component, and calls the dynamic link library of the Rainstorm Flood Management Model (SWMM) according to the input file to perform the Rainstorm Flood Management Model (SWMM) calculation and generate the output file.

[0064] In this embodiment of the invention, the input and output files of the rainstorm and flood management model are generated and managed by the rainstorm and flood management model file management component. The input file of the rainstorm and flood management model is read by the online real-time simulation calculation component, and the rainstorm and flood management model calculation is performed to generate the output file.

[0065] Furthermore, the simulation result parsing module includes a simulation output file structure parsing component and a rainstorm and flood management model object management component;

[0066] The storm flood management model object management component is used to create and save the sub-catchments, pipelines and nodes of the storm flood management model;

[0067] The simulation output file structure parsing component is used to extract stormwater simulation results from the sub-catchments, pipelines, and nodes created and saved by the stormwater and flood management model object management component;

[0068] The simulation output file structure parsing component is also used to determine the parsing strategy of the output file output by the rainstorm and flood management model based on the file format and parameter definition of the simulation results.

[0069] Specifically, the Storm Flood Management Model (SWMM) object management component creates and saves computational objects for the SWMM. In one embodiment, the computational objects include sub-catchments, pipelines, and nodes. Therefore, it can be understood that the Storm Flood Management Model (SWMM) object management component creates and saves the sub-catchments, pipelines, and nodes for the SWMM.

[0070] Furthermore, the simulation output file structure parsing component extracts the stormwater simulation results from the sub-catchments, pipelines, and nodes created and saved by the stormwater and flood management model (SWMM) object management component.

[0071] Furthermore, the simulation output file structure parsing component determines the parsing strategy for the output files output by the stormwater and flood management model (SWMM) simulation results based on the file format and parameter definitions.

[0072] In this embodiment of the invention, the calculation objects of the rainstorm and flood management model are created and saved through the rainstorm and flood management model object management component, the rainstorm and flood simulation results are extracted through the simulation output file structure parsing component, and the parsing strategy of the output file output by the rainstorm and flood simulation calculation module is determined through the simulation output file structure parsing component.

[0073] Furthermore, the simulation result parsing module also includes a simulation result type conversion component and a simulation result management component;

[0074] The simulation result type conversion component is used to convert the data of the binary format output file parsed by the simulation output file structure parsing component into character data and numerical data;

[0075] The simulation result management component is used to manage the binary data extracted from the output file by the simulation output file structure parsing component, the binary data converted into character data and numerical data by the simulation result type conversion component, the character data and numerical data converted by the rainstorm and flood management model object management component, and the sub-catchments, pipelines and nodes of the rainstorm and flood management model generated by the rainstorm and flood management model object management component.

[0076] Specifically, the simulation result type conversion component converts the data in the binary format output file parsed by the simulation output file structure parsing component into character and numeric data.

[0077] Furthermore, the simulation result management component manages the binary data extracted from the output file by the simulation output file structure parsing component, the simulation result type conversion component converts the binary data into character and numerical data, the character and numerical data converted by the storm flood management model SWMM object management component, and the sub-catchments, pipelines, and nodes of the storm flood management model SWMM generated by the storm flood management model SWMM object management component.

[0078] This invention uses a simulation result type conversion component to convert output files into character data and numerical data, and a simulation result management component to manage binary data, character data, numerical data, character and numerical data, sub-catchments, pipelines and nodes, supporting the deployment and management of multiple service nodes.

[0079] Furthermore, the simulation result visualization module includes a first water level visualization component and a second water level visualization component;

[0080] The first water level visualization component is used to extract the attribute time series results of water depth and water volume of sub-catchment areas, pipelines and nodes during the simulation calculation of the rainstorm flood management model from the simulation result analysis module, and to display the extracted attribute time series results on the spatial consultation system in the form of a line graph.

[0081] The second water level visualization component is used to obtain geographical locations from the stormwater simulation calculation module and time series data of water level changes of nodes and pipelines from the simulation result analysis module through the visualization means of the geographic information system, combined with the three-dimensional models of nodes and pipelines, and to display the water level changes of nodes and pipelines in the calculation period using three-dimensional dynamic simulation.

[0082] Specifically, the first water level visualization component extracts the time series results of water depth and water volume attributes of sub-catchments, pipelines and nodes during the simulation calculation of the rainstorm flood management model (SWMM) from the simulation result analysis module, and displays the extracted attribute time series results on the spatial consultation system in the form of a line graph.

[0083] In one embodiment, one form of the first water level visualization component is a line graph-based water level visualization component. Therefore, it can be understood that the line graph-based water level visualization component extracts the time series results of the water depth and water volume attributes of sub-catchments, pipelines and nodes during the simulation calculation of the storm flood management model (SWMM) from the simulation result analysis module, and displays the extracted attribute time series results on the spatial consultation system in the form of a line graph.

[0084] Furthermore, the second water level visualization component uses the visualization methods of a geographic information system, combined with the three-dimensional models of nodes and pipelines, to obtain geographical locations from the stormwater simulation calculation module and time series data of water level changes of nodes and pipelines from the simulation result analysis module, and uses three-dimensional dynamic simulation to display the water level changes of nodes and pipelines within the calculation period.

[0085] In one embodiment, one form of the second water level visualization component is a water level visualization component based on a 3D geographic information system. Therefore, it can be understood that the water level visualization component based on a 3D geographic information system uses the visualization methods of the geographic information system, combined with the three-dimensional models of nodes and pipelines, to obtain the geographical location from the stormwater simulation calculation module and the time series data of water level changes of nodes and pipelines from the simulation result analysis module, and uses three-dimensional dynamic simulation to display the water level changes of nodes and pipelines within the calculation period.

[0086] This invention uses a first water level visualization component to display the extracted attribute time series results on a spatial consultation system, and a second water level visualization component to display the water level changes of nodes and pipelines within the calculation period. The calculation results are transformed into two-dimensional or three-dimensional geographic data. The spatial visualization and spatial analysis functions of the geographic information system are used to perform quantitative analysis of rainstorm disasters, intuitively reflecting the development trend of rainstorm disasters and providing support for disaster relief.

[0087] Furthermore, the simulation result visualization module also includes a seed point search component;

[0088] The seed point search component is used to obtain the geographical location information of the nodes from the stormwater simulation calculation module, and to search for seed nodes based on the D8 algorithm. It uses a disjoint-set data structure to record the search path during the seed search process, and performs a search process to make reasonable use of drainage nodes through search and merge operations to obtain a seed point set.

[0089] It should be noted that when urban drainage networks overflow, the water flow will begin to converge at lower-lying locations (i.e., water accumulation points). At the same time, there is a strong spatial correlation between urban drainage nodes. When water accumulation occurs, there will definitely be water overflowing from multiple drainage nodes flowing towards the same water accumulation point, which may cause the seed node search process to overlap.

[0090] Specifically, the seed point search component obtains the geographical location information of the nodes from the stormwater simulation calculation module, searches for seed nodes based on the D8 algorithm, uses a disjoint-set data structure to record the search path during the seed search process, and performs a search process to make reasonable use of drainage nodes through search and merge operations to obtain a seed point set.

[0091] In one embodiment, one form of the seed point search component is a seed point search component based on a disjoint-set data structure. Therefore, it can be understood as follows: the seed point search component based on a disjoint-set data structure obtains the geographical location information of the nodes from the stormwater simulation calculation module, searches for seed nodes based on the D8 algorithm, records the search path in the seed search process using a disjoint-set data structure, and performs a search process to make reasonable use of drainage nodes through search and merge operations to obtain a set of seed points.

[0092] This invention employs a seed point search component based on the D8 algorithm to search for seed nodes. Through search and merge operations, it achieves a search process that makes reasonable use of drainage nodes, thereby obtaining a set of seed points. The entire process reduces unnecessary search steps and improves search efficiency.

[0093] Furthermore, the simulation result visualization module also includes a water level calculation component and an inundation range visualization component;

[0094] The water level calculation component is used to obtain the overflow volume of each drainage node from the simulation result analysis module, obtain the water accumulation point of the drainage node from the seed point search component as the initial point for calculation, and obtain the water level of each water accumulation point by giving a maximum water level and a minimum water level, and search for the water level of each water accumulation point by binary search.

[0095] The flooding range visualization component uses a digital elevation model as terrain data, combines water accumulation nodes obtained from the seed point search component and water accumulation levels obtained from the water accumulation level calculation component, and employs a seed point spread algorithm to calculate the flooding range.

[0096] Specifically, the water level calculation component obtains the overflow volume of each drainage node from the simulation result analysis module, obtains the water accumulation point of the drainage node from the seed point search component as the initial point for calculation, and, given a maximum water level and a minimum water level, searches for the water level of each water accumulation point using a binary search.

[0097] Furthermore, the flooding range visualization component uses a digital elevation model as terrain data, combines water accumulation nodes obtained from the seed point search component and water accumulation levels obtained from the water accumulation level calculation component, and employs a seed point spread algorithm to calculate the flooding range.

[0098] In one embodiment, one form of the flood range visualization component is a flood range visualization component based on a digital elevation model. Therefore, it can be understood that: the flood range visualization component based on a digital elevation model uses a digital elevation model as terrain data, combines water accumulation nodes obtained from a seed point search component based on a disjoint set and water accumulation level obtained from a water accumulation level calculation component, and uses a seed point spread algorithm to calculate the flood range, supporting the use of a 3D geographic information system to realize the dynamic spread of the flood range on the map.

[0099] In this embodiment of the invention, the water level of each water accumulation point is obtained by searching through the water level calculation component, ensuring that the water volume is within a given range. The flood range is calculated by the flood range visualization component, thereby supporting the use of a 3D geographic information system to realize the dynamic spread of the flood range on the map.

[0100] Furthermore, the communication rules module includes a rainstorm and flood management model calculation communication rules component, a time series result extraction communication rules component, and an inundation range calculation communication rules component;

[0101] The rainstorm and flood management model calculation and communication rule component is used for the spatial consultation system to call the rainstorm and flood simulation calculation module and simulation result parsing module of the rainstorm and flood management model microservice;

[0102] The time series result extraction communication rule component is used for the spatial consultation system to make calls, and the rainstorm and flood management model microservice converts the simulation results of the rainstorm and flood management model into time series data;

[0103] The inundation range calculation communication rule component is used for invocation by the spatial consultation system, and the rainstorm and flood management model microservice performs inundation range calculation of the digital elevation model.

[0104] Specifically, the Rainstorm and Flood Management Model (SWMM) computational communication rule component is called by the spatial consultation system, and the Rainstorm and Flood Management Model (SWMM) microservice includes the rainstorm simulation calculation module and the simulation result parsing module.

[0105] Furthermore, the communication rule component for extracting time series results is called by the spatial consultation system, and the SWMM microservice of the rainstorm and flood management model converts the simulation results of the rainstorm and flood management model into time series data.

[0106] Furthermore, the inundation range calculation communication rule component is called by the spatial consultation system, and the rainstorm flood management model SWMM microservice executes the inundation range calculation of the digital elevation model.

[0107] This invention supports the use of a Rainstorm Flood Management Model (SWMM) computational communication rule component to enable spatial consultation systems to call the rainstorm simulation calculation module and simulation result parsing module. It also supports the use of a time series result extraction communication rule component to convert SWMM simulation results into time series data. Furthermore, it supports the use of an inundation range calculation communication rule component to enable spatial consultation systems to call SWMM microservices. This allows for data exchange and sharing via the Web, and enables online consultations using the SWMM through a spatial consultation system.

[0108] Furthermore, referring to Figure 2 , Figure 2 This is the second schematic diagram of the rain and flood consultation system based on microservices provided by the present invention.

[0109] The microservice-based rain and flood consultation system also includes a service health management module;

[0110] The service health management module is used to perform cluster deployment of the rainstorm and flood management model microservice, manage the online operation service information of the rainstorm and flood management model microservice, and manage the health status of the rainstorm and flood management model microservice.

[0111] Specifically, the Service Health Management module performs cluster deployment of the Rainstorm and Flood Management Model (SWMM) microservice, manages the online operation service information of the Rainstorm and Flood Management Model (SWMM) microservice, and manages the health status of the Rainstorm and Flood Management Model (SWMM) microservice.

[0112] In this embodiment of the invention, a service health management module is used to deploy a cluster of rainstorm and flood management model microservices and manage the health status of the rainstorm and flood management model microservices.

[0113] Furthermore, the service health management module includes service governance components and service monitoring components;

[0114] The service governance component is used to register its own service information with the registry center when the rainstorm and flood management model microservice starts up, and to request information on callable services from the registry center when the spatial consultation calls the rainstorm and flood management model microservice.

[0115] The service monitoring component is used to assign tasks to each investigator based on the workload, use a heartbeat mechanism to monitor the service in real time, and determine the dynamics of taking the service offline when it is unavailable.

[0116] Specifically, the service governance component registers its service information with the registry center when the SWMM (Flood and Rainstorm Management Model) microservice starts, and requests information about callable services from the registry center when the spatial consultation calls the SWMM microservice. This service information includes host IP (Internet Protocol), port, access protocol, etc.

[0117] Furthermore, the service monitoring component assigns tasks to each investigator based on workload, uses a heartbeat mechanism to monitor the service in real time, and dynamically determines when a service is unavailable and takes it offline.

[0118] In one embodiment, the service monitoring component distributes tasks evenly among each investigator.

[0119] In this embodiment of the invention, the service governance component requests information about callable services from the registry center, and the service monitoring component monitors the services in real time to prevent unhealthy services from being accessed.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A microservice-based stormwater and flood control consultation system, characterized in that, The microservice-based rainstorm consultation system includes a rainstorm and flood management model microservice and a spatial rainstorm consultation system. The rainstorm and flood management model microservice includes a rainstorm simulation calculation module, a simulation result parsing module, a simulation result visualization module, and a communication rules module. The stormwater simulation calculation module, the simulation result parsing module, and the simulation result visualization module each establish a communication connection with the communication rule module. The rainfall simulation calculation module is used for real-time online calculation of the rainstorm and flood management model; The simulation result analysis module is used for online analysis and data management of the simulation results of the rainstorm and flood management model; The simulation results visualization module is used to display the results of the rainstorm simulation, the dynamic simulation of water level in drainage pipelines based on the 3D geographic information system, the rainstorm simulation results, and the analysis of the inundation range based on the digital elevation model, which converts the one-dimensional simulation results into geographic information system data. The communication rules module is used to establish a communication connection between the rainstorm and flood management model microservice and the spatial rainstorm and flood consultation system based on the transmission protocol. The simulation result visualization module includes a first water level visualization component and a second water level visualization component. The first water level visualization component is used to extract the attribute time series results of water depth and water volume of sub-catchment areas, pipelines and nodes during the simulation calculation of the rainstorm flood management model from the simulation result analysis module, and to display the extracted attribute time series results on the spatial consultation system in the form of a line graph. The second water level visualization component is used to obtain geographical locations from the stormwater simulation calculation module and time series data of water level changes of nodes and pipelines from the simulation result analysis module through the visualization means of the geographic information system, combined with the three-dimensional models of nodes and pipelines, and to display the water level changes of nodes and pipelines in the calculation period using three-dimensional dynamic simulation. The simulation results visualization module also includes a seed point search component; The seed point search component is used to obtain the geographical location information of the nodes from the stormwater simulation calculation module, and to search for seed nodes based on the D8 algorithm. It uses a disjoint-set data structure to record the search path during the seed search process, and performs a search process to make reasonable use of drainage nodes through search and merge operations to obtain a seed point set. The simulation result visualization module also includes a water level calculation component and an inundation range visualization component; The water level calculation component is used to obtain the overflow volume of each drainage node from the simulation result analysis module, obtain the water accumulation point of the drainage node from the seed point search component as the initial point for calculation, and obtain the water level of each water accumulation point by giving a maximum water level and a minimum water level, and search for the water level of each water accumulation point by binary search. The flooding range visualization component uses a digital elevation model as terrain data, combines water accumulation nodes obtained from the seed point search component and water accumulation levels obtained from the water accumulation level calculation component, and employs a seed point spread algorithm to calculate the flooding range.

2. The microservice-based stormwater consultation system according to claim 1, characterized in that, The rainfall simulation calculation module includes a rainstorm and flood management model file management component and an online real-time simulation calculation component; The storm flood management model file management component is used to generate and manage the input and output files of the storm flood management model; The online real-time simulation calculation component is used to read the input file of the rainstorm and flood management model provided by the rainstorm and flood management model file management component, and call the dynamic link library of the rainstorm and flood management model to perform rainstorm and flood management model calculations and generate output files.

3. The microservice-based stormwater consultation system according to claim 1, characterized in that, The simulation result parsing module includes a simulation output file structure parsing component and a rainstorm and flood management model object management component; The storm flood management model object management component is used to create and save the sub-catchments, pipelines and nodes of the storm flood management model; The simulation output file structure parsing component is used to extract stormwater simulation results from the sub-catchments, pipelines, and nodes created and saved by the stormwater and flood management model object management component; The simulation output file structure parsing component is also used to determine the parsing strategy of the output file output by the rainstorm and flood management model based on the file format and parameter definition of the simulation results.

4. The microservice-based stormwater consultation system according to claim 3, characterized in that, The simulation result parsing module also includes a simulation result type conversion component and a simulation result management component; The simulation result type conversion component is used to convert the data of the binary format output file parsed by the simulation output file structure parsing component into character data and numerical data; The simulation result management component is used to manage the binary data extracted from the output file by the simulation output file structure parsing component, the binary data converted into character data and numerical data by the simulation result type conversion component, the character data and numerical data converted by the rainstorm and flood management model object management component, and the sub-catchments, pipelines and nodes of the rainstorm and flood management model generated by the rainstorm and flood management model object management component.

5. The microservice-based stormwater consultation system according to claim 1, characterized in that, The communication rules module includes a rainstorm and flood management model calculation communication rules component, a time series result extraction communication rules component, and an inundation range calculation communication rules component; The rainstorm and flood management model calculation communication rule component is used for invocation by the spatial rainstorm and flood consultation system; The time series result extraction communication rule component is used for the spatial rain and flood consultation system, and the rainstorm and flood management model microservice converts the simulation results of the rainstorm and flood management model into time series data. The inundation range calculation communication rule component is used for invocation by the spatial stormwater consultation system, and the storm flood management model microservice performs inundation range calculation of the digital elevation model.

6. The microservice-based stormwater consultation system according to any one of claims 1 to 5, characterized in that, The microservice-based stormwater consultation system also includes a service health management module; The service health management module is used to perform cluster deployment of the rainstorm and flood management model microservice, manage the online operation service information of the rainstorm and flood management model microservice, and manage the health status of the rainstorm and flood management model microservice.

7. The microservice-based stormwater consultation system according to claim 6, characterized in that, The service health management module includes service governance components and service monitoring components; The service governance component is used to register its own service information with the registry center when the rainstorm and flood management model microservice starts up, and to request information on callable services from the registry center when the spatial consultation calls the rainstorm and flood management model microservice. The service monitoring component is used to assign tasks to each investigator based on the workload, use a heartbeat mechanism to monitor the service in real time, and determine the dynamics of taking the service offline when it is unavailable.

Citation Information

Patent Citations

  • Decentralized flood early warning water information system for micro-service area and integration method thereof

    CN111488420A

  • Micro-service-based power grid intelligent operation and maintenance platform

    CN112698953A