Real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates

By adopting a spatiotemporal block-based incremental update method, the problems of long waiting time and high storage pressure in flood risk map processing are solved, achieving efficient real-time dynamic simulation and front-end stability, and meeting the timeliness requirements of flood control consultation and emergency dispatch.

CN123118801APending Publication Date: 2026-11-17ANHUI & HUAI RIVER WATER RESOURCES RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611622806.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-20
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing flood risk map processing methods suffer from problems such as long result waiting time, high storage read/write pressure, rendering task backlog, page lag, and browser crashes in large-scale two-dimensional grid models. Furthermore, they do not fully utilize the spatiotemporal continuity of floods, leading to repeated reading, repeated statistics, and repeated rendering, which makes it difficult to meet the timeliness requirements of flood control consultation and emergency dispatch.

Method used

A spatiotemporal block-based incremental update method is adopted. By constructing a grid topology map, a set of spatial blocks, and a set of temporal blocks, a joint index key is established. The output of the hydrodynamic model is monitored to generate a block status summary, identify active spatial blocks, and only read and render data for active blocks. Inactive blocks reuse the image results from the previous time step and perform local updates in combination with a front-end caching mechanism.

Benefits of technology

It improves the efficiency of real-time dynamic simulation of flood risk maps and front-end stability, reduces redundant statistics and rendering, and enhances real-time response capabilities in flood control consultation scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123118801A_ABST
    Figure CN123118801A_ABST
Patent Text Reader

Abstract

This invention provides a real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates. It transforms the flood risk map calculation scheme into a unified, standardized computational object; constructs an adaptive spatial block set and a spatial block adjacency graph; builds time blocks according to the time steps output by the hydrodynamic model, and establishes a spatiotemporal block index table using the calculation scheme identifier as a joint index key. During the calculation process, results are extracted by spatial block and a state summary is generated to identify active spatial blocks. Priority scheduling, block reading, block statistics, cache version updates, and server-side georeferencing image rendering are performed on active spatiotemporal blocks, while inactive spatiotemporal blocks reuse the image results from the previous time step. This invention avoids the full transmission of large-scale two-dimensional grid raw results and repeated rendering across the entire domain, enabling the simultaneous calculation, identification, rendering, and display of flood risk maps, thus improving real-time dynamic simulation efficiency and front-end stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of digital twin water conservancy, hydrodynamic model calculation result processing, and geographic information system technology, specifically a real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates. Background Technology

[0002] Flood risk maps are a crucial foundational resource for flood risk management, flood and drought disaster prevention, flood control scheduling, population evacuation, and emergency response planning. With the advancement of digital twin watershed, digital twin water network, and the four-tiered flood control system, the application of flood risk maps is shifting from static result queries to real-time dynamic simulations. Such applications typically require calling one-dimensional, two-dimensional, or one-dimensional coupled hydrodynamic models based on real-time or pre-defined boundary conditions such as inflow, water level, gate opening and closing, and flood diversion outlet flow. This allows for the calculation of flood evolution range, water depth, water level, flow velocity, inundation duration, risk level, and affected objects, which are then dynamically displayed on a map or digital twin scenario.

[0003] Current flood risk map processing often employs a sequential approach: "model calculation complete—reading full results—global statistical analysis—global rendering—front-end display." For large-scale two-dimensional mesh models, a single calculation scheme may contain hundreds of thousands, millions, or even more mesh cells, with each output time step including multiple variables such as water depth, water level, and flow velocity. If the full results are read, the entire mesh is analyzed, and a global layer is generated at each time step, it will result in long result waiting times, high storage read / write pressure, and a backlog of rendering tasks, making it difficult to meet the timeliness requirements of flood control consultations and emergency dispatch.

[0004] In B / S architecture applications, if large-scale 2D mesh raw data is directly sent to the browser for parsing and rendering, the front end needs to handle a large number of data transmission, parsing, vector drawing, or raster reconstruction tasks simultaneously, which can easily lead to page lag, excessive memory usage, and browser crashes. On the other hand, flood evolution has obvious spatiotemporal continuity. Between adjacent output time steps, only the flood front, the gate influence area, the area of ​​rapid local water level change, or the area of ​​risk level transition typically show significant changes, while many other areas show only minor changes. Existing global processing methods do not fully utilize this spatiotemporal continuity, resulting in repeated reading, repeated statistics, and repeated rendering of unchanged areas.

[0005] Furthermore, conventional map tile or regular grid segmentation methods primarily divide data from the perspective of display scale or spatial extent, without considering the topology of two-dimensional hydrodynamic grids, water flow exchange relationships, flood diversion points or sluice gate control relationships, or forming a joint indexing mechanism that combines model output time steps, layer types, and cache version numbers. Therefore, simply using general tile slices or static caching is insufficient to solve the technical problems in real-time flood risk map simulation, such as "which segments need to be recalculated, which segments can be reused, how to ensure connectivity and consistency between segments, and how to prioritize updates based on business urgency." Summary of the Invention

[0006] This invention provides a real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates. By avoiding the full transmission of original results from large-scale two-dimensional grids and repeated rendering across the entire domain, it achieves change-driven incremental processing of flood risk maps, improving the efficiency of real-time dynamic simulation and front-end stability, thereby solving the problems in the background technology.

[0007] To achieve the above objectives, the technical solution of the present invention is as follows: A real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates involves the following steps performed using computer equipment: S1. Obtain a flood risk map calculation scheme for flood storage and detention areas, rivers, polder areas and flood protection areas, and convert two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters into standardized calculation objects; S2. Construct a grid topology map based on the two-dimensional grid topology and water flow exchange relationship in the standardized computing object, and split and / or merge the computing region according to the grid processing load and hydrodynamic connectivity constraints to form a spatial block set; S3. Construct a spatial block adjacency graph based on the spatial block set, and calculate the flood connectivity intensity between adjacent spatial blocks; S4. Construct a time block set according to the output time step of the hydrodynamic model, and establish a joint index key based on the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier and version identifier. Organize the output results of the hydrodynamic model into corresponding spatiotemporal block units to form a spatiotemporal block index table. S5. Monitor the output of the hydrodynamic model. Whenever an output time step is completed, extract the grid results corresponding to each spatial block according to the spatiotemporal block index table and generate a block state summary. S6. Compare the block state summary of the current output time step with that of the previous output time step. Calculate the comprehensive change score of each spatial block based on the state difference, dry-wet state transition and adaptive change threshold. Identify the initial active spatial block based on the comprehensive change score. Perform neighborhood expansion on the initial active spatial block based on the spatial block adjacency graph and flood connectivity strength to obtain the final active spatial block set. S7. Generate incremental processing tasks for the current output time step based on the final active spatial block set. Data reading, statistical processing, and image rendering are performed only for the final active spatial blocks and the layer types that need to be updated. For inactive spatial blocks, the corresponding processing tasks are not executed repeatedly. The valid image results from the previous output time step are reused and the image version number remains unchanged. S8. Create image canvases for the spatial blocks in the final active spatial block set according to the extended rendering range, establish a mapping between geographic coordinates and pixel coordinates, convert grid values ​​into pixel values, and output image results with geographic registration. The image results are available for retrieval by flood control command organizations to support real-time assessment and dispatch decisions on flood risks.

[0008] Furthermore, following S8, there is also a front-end on-demand loading and partial update step S9: The front-end determines the set of spatial blocks to be loaded based on the current playback time step, layer type, and map view range, compares the local cached image version number with the image version number returned by the server, requests only the image results with changed version numbers or those that do not exist locally, performs partial replacement of the images corresponding to the active spatial blocks, and continues to use the image results from the previous time step for inactive spatial blocks.

[0009] Preferably, the specific steps of S1 are as follows: S11. Read the flood risk map calculation scheme and extract the two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters; S12. Standardize the two-dimensional grid data, including coordinate system unification, time base unification, variable field mapping, missing value checking, and topological connectivity checking; standardize the boundary conditions, including boundary process continuity checking and variable field mapping. S13. Standardize the rendering parameters, including checking the validity of the rendering parameters; assemble the standardized two-dimensional mesh data, boundary conditions, model calculation parameters and rendering parameters into a standardized calculation object, wherein the standardized calculation object includes a set of two-dimensional mesh cells, mesh edges and mesh topology relationships, a set of boundary conditions, a set of calculation parameters, a set of rendering parameters and a set of block control parameters.

[0010] Preferably, the specific steps of S2 are as follows: S21. Construct a grid topology graph based on the set of two-dimensional grid cells in the standardized computing object. The grid topology graph uses grid cells as nodes and edges that share boundaries and allow water flow exchange between adjacent grids as topological edges. S22. Generate an initial spatial block set based on the rule grid, administrative division, flood storage and detention area unit, polder, village platform, river channel, flood diversion control area, engineering control unit or adaptive load balancing method; S23. Define the spatial block processing load as shown in the following formula:

[0011] in, This represents the k-th spatial block in the spatial block set B. Represents the k-th spatial block The processing load; Represents the k-th spatial block The number of grid cells contained within; Represents the k-th spatial block Boundary complexity; Represents the k-th spatial block The area; Represents the k-th spatial block The complexity of hydrodynamic connectivity within the area; Represents the k-th spatial block The number of dimensions or layers in the result variable; , , , , The preset block load weighting coefficient; S24. Construct the spatial block optimization objective function, as shown in the following equation:

[0012] Where F(B) represents the overall optimization objective value of the spatial block set B; M represents the total number of spatial blocks; It represents the variance of the processing load of each spatial block, and is used to constrain the degree of load balance among the processing blocks; Represents the k-th spatial block The cost of boundary complexity; Represents the k-th spatial block The redundancy cost caused by buffer zones or overlapping grids; Represents the k-th spatial block The cost of water flow exchange intensity when it is cut off at the boundary; , , , Optimize the weight coefficients for the preset blocks; adjust the spatial block scale and boundary position with the goal of minimizing F(B); S25. For spatial blocks that exceed the constraints of grid number, area, or pixel count, perform recursive splitting along the long side direction, grid density gradient direction, or low water flow exchange intensity boundary; perform merging correction on spatial blocks with too few grids and low load on adjacent blocks. S26. Set buffer zones or overlapping mesh sets for adjacent spatial blocks, with the buffer distance shown in the following formula:

[0013] in, Indicates the buffer distance between adjacent spatial blocks; Indicates the average side length of the grid; Indicates the maximum flow velocity near the adjacent boundary; Indicates the output time step; Indicates the minimum buffer distance; For safety reasons; spatial partitioning extends the rendering range. ,in The original geographical extent of spatial division. Indicates to Expand the buffer distance outward Geometric operations.

[0014] Preferably, the specific steps of S3 are as follows: S31. Construct a spatial block adjacency graph based on the spatial block set. The nodes of the spatial block adjacency graph are spatial blocks. If two spatial blocks share a boundary, have overlapping buffer zones, or have a water flow exchange relationship between the boundary grids, then establish an adjacency edge between them. S32, For adjacent spatial blocks and The flood connectivity strength is calculated as shown in the following formula:

[0015] in, Represents adjacent spatial blocks and The intensity of flood connectivity between them; Representing spatial partitioning and The amount of water exchanged at the boundary; This represents the maximum value of water exchange at the boundaries of all adjacent spatial blocks; Representing spatial partitioning and The length of the adjacent boundary between them; This represents the maximum length of adjacent boundaries among all adjacent spatial blocks; This indicates the number of wet grids on the adjacent boundaries of spatial blocks B_i and B_j; Representing spatial partitioning and Total number of grids on adjacent boundaries; This is an indicator variable for the connectivity of flood diversion outlets, sluice gates, or river channels. It is set to 1 when the above-mentioned connectivity control elements exist at adjacent boundaries, and 0 otherwise. , , , This is a preset connectivity strength weighting coefficient.

[0016] Preferably, the specific steps of S4 are as follows: S41. Construct a time block set according to the output time step of the hydrodynamic model; on the basis of fixed output time step, add event trigger time blocks according to boundary condition changes, flood diversion gate opening and closing, external river water level exceeding the threshold, model output change rate exceeding the threshold, or user-triggered emergency consultation command. S42. Establish a joint index key for the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier, and version identifier, as shown in the following formula:

[0017] Where K represents the composite index key; S represents the calculation scheme identifier; t represents the output time step identifier; b represents the spatial block identifier; l represents the layer type identifier; and v represents the version identifier. S43. Each joint index key corresponds to a spatiotemporal block unit data object, which includes the original geographic range of the spatial block, the extended rendering range, the pointer to the grid set contained in the spatial block, the model result cache object, the status summary, the statistical results, the image result address, the cache version number, and the image version number.

[0018] Preferably, the specific steps of S5 are as follows: S51. Monitor the output of the hydrodynamic model. When the completion of an output time step is detected, extract the mesh results corresponding to each spatial block according to the spatiotemporal block index table. S52. Generate a block status summary, which includes maximum water depth, average water depth, maximum water level, average water level, maximum flow velocity, inundated area, water storage capacity, number of wet grids, risk level, inundation duration, peak arrival time, block inflow, block outflow, flood front length, and image version number. S53. The inundation area and water storage volume are calculated using spatial blocks as statistical units. Based on the grid results corresponding to each spatial block and the water depth results corresponding to the current output time step, the inundation area and water storage volume of each spatial block are calculated respectively, as shown in the following formula:

[0019]

[0020] in, This represents the flooded area of ​​spatial block b at time step t; This represents the water storage capacity of spatial block b at time step t; This represents the set of grid cells contained within spatial block b; i is the grid cell index. Represents grid cells The area; Represents grid cells The water depth at time step t; Let dry and wet state function, when When the value is 1, The value is 0 at this time. Preset dry and wet thresholds; Indicates taking The larger value between 0 and 0.

[0021] Preferably, the specific steps of S6 are as follows: S61. Compare the block state summary of the current output time step with that of the previous output time step, and construct the state difference vector and the dry-wet state transition matrix, as shown in the following formulas:

[0022]

[0023] in, This represents the state difference vector of spatial block b at time step t relative to time step t-1; This indicates the maximum change in water depth; This indicates the change in average water depth; This indicates the maximum change in water level; This represents the average change in water level. This indicates the maximum change in flow velocity; This indicates the change in the submerged area; Indicates the change in the number of wet grid cells; Indicates the amount of change in risk level; This indicates the change in water storage capacity; This indicates the change in the length of the flood front; This represents the wet / dry state transition matrix of spatial block b at time step t relative to time step t-1; Indicates the number of grid cells that remain dry; Indicates the number of grid cells that changed from dry to wet; This indicates the number of mesh cells that changed from wet to dry; Indicates the number of grid cells that remain moist; S62. Set the adaptive change threshold and calculate the comprehensive change score, as shown in the following formulas:

[0024]

[0025] in, This represents the adaptive change threshold of spatial block b for variable x at time step t; This represents the minimum threshold corresponding to variable x; This represents the set of absolute values ​​of the change in variable x within the historical window W. This represents the mean; The standard deviation is represented by m; m is the threshold adjustment coefficient. The score represents the overall change of spatial block b at time step t; , , , , These are the adaptive change thresholds corresponding to the maximum water depth change, maximum water level change, maximum flow velocity change, submerged area change, and wet grid number change, respectively. As an indicator variable for wet-dry conversion, when The value is 1 if the condition is met, otherwise it is 0. As a business constraint indicator variable, it is set to 1 when the spatial block is located in the flood control consultation concern area, the engineering scheduling impact area, the key area for personnel transfer, the high-risk area, or the current map view range; otherwise, it is set to 0. to The preset weighting coefficients for the change scores; S63, if If the risk level changes across levels, the spatial block will be added to the initial active spatial block set, where... To preset a comprehensive change scoring threshold; S64. For the identified initial active spatial block, traverse its neighboring spatial blocks based on the spatial block adjacency graph; when the flood connectivity strength between the initial active spatial block and its neighboring spatial blocks is greater than or equal to a preset connectivity expansion threshold, add the neighboring spatial blocks to the expansion set:

[0026] in, Represents the initial active space block Adjacent spatial blocks The intensity of flood connectivity between them; This represents a preset connectivity expansion threshold, used to determine whether adjacent spatial blocks are included in the expansion set due to flood connectivity. Subsequently, these blocks are treated as new spatial blocks to be expanded, and neighborhood expansion continues until the expansion set no longer changes or reaches the preset maximum expansion layer, resulting in the final set of active spatial blocks. Neighborhood expansion based on flood connectivity intensity ensures that adjacent spatial blocks with strong hydrodynamic connections to significantly changed areas are simultaneously included in subsequent processing, avoiding discontinuous updates to the flood front or engineering-affected areas caused by relying solely on changes in the block's own state.

[0027] Preferably, the specific steps of S7 are as follows: S71. Generate processing tasks for each spatial block in the final active spatial block set and the layer type that needs to be updated; S72. Calculate task priority as shown in the following formula:

[0028] in, This indicates the priority of the processing task corresponding to time step t, spatial block b, and layer type l; Score the overall change of spatial block b at time step t; The risk level of spatial block b at time step t; This is a field-of-view hit indicator variable, which is set to 1 when spatial tile b hits the current map's field of view, and 0 otherwise. The urgency of flood control consultations or engineering scheduling; Waiting time for the task , , , , The preset task priority weight coefficient; S73, the parallel scheduling module allocates tasks to multiple threads, multiple processes, multiple GPUs, multiple server nodes, or multiple rendering nodes for execution; S74. After regenerating images by active space blocks, the image version number increments, as shown in the following formula:

[0029] in, This indicates the image version number corresponding to time step t, spatial block b, and layer type l; This indicates the image version number corresponding to the previous time step; the inactive space blocks reuse the image results from the previous time step while keeping the image version number unchanged; S75. When a task fails, an image rendering fails, or a data integrity check fails, the results of the previous valid version are retained and the index records are marked as pending recalculation. The task is then regenerated in the background.

[0030] Preferably, the specific steps of S8 are as follows: S81. For the spatial blocks in the final active spatial block set, create an image canvas according to the extended rendering range; S82. Establish a linear mapping relationship between geographic coordinates and pixel coordinates. Based on the geographic boundary of the extended rendering range and the width and height of the image, map the geographic horizontal coordinate within the extended rendering range to the pixel horizontal coordinate on the image canvas, and map the geographic vertical coordinate to the pixel vertical coordinate. S83. Convert the water depth, water level, flow velocity, inundation duration, or risk level values ​​corresponding to the grid cells or grid triangles into pixel values; set transparency channels for uninundated areas or areas that need to reveal the base map; output PNG images, PNG images with transparency channels, PNG tiles, GeoTIFF images, or other raster images; S84. In adjacent block buffer zones or overlapping areas, boundary consistency is handled according to preset display priority rules, wherein the display priorities are as follows: maximum risk priority, maximum water depth priority, and latest time step priority.

[0031] Preferably, the specific steps of S9 are as follows: S91. The front end determines the set of spatial blocks to be loaded based on the current playback time step, layer type and map view range. The set of spatial blocks to be loaded is a set of spatial blocks that intersect with the map view range. S92. The frontend compares the image version number cached locally with the image version number returned by the server. It only requests images whose version number has changed or which do not exist locally. For new images corresponding to active spatial blocks, the frontend performs local replacement according to geographical range. For inactive spatial blocks, the frontend continues to use the image results from the previous time step.

[0032] As can be seen from the above technical solution compared with the prior art, the present invention has the following beneficial effects: 1. This invention organizes the results of large-scale two-dimensional grid models into locationable, cacheable, and reusable spatiotemporal block units by standardizing the calculation scheme and using a joint index key composed of calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier, and version identifier. This enables the system to quickly locate the required results according to the calculation scheme, time step, spatial block, and layer type without scanning the complete model result file, significantly improving data retrieval and management efficiency and providing an efficient data organization foundation for real-time dynamic simulation of flood risk maps.

[0033] 2. This invention identifies the final active spatial block set by comparing block state summaries, adaptive change thresholds, comprehensive change scoring, and neighborhood expansion based on flood connectivity strength. Processing tasks are generated only for active blocks, images are re-rendered, and image version numbers are incremented. Inactive blocks reuse the image results from the previous time step and keep the image version number unchanged. This transforms the global processing of each output time step into a change-driven local incremental update, which greatly reduces redundant statistics, redundant rendering, and front-end data transmission, and effectively improves the real-time response capability in flood control consultation scenarios. Attached Figure Description

[0034] Figure 1 This is a schematic diagram summarizing the method steps in an embodiment of the present invention; Figure 2 This is a schematic diagram of the spatiotemporal block index construction and block state generation process in an embodiment of the present invention; Figure 3 This is a schematic diagram of the change-driven active block recognition and image version control process in an embodiment of the present invention; Figure 4 This is a schematic diagram of the hydrodynamic connectivity constraint space block construction process in embodiment S2 of the present invention; Figure 5 This is a flowchart of change detection and active space block identification in embodiment S6 of the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.

[0036] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention, but should not be used to limit the scope of the present invention.

[0037] This invention provides a real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates, such as... Figure 1 As shown, perform the following steps using a computer device: S1. Obtain a flood risk map calculation scheme for flood storage and detention areas, rivers, polder areas and flood protection areas, and convert two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters into standardized calculation objects; S2. Construct a grid topology map based on the two-dimensional grid topology and water flow exchange relationship in the standardized computing object, and split and / or merge the computing region according to the grid processing load and hydrodynamic connectivity constraints to form a spatial block set; S3. Construct a spatial block adjacency graph based on the spatial block set, and calculate the flood connectivity intensity between adjacent spatial blocks; S4. Construct a time block set according to the output time step of the hydrodynamic model, and establish a joint index key based on the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier and version identifier. Organize the output results of the hydrodynamic model into corresponding spatiotemporal block units to form a spatiotemporal block index table. S5. Monitor the output of the hydrodynamic model. Whenever an output time step is completed, extract the grid results corresponding to each spatial block according to the spatiotemporal block index table and generate a block state summary. S6. Compare the block state summary of the current output time step with that of the previous output time step. Calculate the comprehensive change score of each spatial block based on the state difference, dry-wet state transition and adaptive change threshold. Identify the initial active spatial block based on the comprehensive change score. Perform neighborhood expansion on the initial active spatial block based on the spatial block adjacency graph and flood connectivity strength to obtain the final active spatial block set. S7. Generate incremental processing tasks for the current output time step based on the final active spatial block set. Data reading, statistical processing, and image rendering are performed only for the final active spatial blocks and the layer types that need to be updated. For inactive spatial blocks, the corresponding processing tasks are not executed repeatedly. The valid image results from the previous output time step are reused and the image version number remains unchanged. S8. Create image canvases for the spatial blocks in the final active spatial block set according to the extended rendering range, establish a mapping between geographic coordinates and pixel coordinates, convert grid values ​​into pixel values, and output image results with geographic registration. The image results are available for retrieval by flood control command organizations to support real-time assessment and dispatch decisions on flood risks.

[0038] Furthermore, following S8, there is also a front-end on-demand loading and partial update step S9: the front-end determines the set of spatial blocks to be loaded based on the current playback time step, layer type and map view range, compares the local cached image version number with the image version number returned by the server, requests only the image results whose version number has changed or do not exist locally, performs partial replacement of the images corresponding to the active spatial blocks, and continues to use the image results of the previous time step for the inactive spatial blocks.

[0039] Example: like Figure 1 As shown in this embodiment, the technical solution of the present invention is further described in detail by combining a hypothetical real-time dynamic simulation scenario of a flood risk map. Taking the flood evolution process of a flood storage and detention area in a certain watershed as the object, the flood storage and detention area is long and narrow, and the terrain gradually decreases from upstream to downstream. The area contains dikes, flood diversion outlets, low-lying polder areas and several administrative villages.

[0040] This method is executed collaboratively by the server and front-end. The server is responsible for standardizing the computation scheme, constructing spatial blocks, creating indexes, generating state summaries, detecting changes, scheduling tasks, and rendering images. The front-end is responsible for loading image results according to the field of view and performing local replacements. The specific implementation process is as follows: S11. Read the flood risk map calculation scheme and extract the two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters; For example, two-dimensional grid data contains tens of thousands of triangular or quadrilateral grid cells, each carrying information such as elevation, roughness, and zone; boundary conditions include upstream flow processes, flood diversion channel flow processes, and downstream water level processes; model calculation parameters include calculation start and end times, output time steps, and wet / dry thresholds; rendering parameters include water depth layers, flow velocity layers, risk level layers, grading thresholds, color bands, and output dimensions.

[0041] S12. Standardize the two-dimensional grid data, including coordinate system unification, time base unification, variable field mapping, missing value checking, and topological connectivity checking; standardize the boundary conditions, including boundary process continuity checking and variable field mapping. S13. Standardize the rendering parameters, including checking the validity of the rendering parameters; assemble the standardized two-dimensional mesh data, boundary conditions, model calculation parameters and rendering parameters into a standardized calculation object, wherein the standardized calculation object includes a set of two-dimensional mesh cells, mesh edges and mesh topology relationships, a set of boundary conditions, a set of calculation parameters, a set of rendering parameters and a set of block control parameters.

[0042] By unifying heterogeneous input data into a standardized data foundation that can be directly used for subsequent segmentation, indexing, change detection, and rendering, the problems of field differences and coordinate inconsistencies between different calculation schemes are avoided.

[0043] S21. Construct a mesh topology diagram. The specific process is as follows: Figure 4 As shown.

[0044] Using each grid cell as a node, if two grids share a boundary and allow water flow exchange, a topological edge is established between them; if there are water-blocking control elements such as dikes, roads, and gates between adjacent grids, the corresponding control attributes are recorded on the topological edge. For example, if a dike passes through a flood storage area, no water flow exchange edge is established between the grids on both sides of the dike, but instead, it is marked as a water-blocking boundary on the topological edge.

[0045] S22. Generate an initial set of spatial blocks based on the regular grid, administrative divisions, flood storage and detention area units, polder areas, village platforms, rivers and ditches, flood diversion control areas, engineering control units, or adaptive load balancing methods. For example, divide the entire computational region into several initial blocks according to administrative divisions and polder boundaries, with each block containing several grid units.

[0046] S23. Define the spatial block processing load as shown in the following formula:

[0047] in, This represents the k-th spatial block in the spatial block set B. Represents the k-th spatial block The processing load; Represents the k-th spatial block The number of grid cells contained within; Represents the k-th spatial block Boundary complexity; Represents the k-th spatial block The area; Represents the k-th spatial block The complexity of hydrodynamic connectivity within the area; Represents the k-th spatial block The number of dimensions or layers in the result variable; , , , , The preset block load weighting coefficient; S24. Construct the spatial block optimization objective function, as shown in the following equation:

[0048] Where F(B) represents the overall optimization objective value of the spatial block set B; M represents the total number of spatial blocks; It represents the variance of the processing load of each spatial block, and is used to constrain the degree of load balance among the processing blocks; Represents the k-th spatial block The cost of boundary complexity; Represents the k-th spatial block The redundancy cost caused by buffer zones or overlapping grids; Represents the k-th spatial block The cost of water flow exchange intensity when it is cut off at the boundary; , , , Optimize the weight coefficients for the preset blocks; adjust the spatial block scale and boundary position with the goal of minimizing F(B); S25. For spatial blocks exceeding the constraints of grid number, area, or pixels, perform recursive splitting along the long side, grid density gradient direction, or low water flow exchange intensity boundary; perform merging correction on spatial blocks with too few grids and low load on adjacent blocks. For example, if a block contains more than the upper limit of 20,000 grid cells, split it in two along the long side; if a block contains only a few hundred grids and the load on adjacent blocks is not high, merge it with adjacent blocks.

[0049] S26. Set buffer zones or overlapping mesh sets for adjacent spatial blocks, with the buffer distance shown in the following formula:

[0050] in, Indicates the buffer distance between adjacent spatial blocks; Indicates the average side length of the grid; Indicates the maximum flow velocity near the adjacent boundary; Indicates the output time step; Indicates the minimum buffer distance; For safety reasons; spatial partitioning extends the rendering range. ,in The original geographical extent of spatial division. Indicates to Expand the buffer distance outward Geometric operations.

[0051] Through the above S2 step, spatial segmentation avoids direct cutting off in areas with strong water flow exchange, such as the main channel of the river and the flood diversion area. At the same time, the buffer zone ensures the continuity of rendering and stitching of adjacent segments, laying the foundation for subsequent parallel processing and image stitching.

[0052] S31. Construct a spatial block adjacency graph based on the aforementioned spatial block set. The nodes of the spatial block adjacency graph are spatial blocks. If two spatial blocks share a boundary, have overlapping buffer zones, or have a flow exchange relationship between their boundary grids, then establish an adjacency edge between them. A specific illustration is shown below. Figure 4 As shown, the solid bold lines represent block boundaries, and the dashed lines represent hydrodynamic connection paths; For example, if blocks B2 and B3 share a boundary and there is inter-grid flow exchange at the boundary, then an adjacent edge is established between them.

[0053] S32, For adjacent spatial blocks and The flood connectivity strength is calculated as shown in the following formula:

[0054] in, Represents adjacent spatial blocks and The intensity of flood connectivity between them; Representing spatial partitioning and The amount of water exchanged at the boundary; This represents the maximum value of water exchange at the boundaries of all adjacent spatial blocks; Representing spatial partitioning and The length of the adjacent boundary between them; This represents the maximum length of adjacent boundaries among all adjacent spatial blocks; This indicates the number of wet grids on the adjacent boundaries of spatial blocks B_i and B_j; Representing spatial partitioning and Total number of grids on adjacent boundaries; This is an indicator variable for the connectivity of flood diversion outlets, sluice gates, or river channels. It is set to 1 when the above-mentioned connectivity control elements exist at adjacent boundaries, and 0 otherwise. , , , This is a preset connectivity strength weighting coefficient.

[0055] S41. Construct a time block set according to the output time step of the hydrodynamic model. Based on the fixed output time step, add event trigger time blocks according to abrupt changes in boundary conditions, opening and closing of flood diversion gates, water level in the outer river exceeding the threshold, rate of change of model output exceeding the threshold, or user-triggered emergency consultation commands.

[0056] For example, with a fixed output time step of 60 seconds, when the opening time of the flood diversion gate is detected, an additional time block is inserted at the gate opening time.

[0057] S42. Establish a joint index key for the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier, and version identifier, as shown in the following formula:

[0058] Where K represents the composite index key; S represents the calculation scheme identifier; t represents the output time step identifier; b represents the spatial block identifier; l represents the layer type identifier; and v represents the version identifier. S43. Each joint index key corresponds to a spatiotemporal block unit data object, which includes the original geographic range of the spatial block, the extended rendering range, the pointer to the grid set contained in the spatial block, the model result cache object, the status summary, the statistical results, the image result address, the cache version number, and the image version number.

[0059] Through the above S4 steps, the system can quickly locate the results according to the calculation scheme, time step, spatial block and layer type, without scanning the complete model result file, which greatly improves the data retrieval efficiency.

[0060] S51. Monitor the output of the hydrodynamic model. When the completion of an output time step is detected, extract the mesh results corresponding to each spatial block according to the spatiotemporal block index table.

[0061] For example, if the time step t=120, after the model completes the calculation at time step t=120 seconds, the system automatically extracts data such as water depth, water level, and flow velocity for all spatial blocks at that time step.

[0062] S52. Generate a block status summary, which includes maximum water depth, average water depth, maximum water level, average water level, maximum flow velocity, inundated area, water storage capacity, number of wet grids, risk level, inundation duration, peak arrival time, block inflow, block outflow, flood front length, and image version number. S53. The inundation area and water storage volume are calculated using spatial blocks as statistical units. Based on the grid results corresponding to each spatial block and the water depth results corresponding to the current output time step, the inundation area and water storage volume of each spatial block are calculated respectively, as shown in the following formula:

[0063]

[0064] in, This represents the flooded area of ​​spatial block b at time step t; This represents the water storage capacity of spatial block b at time step t; This represents the set of grid cells contained within spatial block b; i is the grid cell index. Represents grid cells The area; Represents grid cells The water depth at time step t; Let dry and wet state function, when When the value is 1, The value is 0 at this time. Preset dry and wet thresholds; Indicates taking The larger value between 0 and 0.

[0065] like Figure 2As shown, in this embodiment, S1 to S5 sequentially complete the construction of standardized computational objects, the generation of spatial block sets, the construction of spatial block adjacency graphs, the establishment of temporal block sets and joint index keys, the formation of spatiotemporal block index tables, and the generation of block state summaries for each spatial block after the hydrodynamic model is output.

[0066] S61. Compare the block state summary of the current output time step with that of the previous output time step, and construct the state difference vector and the dry-wet state transition matrix, as shown in the following formulas:

[0067]

[0068] in, This represents the state difference vector of spatial block b at time step t relative to time step t-1; This indicates the maximum change in water depth; This indicates the change in average water depth; This indicates the maximum change in water level; This represents the average change in water level. This indicates the maximum change in flow velocity; This indicates the change in the submerged area; Indicates the change in the number of wet grid cells; Indicates the amount of change in risk level; This indicates the change in water storage capacity; This indicates the change in the length of the flood front; This represents the wet / dry state transition matrix of spatial block b at time step t relative to time step t-1; Indicates the number of grid cells that remain dry; Indicates the number of grid cells that changed from dry to wet; This indicates the number of mesh cells that changed from wet to dry; Indicates the number of grid cells that remain moist; S62. Set the adaptive change threshold and calculate the comprehensive change score, as shown in the following formulas:

[0069]

[0070] in, This represents the adaptive change threshold of spatial block b for variable x at time step t; This represents the minimum threshold corresponding to variable x; This represents the set of absolute values ​​of the change in variable x within the historical window W. This represents the mean; The standard deviation is represented by m; m is the threshold adjustment coefficient. The score represents the overall change of spatial block b at time step t; , , , , These are the adaptive change thresholds corresponding to the maximum water depth change, maximum water level change, maximum flow velocity change, submerged area change, and wet grid number change, respectively. As an indicator variable for wet-dry conversion, when The value is 1 if the condition is met, otherwise it is 0. As a business constraint indicator variable, it is set to 1 when the spatial block is located in the flood control consultation concern area, the engineering scheduling impact area, the key area for personnel transfer, the high-risk area, or the current map view range; otherwise, it is set to 0. S63, if If the risk level changes across levels, the spatial block will be added to the initial active spatial block set, where... To preset a comprehensive change scoring threshold; S64. For the identified initial active spatial block, traverse its neighboring spatial blocks based on the spatial block adjacency graph; when the flood connectivity strength between the initial active spatial block and its neighboring spatial blocks is greater than or equal to a preset connectivity expansion threshold, add the neighboring spatial blocks to the expansion set:

[0071] in, Represents the initial active space block Adjacent spatial blocks The intensity of flood connectivity between them; This represents a preset connectivity expansion threshold, used to determine whether adjacent spatial blocks are included in the expansion set due to flood connectivity. Subsequently, these blocks are treated as new spatial blocks to be expanded, and neighborhood expansion continues until the expansion set no longer changes or reaches the preset maximum expansion layer, resulting in the final set of active spatial blocks. Neighborhood expansion based on flood connectivity intensity ensures that adjacent spatial blocks with strong hydrodynamic connections to significantly changed areas are simultaneously included in subsequent processing, avoiding discontinuous updates to the flood front or engineering-affected areas caused by relying solely on changes in the block's own state.

[0072] like Figure 3As shown, in this embodiment, starting from the block state summary, the adaptive change threshold is calculated through the state difference vector and the dry-wet state transition matrix. Then, the candidate active spatial blocks are identified by the comprehensive change score to form an initial active spatial block set. The neighborhood is expanded by combining the flood connectivity intensity to obtain the final active spatial block set. Finally, the image version number is incremented after regenerating the image for the active spatial blocks. The image results of the previous time step are reused for the inactive spatial blocks while keeping the image version number unchanged.

[0073] S71. Generate processing tasks for each spatial block in the final active spatial block set and the layer type that needs to be updated; S72. Calculate task priority as shown in the following formula:

[0074] in, This indicates the priority of the processing task corresponding to time step t, spatial block b, and layer type l; Score the overall change of spatial block b at time step t; The risk level of spatial block b at time step t; This is a field-of-view hit indicator variable, which is set to 1 when spatial tile b hits the current map's field of view, and 0 otherwise. The urgency of flood control consultations or engineering scheduling; Waiting time for the task , , , , The preset task priority weight coefficient; S73, the parallel scheduling module allocates tasks to multiple threads, multiple processes, multiple GPUs, multiple server nodes, or multiple rendering nodes for execution; S74. After regenerating images by active space blocks, the image version number increments, as shown in the following formula:

[0075] in, This indicates the image version number corresponding to time step t, spatial block b, and layer type l; This indicates the image version number corresponding to the previous time step; the inactive space blocks reuse the image results from the previous time step while keeping the image version number unchanged; S75. When a task fails, an image rendering fails, or a data integrity check fails, the results of the previous valid version are retained and the index records are marked as pending recalculation. The task is then regenerated in the background.

[0076] S81. Divide each active space into blocks and create an image canvas based on the extended rendering range.

[0077] For example, assuming the original range of block B3 is 2 kilometers east-west and 1.5 kilometers north-south, and the buffer distance is 180 meters, the extended range is 2.36 kilometers east-west and 1.86 kilometers north-south, creating an image canvas with a corresponding pixel size of 1180×930.

[0078] S82. Establish a linear mapping relationship between geographic coordinates and pixel coordinates. Based on the geographic boundary of the extended rendering range and the width and height of the image, map the geographic horizontal coordinate within the extended rendering range to the pixel horizontal coordinate on the image canvas, and map the geographic vertical coordinate to the pixel vertical coordinate.

[0079] S83. Convert the water depth, water level, flow velocity, inundation duration, or risk level values ​​corresponding to the grid cells or grid triangles into pixel values; set transparency channels for uninundated areas or areas that need to reveal the base map; output PNG images, PNG images with transparency channels, PNG tiles, GeoTIFF images, or other raster images.

[0080] For example, suppose that water depths of 0 to 0.5 meters are mapped to light blue, 0.5 to 1 meter to blue, 1 to 2 meters to dark blue, and depths of more than 2 meters to purple, and unsubmerged areas are set to full transparency.

[0081] S84. In adjacent block buffer zones or overlapping areas, boundary consistency is handled according to a preset display priority rule. The display priority is as follows: maximum risk priority, maximum water depth priority, and latest time step priority. For example, in adjacent block overlapping areas, if block B3 displays a high risk level and block B5 displays a medium risk level, then pixel coverage is performed based on the high risk level.

[0082] By directly rendering the model results as georeferenced images, the front end does not need to parse large-scale grid data, significantly reducing the computational burden on the front end.

[0083] S91. The front end determines the set of spatial blocks to be loaded. For example, assuming that the current map view area intersects with blocks B3, B4, and B5, the set to be loaded is {B3, B4, B5}.

[0084] S92. The frontend compares the version numbers of locally cached images with the version numbers returned by the server, and only requests images whose version numbers have changed or which do not exist locally. For example, if the version number of B3 in the local cache is 2, and the latest version number on the server is 3, then the new image of B3 is requested; if the version number of B4 has not changed, it is not requested; if B5 does not exist locally, it is requested directly.

[0085] For new images corresponding to active spatial blocks, the front-end performs local replacements based on geographical range; for inactive spatial blocks, the front-end continues to use the image results from the previous time step. For example, after receiving a new image for B3, the front-end only replaces the area corresponding to B3 on the map, while areas B4 and B5 remain unchanged or are loaded directly.

[0086] It is understood that the systems, devices, and storage media provided in the embodiments of the present invention correspond to the methods provided in the embodiments of the present invention, and the explanations, examples, and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.

[0087] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.

[0088] For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media.

[0089] The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state disks (SSDs)).

[0090] It should be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0091] Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0092] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0093] The embodiments of the present invention are given for the purposes of illustration and description. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A real-time dynamic processing method of flood risk map based on spatiotemporal block incremental update, characterized in that, Perform the following steps using a computer device: S1. Obtain a flood risk map calculation scheme for flood storage and detention areas, rivers, polder areas and flood protection areas, and convert two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters into standardized calculation objects; S2. Construct a grid topology map based on the two-dimensional grid topology and water flow exchange relationship in the standardized computing object, and split and / or merge the computing region according to the grid processing load and hydrodynamic connectivity constraints to form a spatial block set; S3. Construct a spatial block adjacency graph based on the spatial block set, and calculate the flood connectivity intensity between adjacent spatial blocks; S4. Construct a time block set according to the output time step of the hydrodynamic model, and establish a joint index key based on the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier and version identifier. Organize the output results of the hydrodynamic model into corresponding spatiotemporal block units to form a spatiotemporal block index table. S5. Monitor the output of the hydrodynamic model. Whenever an output time step is completed, extract the grid results corresponding to each spatial block according to the spatiotemporal block index table and generate a block state summary. S6. Compare the block state summary of the current output time step with that of the previous output time step. Calculate the comprehensive change score of each spatial block based on the state difference, dry-wet state transition and adaptive change threshold. Identify the initial active spatial blocks based on the comprehensive change score. Perform neighborhood expansion on the initial active spatial blocks based on the spatial block adjacency graph and flood connectivity strength to obtain the final active spatial block set. S7. Generate incremental processing tasks for the current output time step based on the final active spatial block set. Data reading, statistical processing, and image rendering are performed only for the final active spatial blocks and the layer types that need to be updated. For inactive spatial blocks, the corresponding processing tasks are not executed repeatedly. The valid image results from the previous output time step are reused and the image version number remains unchanged. S8. Create image canvases for the spatial blocks in the final active spatial block set according to the extended rendering range, establish a mapping between geographic coordinates and pixel coordinates, convert grid values ​​into pixel values, and output image results with geographic registration. The image results are available for retrieval by flood control command organizations to support real-time assessment and dispatch decisions on flood risks.

2. The real-time dynamic processing method of flood risk map based on space-time block incremental update according to claim 1, characterized in that, The specific steps of S1 are as follows: S11. Read the flood risk map calculation scheme and extract the two-dimensional grid data, boundary conditions, model calculation parameters and rendering parameters; S12. Standardize the two-dimensional grid data, including coordinate system unification, time base unification, variable field mapping, missing value checking, and topological connectivity checking. The boundary conditions are standardized, including boundary process continuity checks and variable field mapping; S13. Standardize the rendering parameters, including checking the validity of the rendering parameters; assemble the standardized two-dimensional mesh data, boundary conditions, model calculation parameters and rendering parameters into a standardized calculation object, wherein the standardized calculation object includes a set of two-dimensional mesh cells, mesh edges and mesh topology relationships, a set of boundary conditions, a set of calculation parameters, a set of rendering parameters and a set of block control parameters.

3. The real-time dynamic processing method of flood risk map based on space-time block incremental update according to claim 1, characterized in that, The specific steps of S2 are as follows: S21. Construct a grid topology graph based on the set of two-dimensional grid cells in the standardized computing object. The grid topology graph uses grid cells as nodes and edges that share boundaries and allow water flow exchange between adjacent grids as topological edges. S22. Generate an initial spatial block set based on the rule grid, administrative division, flood storage and detention area unit, polder, village platform, river channel, flood diversion control area, engineering control unit or adaptive load balancing method; S23. Define the spatial block processing load as shown in the following formula: wherein, represents the kth spatial block in the set of spatial blocks B, represents the processing load of the kth spatial block ; represents the number of grid cells contained within the kth spatial block ; represents the boundary complexity of the kth spatial block ; represents the area of the kth spatial block ; represents the hydrodynamic connectivity complexity within the kth spatial block ; represents the number of result variable dimensions or the number of graph layers within the kth spatial block ; , , , , are preset block load weight coefficients. S24. Construct the spatial block optimization objective function, as shown in the following equation: Where F(B) represents the overall optimization objective value of the spatial block set B; M represents the total number of spatial blocks; It represents the variance of the processing load of each spatial block, and is used to constrain the degree of load balance among the processing blocks; Represents the k-th spatial block The cost of boundary complexity; Represents the k-th spatial block The redundancy cost caused by buffer zones or overlapping grids; Represents the k-th spatial block The cost of water flow exchange intensity when it is cut off at the boundary; , , , Optimize the weight coefficients for the preset blocks; adjust the spatial block scale and boundary position with the goal of minimizing F(B); S25. For spatial blocks that exceed the constraints of grid number, area, or pixel count, perform recursive splitting along the long side direction, grid density gradient direction, or low water flow exchange intensity boundary; perform merging correction on spatial blocks with too few grids and low load on adjacent blocks. S26. Set buffer zones or overlapping mesh sets for adjacent spatial blocks, with the buffer distance shown in the following formula: in, Indicates the buffer distance between adjacent spatial blocks; Indicates the average side length of the grid; Indicates the maximum flow velocity near the adjacent boundary; Indicates the output time step; Indicates the minimum buffer distance; For safety reasons; spatial partitioning extends the rendering range. ,in The original geographical extent of spatial division. Indicates to Expand the buffer distance outward Geometric operations.

4. The method for real-time dynamic processing of flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S3 are as follows: S31. Construct a spatial block adjacency graph based on the spatial block set. The nodes of the spatial block adjacency graph are spatial blocks. If two spatial blocks share a boundary, have overlapping buffer zones, or have a water flow exchange relationship between the boundary grids, then establish an adjacency edge between them. S32, For adjacent spatial blocks and The flood connectivity strength is calculated as shown in the following formula: in, Represents adjacent spatial blocks and The intensity of flood connectivity between them; Representing spatial partitioning and The amount of water exchanged at the boundary; This represents the maximum value of water exchange at the boundaries of all adjacent spatial blocks; Representing spatial partitioning and The length of the adjacent boundary between them; This represents the maximum length of adjacent boundaries among all adjacent spatial blocks; This indicates the number of wet grids on the adjacent boundaries of spatial blocks B_i and B_j; Representing spatial partitioning and Total number of grid cells on adjacent boundaries; This is an indicator variable for the connectivity of flood diversion outlets, sluice gates, or river channels. It is set to 1 when the above-mentioned connectivity control elements exist at adjacent boundaries, and 0 otherwise. , , , This is a preset connectivity strength weighting coefficient.

5. The method for real-time dynamic processing of flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S4 are as follows: S41. Construct a time block set according to the output time step of the hydrodynamic model; on the basis of fixed output time step, add event trigger time blocks according to boundary condition changes, flood diversion gate opening and closing, external river water level exceeding the threshold, model output change rate exceeding the threshold, or user-triggered emergency consultation command. S42. Establish a joint index key for the calculation scheme identifier, output time step identifier, spatial block identifier, layer type identifier, and version identifier, as shown in the following formula: Where K represents the composite index key; S represents the calculation scheme identifier; t represents the output time step identifier; b represents the spatial block identifier; l represents the layer type identifier; and v represents the version identifier. S43. Each joint index key corresponds to a spatiotemporal block unit data object, which includes the original geographic range of the spatial block, the extended rendering range, the pointer to the grid set contained in the spatial block, the model result cache object, the status summary, the statistical results, the image result address, the cache version number, and the image version number.

6. The real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S5 are as follows: S51. Monitor the output of the hydrodynamic model. When the completion of an output time step is detected, extract the mesh results corresponding to each spatial block according to the spatiotemporal block index table. S52. Generate a block status summary, which includes maximum water depth, average water depth, maximum water level, average water level, maximum flow velocity, inundated area, water storage capacity, number of wet grids, risk level, inundation duration, peak arrival time, block inflow, block outflow, flood front length, and image version number. S53. The inundation area and water storage volume are calculated using spatial blocks as statistical units. Based on the grid results corresponding to each spatial block and the water depth results corresponding to the current output time step, the inundation area and water storage volume of each spatial block are calculated respectively, as shown in the following formula: in, This represents the flooded area of ​​spatial block b at time step t; This represents the water storage capacity of spatial block b at time step t; This represents the set of grid cells contained within spatial block b; i is the grid cell index. Represents grid cells The area; Represents grid cells The water depth at time step t; Let dry and wet state function, when When the value is 1, The value is 0 at this time. Preset dry and wet thresholds; Indicates taking The larger value between 0 and 0.

7. The method for real-time dynamic processing of flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S6 are as follows: S61. Compare the block state summary of the current output time step with that of the previous output time step, and construct the state difference vector and the dry-wet state transition matrix, as shown in the following formulas: in, This represents the state difference vector of spatial block b at time step t relative to time step t-1; This indicates the maximum change in water depth; This indicates the change in average water depth; This indicates the maximum change in water level; This indicates the average change in water level; This indicates the maximum change in flow velocity; This indicates the change in the submerged area; Indicates the change in the number of wet grid cells; Indicates the amount of change in risk level; This indicates the change in water storage capacity; This indicates the change in the length of the flood front; This represents the wet / dry state transition matrix of spatial block b at time step t relative to time step t-1; Indicates the number of grid cells that remain dry; Indicates the number of grid cells that changed from dry to wet; This indicates the number of mesh cells that changed from wet to dry; Indicates the number of grid cells that remain moist; S62. Set the adaptive change threshold and calculate the comprehensive change score, as shown in the following formulas: in, This represents the adaptive change threshold of spatial block b for variable x at time step t; This represents the minimum threshold corresponding to variable x; This represents the set of absolute values ​​of the change in variable x within the historical window W. This represents the mean; The standard deviation is represented by m; m is the threshold adjustment coefficient. The score represents the overall change of spatial block b at time step t; , , , , These are the adaptive change thresholds corresponding to the maximum water depth change, maximum water level change, maximum flow velocity change, submerged area change, and wet grid number change, respectively. As an indicator variable for wet-dry conversion, when The value is 1 if the condition is met, otherwise it is 0. As a business constraint indicator variable, it is set to 1 when the spatial block is located in the flood control consultation concern area, the engineering scheduling impact area, the key area for personnel transfer, the high-risk area, or the current map view range; otherwise, it is set to 0. to The preset weighting coefficients for the change scores; S63, if If the risk level changes across levels, the spatial block will be added to the initial active spatial block set, where... To preset a comprehensive change scoring threshold; S64. For the identified initial active spatial block, traverse its neighboring spatial blocks based on the spatial block adjacency graph; when the flood connectivity strength between the initial active spatial block and its neighboring spatial blocks is greater than or equal to a preset connectivity expansion threshold, add the neighboring spatial blocks to the expansion set: in, Represents the initial active space block Adjacent spatial blocks The intensity of flood connectivity between them; This represents the preset connectivity expansion threshold, used to determine whether adjacent spatial blocks are included in the expansion set due to flood connectivity. Subsequently, as new spatial blocks to be expanded, neighborhood expansion continues until the expansion set no longer changes or reaches the preset maximum expansion layer, resulting in the final active spatial block set.

8. The real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S7 are as follows: S71. Generate processing tasks for each spatial block in the final active spatial block set and the layer type that needs to be updated; S72. Calculate task priority as shown in the following formula: in, This indicates the priority of the processing task corresponding to time step t, spatial block b, and layer type l; Score the overall change of spatial block b at time step t; The risk level of spatial block b at time step t; This is a field-of-view hit indicator variable, which is set to 1 when spatial tile b hits the current map's field of view, and 0 otherwise. The urgency of flood control consultations or engineering scheduling; Waiting time for the task , , , , The preset task priority weight coefficient; S73, the parallel scheduling module allocates tasks to multiple threads, multiple processes, multiple GPUs, multiple server nodes, or multiple rendering nodes for execution; S74. After regenerating images by active space blocks, the image version number increments, as shown in the following formula: in, This indicates the image version number corresponding to time step t, spatial block b, and layer type l; This indicates the image version number corresponding to the previous time step; the inactive space blocks reuse the image results from the previous time step while keeping the image version number unchanged; S75. When a task fails, an image rendering fails, or a data integrity check fails, the results of the previous valid version are retained and the index records are marked as pending recalculation. The task is then regenerated in the background.

9. The real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, The specific steps of S8 are as follows: S81. For the spatial blocks in the final active spatial block set, create an image canvas according to the extended rendering range; S82. Establish a linear mapping relationship between geographic coordinates and pixel coordinates. Based on the geographic boundary of the extended rendering range and the width and height of the image, map the geographic horizontal coordinate within the extended rendering range to the pixel horizontal coordinate on the image canvas, and map the geographic vertical coordinate to the pixel vertical coordinate. S83. Convert the water depth, water level, flow velocity, inundation duration, or risk level values ​​corresponding to the grid cells or grid triangles into pixel values; set transparency channels for uninundated areas or areas that need to reveal the base map; output PNG images, PNG images with transparency channels, PNG tiles, GeoTIFF images, or other raster images; S84. In adjacent block buffer zones or overlapping areas, boundary consistency is handled according to preset display priority rules, wherein the display priorities are as follows: maximum risk priority, maximum water depth priority, and latest time step priority.

10. The real-time dynamic processing method for flood risk maps based on spatiotemporal block incremental updates according to claim 1, characterized in that, Following S8, S9 is also included, and the specific steps are as follows: The front-end determines the set of spatial blocks to be loaded based on the current playback time step, layer type, and map view range. It compares the version number of the locally cached images with the version number of the images returned by the server, and only requests images with changed version numbers or those that do not exist locally. It performs partial replacement of images corresponding to active spatial blocks, and continues to use images from the previous time step for inactive spatial blocks.