Method and device for treating rainwater runoff
Patent Information
- Application Number
- CN202310647179.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-06-02
AI Technical Summary
[0005]本申请的目的在于,针对上述现有技术中的不足,提供一种雨水径流处理方法及装置,以解决现有技术中可视化程度不高及雨水径流分析准确度低的问题
[0057]本申请的有益效果是:通过获取目标区域的原始高程数据建立数字高程模型,数字高程模型表示三维的目标区域的地形,其可视化程度高。然后通过根据原始高程数据中的等高线生成多个网格面,根据网格面确定雨水径流运动的路径,使得雨水径流运动分析的准确度高,且因为在三维的地形中进行分析,因此径流运动路径整体连通性高。然后将数字高程模型中的雨水径流运动的路径以及工程构建物的信息叠加至数字高程模型中,得到并展示目标区域的雨水径流三维空间模型,清晰的表达地形与降水之间的关系,提高地形与降雨形成的径流路径之间的关联性。
Smart Images

Figure CN116797748B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hydrological simulation and analysis technology, and more specifically, to a method and apparatus for treating rainwater runoff. Background Technology
[0002] Complex mountainous areas often have numerous slopes, well-developed water systems, and crisscrossing gullies, resulting in fragile soil and water environments and ecosystems. In particular, slope instability induced by torrential rains is common, posing a significant potential threat to projects under construction or in operation. Therefore, analyzing rainwater runoff on mountain slopes is crucial to preventing slope instability.
[0003] Currently, two-dimensional hydrological analysis is commonly used to analyze the runoff paths of rainwater on mountain slopes, thereby avoiding the threat posed by slope instability to engineering projects.
[0004] However, the results of two-dimensional hydrological analysis have the problem of low accuracy and low visualization, making it difficult to express the relationship between topography and precipitation. Summary of the Invention
[0005] The purpose of this application is to provide a rainwater runoff treatment method and apparatus to address the shortcomings of the prior art, thereby solving the problems of low visualization and low accuracy of rainwater runoff analysis in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, one embodiment of this application provides a method for treating rainwater runoff, the method comprising:
[0008] Obtain the original elevation data of the target area, and establish a digital elevation model based on the original elevation data. The original elevation data includes at least: information on multiple contour lines and engineering structures.
[0009] Multiple grid surfaces of the digital elevation model are generated based on the contour lines;
[0010] The path of rainwater runoff movement in the digital elevation model is determined based on the multiple grid surfaces;
[0011] The path of rainwater runoff movement and the information of the engineering structure in the digital elevation model are superimposed onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0012] Optionally, generating multiple grid surfaces of the digital elevation model based on the contour lines includes:
[0013] Each contour line is divided into equal intervals to obtain multiple elevation points corresponding to the contour lines;
[0014] Multiple grid surfaces of the digital elevation model are generated based on the multiple elevation points corresponding to each contour line.
[0015] Optionally, determining the path of rainwater runoff movement in the digital elevation model based on the plurality of grid surfaces includes:
[0016] Multiple raindrops are randomly generated on each of the aforementioned grid surfaces;
[0017] Based on the target position of each raindrop after it has moved a preset distance in the vertical direction and the position of each grid surface, the target grid surface corresponding to each raindrop is determined;
[0018] Based on the lowest point of the target grid surface corresponding to each raindrop, the path of rainwater runoff movement in the digital elevation model is obtained.
[0019] Optionally, determining the target grid surface corresponding to each raindrop based on the target position of each raindrop after moving a preset distance in the vertical direction and the position of each grid surface includes:
[0020] Based on the target location and the positions of each grid surface, determine the distance between each grid surface and the target location;
[0021] The grid surface closest to the target location is taken as the target grid surface corresponding to the raindrop.
[0022] Optionally, obtaining the path of rainwater runoff movement in the digital elevation model based on the lowest point of the target grid surface corresponding to each raindrop includes:
[0023] According to the height order of each target grid point, the lowest point of each target grid point is connected in sequence to obtain the path of rainwater runoff movement in the digital elevation model.
[0024] Optionally, the step of overlaying the stormwater runoff path and the information of the engineering structure in the digital elevation model onto the digital elevation model to obtain and display a three-dimensional spatial model of stormwater runoff in the target area includes:
[0025] Based on hydrological characteristics, regional characteristics, and map characteristics, the digital elevation model is divided into multiple sub-models, each of which corresponds to a sub-basin in the target area.
[0026] Based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, the boundaries of each sub-model are adjusted to obtain the adjusted digital elevation model.
[0027] The path of rainwater runoff in the digital elevation model and the information of the engineering structure are superimposed onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0028] Optionally, adjusting the boundaries of each sub-model based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model to obtain an adjusted digital elevation model includes:
[0029] The boundaries of each sub-model are adjusted according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, resulting in the adjusted sub-model.
[0030] The adjusted digital elevation model is obtained based on the adjusted sub-model.
[0031] Secondly, another embodiment of this application provides a rainwater runoff treatment device, the device comprising:
[0032] The acquisition module is used to acquire the original elevation data of the target area and establish a digital elevation model based on the original elevation data. The original elevation data includes at least: multiple contour lines and information on engineering structures.
[0033] A generation module is used to generate multiple grid surfaces of the digital elevation model based on the contour lines;
[0034] The determination module is used to determine the path of rainwater runoff movement in the digital elevation model based on the multiple grid surfaces;
[0035] The display module is used to overlay the path of rainwater runoff movement and the information of the engineering structure in the digital elevation model onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0036] Optionally, the generated modules specifically include:
[0037] Each contour line is divided into equal intervals to obtain multiple elevation points corresponding to the contour lines;
[0038] Multiple grid surfaces of the digital elevation model are generated based on the multiple elevation points corresponding to each contour line.
[0039] Optionally, the module to be determined specifically includes:
[0040] Multiple raindrops are randomly generated on each of the aforementioned grid surfaces;
[0041] Based on the target position of each raindrop after it has moved a preset distance in the vertical direction and the position of each grid surface, the target grid surface corresponding to each raindrop is determined;
[0042] Based on the lowest point of the target grid surface corresponding to each raindrop, the path of rainwater runoff movement in the digital elevation model is obtained.
[0043] Optionally, the module to be determined specifically includes:
[0044] Based on the target location and the positions of each grid surface, determine the distance between each grid surface and the target location;
[0045] The grid surface closest to the target location is taken as the target grid surface corresponding to the raindrop.
[0046] Optionally, the module to be determined specifically includes:
[0047] According to the height order of each target grid point, the lowest point of each target grid point is connected in sequence to obtain the path of rainwater runoff movement in the digital elevation model.
[0048] Optionally, the display module specifically includes:
[0049] Based on hydrological characteristics, regional characteristics, and map characteristics, the digital elevation model is divided into multiple sub-models, each of which corresponds to a sub-basin in the target area.
[0050] Based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, the boundaries of each sub-model are adjusted to obtain the adjusted digital elevation model.
[0051] The path of rainwater runoff in the digital elevation model and the information of the engineering structure are superimposed onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0052] Optionally, the display module specifically includes:
[0053] The boundaries of each sub-model are adjusted according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, resulting in the adjusted sub-model.
[0054] The adjusted digital elevation model is obtained based on the adjusted sub-model.
[0055] Thirdly, another embodiment of this application provides an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method described in the first aspect above.
[0056] Fourthly, another embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the method described in the first aspect above.
[0057] The beneficial effects of this application are as follows: A digital elevation model (DEM) is established by acquiring the original elevation data of the target area. This DEM represents the three-dimensional terrain of the target area and has a high degree of visualization. Then, multiple grid surfaces are generated based on the contour lines in the original elevation data. The path of rainwater runoff is determined based on these grid surfaces, resulting in high accuracy in rainwater runoff analysis. Furthermore, because the analysis is performed on three-dimensional terrain, the overall connectivity of the runoff path is high. Finally, the rainwater runoff path and information about engineering structures in the DEM are overlaid onto the DEM to obtain and display a three-dimensional spatial model of rainwater runoff in the target area. This clearly expresses the relationship between terrain and precipitation, improving the correlation between terrain and the runoff path formed by rainfall. Attached Figure Description
[0058] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 This is a schematic diagram of a rainwater runoff treatment method provided in an embodiment of this application;
[0060] Figure 2 This is a schematic flowchart of a rainwater runoff treatment method provided in an embodiment of this application;
[0061] Figure 3 This is a flowchart illustrating a method for obtaining a mesh surface provided in an embodiment of this application;
[0062] Figure 4 This is a schematic diagram of multiple contour lines within a region provided in an embodiment of this application;
[0063] Figure 5 This is a schematic diagram illustrating how contour lines are divided into elevation points, as provided in an embodiment of this application.
[0064] Figure 6 This is a schematic diagram illustrating how elevation points are connected to form a grid surface, as provided in an embodiment of this application.
[0065] Figure 7 This is a flowchart illustrating a rainwater runoff path analysis method provided in an embodiment of this application;
[0066] Figure 8 This is a schematic diagram illustrating the selection of a grid surface example location provided in an embodiment of this application;
[0067] Figure 9 This is a schematic diagram illustrating how rainwater can be used to determine a target grid surface, as provided in an embodiment of this application.
[0068] Figure 10 This is a flowchart illustrating a method for determining a target grid surface using rainwater, as provided in an embodiment of this application.
[0069] Figure 11 This is a flowchart illustrating a method for determining a three-dimensional spatial model of rainwater runoff, provided in an embodiment of this application.
[0070] Figure 12 This is a flowchart illustrating a method for determining an adjusted digital elevation model according to an embodiment of this application;
[0071] Figure 13 This application provides a command flowchart for generating a mesh surface using contour lines in the Grasshopper plugin;
[0072] Figure 14 This is a command flowchart provided in this application embodiment for obtaining rainwater runoff paths using raindrop analysis in the Grasshopper plugin;
[0073] Figure 15 This is a schematic diagram of the structure of a rainwater runoff treatment device provided in an embodiment of this application;
[0074] Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0075] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0076] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0077] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0078] Because slope instability induced by heavy rain is widespread, it poses a significant potential threat to projects under construction or in operation. Therefore, it is essential to analyze the rainwater runoff in the mountainous area during the pre-construction planning stage or during project operation to proactively prevent damage to construction projects caused by geological disasters resulting from both mountain-type and summer-rain-type geological hazards.
[0079] Currently, two-dimensional hydrological analysis is commonly used to analyze slope rainwater runoff paths in complex mountainous areas. However, two-dimensional hydrological analysis suffers from problems such as low uniformity of rainfall points used for prediction, instability of predicted runoff paths, and low overall runoff connectivity. Furthermore, because it is a two-dimensional hydrological analysis, its visualization is not high, and the results are difficult to intuitively express the relationship between topography and precipitation.
[0080] To address the aforementioned issues, this application proposes a stormwater runoff processing method. This method establishes a digital elevation model (DEM) based on the acquired raw elevation data of the target area. Multiple grid surfaces are generated from the DEM based on contour lines. The path of stormwater runoff movement within the DEM is determined using these grid surfaces. Then, the stormwater runoff path and engineering structure models are superimposed onto the DEM to obtain a three-dimensional spatial model of stormwater runoff within the target area, which is then displayed. Users can use the stormwater runoff path in the three-dimensional spatial model of the target area to clarify the relationship between mountainous terrain, slope rainwater, and engineering structures, and determine whether stormwater runoff poses a threat to projects under construction or operation. This model can ensure the completeness of disaster prevention, mitigation, and relief engineering throughout the entire lifecycle of mountainous engineering projects.
[0081] First, before detailing the methods for treating stormwater runoff, let's refer to... Figure 1 The application scenarios of rainwater runoff treatment methods are introduced. For example... Figure 1As shown, the application scenario of this application involves data acquisition equipment and processing equipment. The data acquisition equipment can be, for example, a lidar sensor, and the processing equipment can be, for example, a server or other device with computing capabilities. The data acquisition equipment and the processing equipment communicate or are electrically connected; for example, they transmit information via Bluetooth or cable. When it is necessary to determine whether rainwater runoff poses a threat to a project under construction or operation, the mountainous area where the project is located is first identified as the target area. The data acquisition equipment collects the raw elevation data of the target area and sends the raw elevation data to the processing equipment. The processing equipment receives the raw elevation data and performs modeling and analysis based on it to obtain a three-dimensional spatial model of the rainwater runoff, which is then displayed on the processing equipment's screen. Users can determine whether rainwater runoff poses a threat to a project under construction or operation by viewing the three-dimensional spatial model of the rainwater runoff on the processing equipment.
[0082] The following reference Figure 2 This application introduces a method for treating rainwater runoff, which can be applied to the aforementioned treatment equipment.
[0083] S201. Obtain the original elevation data of the target area and establish a digital elevation model based on the original elevation data. The original elevation data shall include at least: information on multiple contour lines and engineering structures.
[0084] Optionally, users can determine the area to be analyzed based on the mountain area where the engineering structure is located, and use the area to be analyzed as the target area.
[0085] Optionally, the raw elevation data of the target area can be obtained by scanning the terrain and engineering structures of the target area using a data acquisition device via Geographic Information System (GIS). The raw elevation data includes multiple contour lines and information about the engineering structures. For example, it may include original topographic images and the boundaries of the engineering site area. The engineering structures may be bridges, buildings, etc., within the target area, or may include railways, highways, and new energy projects.
[0086] Optionally, a digital elevation model (DEM) can be built based on multiple contour lines and other data from the original elevation data. It's worth noting that the DEM can be a 3D model, offering excellent visualization capabilities. Furthermore, the DEM can include the terrain of the target area, or it can include images of the target area's terrain.
[0087] S202. Generate multiple grid surfaces of the digital elevation model based on the contour lines.
[0088] Optionally, the contour lines in the original elevation data can be multiple closed curves formed by connecting adjacent points of equal elevation within the target area. Multiple grid surfaces can be generated based on the density and position of the contour lines.
[0089] Optionally, the mesh surface can represent a rough planar representation of the terrain within the target area. The mesh surface can be a triangle or a quadrilateral. For example, the mesh surface can be a mesh surface, which can represent the mesh of the model and represent the surface shape of the object. The model surface is composed of multiple triangles connected to each other.
[0090] For example, two contour lines can be obtained from the shape of a cone without a base, one representing the vertex of the cone and the other representing the outer contour of the base of the cone. The shape of the grid surface established based on the two contour lines can form a pyramid without a base, where each face of the pyramid can represent a grid surface.
[0091] As an alternative implementation method, contour lines can be converted into multiple elevation points, and then adjacent elevation points can be connected in sequence to form a grid surface.
[0092] S203. Determine the path of rainwater runoff movement in the digital elevation model based on multiple grid surfaces.
[0093] Optionally, the runoff path of rainwater can be characterized as the path of rainwater flowing along the earth's surface under the influence of gravity. It is worth noting that this application studies a rainwater runoff treatment method, where rainwater can also be replaced by melted snow and ice water; the source of the water is not limited in this application.
[0094] Optionally, rainfall simulations can be performed on multiple grid surfaces, and the path of rainwater runoff in the digital elevation model can be determined based on the simulation results. As an alternative implementation, raindrops can be randomly selected, and the simulation can be performed using the trajectory of the falling raindrops and the positions of adjacent grid surfaces to analyze the possible runoff paths formed by rainwater. For specific details, please refer to steps S701-S703 below.
[0095] S204. Overlay the path of rainwater runoff and the information of engineering structures in the digital elevation model into the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0096] Optionally, the three-dimensional spatial model of stormwater runoff in the target area may include a digital elevation model, stormwater runoff paths, and engineering structures. Users can use the three-dimensional spatial model of stormwater runoff to determine whether stormwater and its runoff pose a threat to engineering structures. For example, users can use the digital elevation model in the three-dimensional spatial model of stormwater runoff to determine which watershed an engineering structure belongs to, and use the stormwater runoff paths to determine whether the engineering structure is located on the stormwater runoff path, or is planned to be located on the stormwater runoff path.
[0097] Optionally, the processing equipment can display a three-dimensional spatial model of rainwater runoff on its own display screen, or it can display the three-dimensional spatial model of rainwater runoff on an external display device.
[0098] In this embodiment, a digital elevation model (DEM) is established by acquiring the original elevation data of the target area. The DEM represents the three-dimensional terrain of the target area and has a high degree of visualization. Then, multiple grid surfaces are generated based on the contour lines in the original elevation data. The path of rainwater runoff is determined based on the grid surfaces, resulting in high accuracy of rainwater runoff analysis. Furthermore, because the analysis is performed on three-dimensional terrain, the overall connectivity of the runoff path is high. Then, the rainwater runoff path and information on engineering structures in the DEM are superimposed onto the DEM to obtain and display a three-dimensional spatial model of rainwater runoff in the target area. This clearly expresses the relationship between terrain and precipitation, and improves the correlation between terrain and the runoff path formed by rainfall.
[0099] Based on the above steps S201-S204, referring to Figure 3 The process of generating multiple grid surfaces of the digital elevation model based on contour lines in step S202 is described.
[0100] S301. Divide each contour line into equal intervals to obtain multiple elevation points corresponding to the contour lines.
[0101] Optionally, since multiple curves represent different altitudes within a region in a digital elevation model, and each contour line represents the same altitude, dividing the contour lines into equal intervals means that all elevation points on the contour lines also represent the same altitude.
[0102] For example, you can refer to Figure 4 and Figure 5 The above steps will be explained. Figure 4 It is a schematic diagram of multiple contour lines within a region, which can represent altitudes of 3400 meters, 3500 meters, 3600 meters, and 3700 meters. Figure 5 It is based on Figure 4 The contour lines are divided into multiple elevation points at equal intervals, and the corresponding elevation points are 3400 meters, 3500 meters, 3600 meters and 3700 meters.
[0103] Optionally, the distance between contour lines can be preset. It's worth noting that a smaller separation distance results in more elevation points and a more accurate simulation of stormwater runoff, but also places higher demands on the computer's computing power. Conversely, a larger separation distance results in fewer elevation points and a coarser simulation of stormwater runoff, but also lowers the computational requirements.
[0104] S302. Generate multiple grid surfaces of the digital elevation model based on the multiple elevation points corresponding to each contour line.
[0105] Optionally, the elevation points corresponding to each contour line can be connected sequentially according to their positional relationship to form a grid surface. The shape of the grid surface is not restricted here. It is worth noting that the fewer the number of edges on the grid surface, the more accurate the rainwater runoff simulation results, but the higher the computational requirements; conversely, the more edges on the grid surface, the coarser the rainwater runoff simulation results, but the lower the computational requirements.
[0106] For example, you can refer to Figure 5 and Figure 6 The above steps are explained by way of example. Figure 5 There are multiple elevation points corresponding to contour lines. Connect the three closest elevation points in sequence to form... Figure 6 Multiple mesh surfaces in the Chinese style, Figure 6 The grid surface is triangular, which can accurately simulate the path of rainwater runoff.
[0107] Optionally, grid surfaces can be used to approximate the terrain in a digital elevation model (DEM). Rainwater runoff paths obtained through model analysis on grid surfaces can be considered equivalent to rainwater runoff paths obtained on the actual terrain within the DEM. The more elevation points within a given area, the closer the simulated rainwater runoff paths on the grid surfaces will be to those obtained on the actual terrain within the DEM. It is worth noting that each grid surface can be represented in three-dimensional space, depicting a three-dimensional model shape.
[0108] In this embodiment, by dividing each contour line into equal intervals, multiple elevation points corresponding to the contour lines are obtained. Based on the multiple elevation points corresponding to each contour line, multiple grid surfaces of the digital elevation model are generated, which can obtain a set of grid surfaces that approximate the real terrain in the digital elevation model. Using these grid surfaces for analysis, highly accurate rainwater runoff paths can be obtained.
[0109] Next, refer to Figure 7 The following explanation is provided for step S203, which involves determining the path of rainwater runoff movement in the digital elevation model based on multiple grid surfaces:
[0110] S701. Randomly generate multiple raindrops on each grid surface.
[0111] Alternatively, a raindrop can be viewed as a particle with weight but no volume, which can move vertically in space.
[0112] Optionally, the locations of raindrops on the grid surface are random, and the number can be preset. For example, 10,000 raindrops can be set across the entire grid surface for analysis. The more raindrops set, the higher the accuracy of the stormwater runoff path; the fewer raindrops set, the lower the accuracy of the stormwater runoff path.
[0113] S702. Based on the target position of each raindrop after moving a preset distance in the vertical direction and the position of each grid surface, determine the target grid surface corresponding to each raindrop.
[0114] Optionally, by determining the target position of each raindrop after moving a preset distance vertically and the position of each grid surface, the grid surface closest to each raindrop is identified as the target grid surface corresponding to that raindrop. Therefore, moving all raindrops vertically by a preset distance results in a larger preset distance, a farther target grid surface, and potentially fewer of them, leading to lower accuracy of the rainwater runoff path in the digital elevation model. Conversely, a smaller preset distance results in closer target grid surfaces, potentially more target grid surfaces for all raindrops, and thus higher accuracy of the rainwater runoff path in the digital elevation model.
[0115] Optionally, multiple raindrops can belong to the same target grid surface, which can represent that rainwater on the terrain represented by multiple grid surfaces can flow to the terrain corresponding to the target grid surface under the action of gravity. Figure 8 yes Figure 7 Based on this, a portion of the mesh faces in the upper left corner of the entire mesh group is selected for analysis, where some mesh faces are... Figure 9 The text appears to be a mix of Chinese characters and symbols, possibly representing a corrupted or incomplete sentence. A direct translation wouldn't be Figure 9 In this scenario, assuming three raindrops have moved vertically, their distance from the grid surface is determined. Figure 9 The two grid surfaces highlighted in bold are the target grid surfaces corresponding to the raindrops.
[0116] S703. Based on the lowest point of the target grid surface corresponding to each raindrop, obtain the path of rainwater runoff movement in the digital elevation model.
[0117] Optionally, multiple raindrops can correspond to a single target grid surface. The lowest point of the target grid surface represents the possible inflow location of rainwater runoff on the terrain corresponding to the multiple raindrops. When the number of target grid surfaces is small, the number of possible inflow locations of rainwater runoff on the terrain corresponding to the multiple raindrops is smaller, resulting in a coarser rainwater runoff path. Conversely, when the number of target grid surfaces is large, the number of possible inflow locations of rainwater runoff on the terrain corresponding to the multiple raindrops is larger, resulting in a more precise rainwater runoff path.
[0118] For example, such as Figure 9 In this scenario, assuming that three raindrops determine two target grid surfaces after moving vertically, and the lowest point of the two grid surfaces can be a single point, then that point corresponds to the location where rainwater runoff may flow into.
[0119] In this embodiment, multiple raindrops are first randomly generated on each grid surface. Based on the target position of each raindrop after moving a preset distance vertically and the position of each grid surface, the target grid surface corresponding to each raindrop is determined. Then, based on the lowest point of the target grid surface corresponding to each raindrop, the path of rainwater runoff in the digital elevation model is obtained. By determining the inflow position of rainwater runoff on the corresponding terrain by the position of the raindrop after its vertical movement, the path of rainwater runoff can be simulated while ensuring accuracy.
[0120] The following is for reference Figure 10 The detailed process of determining the target grid surface corresponding to each raindrop in step S702 based on the target position of each raindrop after moving a preset distance in the vertical direction and the position of each grid surface is described.
[0121] S1001. Determine the distance between each grid surface and the target location based on the target location and the location of each grid surface.
[0122] Optionally, after moving all raindrops a preset distance in the vertical direction, the distance between each grid surface and the target position is determined based on the position of the raindrops after they have moved and the position of each grid surface.
[0123] S1002, Select the grid surface closest to the target location as the target grid surface corresponding to the raindrop.
[0124] Optionally, the position of the raindrop after movement can be a point, and the grid surface can be a surface. By calculating the distance between the point and the surface, the grid surface with the closest distance to the raindrop is determined, and this grid surface is used as the target grid surface.
[0125] Optionally, connecting all the target grid surfaces corresponding to the raindrops will yield the path of rainwater runoff movement in the digital elevation model.
[0126] In this embodiment, by determining the distance between each grid surface and the target location based on the target location and the location of each grid surface, and taking the grid surface closest to the target location as the target grid surface corresponding to the raindrop, the grid surface corresponding to the raindrop can be determined, thereby determining the movement path of rainwater runoff on the terrain corresponding to the raindrop, and thus improving the accuracy of rainwater runoff path analysis.
[0127] The following explanation will focus on the method in step S703 above, which uses the lowest point of the target grid surface corresponding to each raindrop to obtain the path of rainwater runoff movement in the digital elevation model.
[0128] Optionally, the lowest points of each target grid point can be connected sequentially according to their height order to obtain the path of rainwater runoff movement in the digital elevation model.
[0129] Optionally, since each mesh surface is in three-dimensional space, the lowest point corresponding to each target mesh surface will also be in three-dimensional space and may have different heights.
[0130] Optionally, connecting the lowest points of each target grid point sequentially can yield the path of rainwater runoff movement in the digital elevation model. The resulting path can be composed of either a polyline connecting the lowest points or a smooth curve connecting the lowest points.
[0131] Optionally, by connecting the lowest points of each target grid point in sequence, a rainwater runoff path based on the target grid surface can be obtained. This path can be projected onto the digital elevation model, so that the rainwater runoff path on the digital elevation model can be attached to the real terrain of the digital elevation model, thus improving the display effect.
[0132] In this embodiment, the lowest point of each target grid point is connected sequentially according to the height order of each target grid point to obtain the path of rainwater runoff movement in the digital elevation model. This path of rainwater runoff movement has a higher degree of visualization and overall flowability compared to the path of two-dimensional simulation.
[0133] As one possible implementation method, combined with Figure 11 The steps described above, which involve overlaying the path of rainwater runoff movement and information about engineering structures from the digital elevation model onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area, are explained.
[0134] S1101. Based on hydrological characteristics, regional characteristics, and map characteristics, the digital elevation model is divided into multiple sub-models, each of which corresponds to a sub-basin in the target area.
[0135] Optionally, hydrological features can be river information within the current target area. Regional features can refer to location information in the digital elevation model; for example, regional features could be ridge areas or valley areas within the target area. Map features can refer to information such as man-made river crossings within the target area.
[0136] Optionally, a sub-basin can represent the area through which a runoff tributary flows in the stormwater runoff path.
[0137] S1102. Based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, the boundaries of each sub-model are adjusted to obtain the adjusted digital elevation model.
[0138] Optionally, the rainwater runoff path in the digital elevation model can be overlaid with each sub-model. As an example, the rainwater runoff path in the digital elevation model can be linked to each sub-model.
[0139] Optionally, the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model can be determined. This includes determining if the path of rainwater runoff movement in the digital elevation model exceeds the boundary of its respective sub-model, indicating a mismatch and requiring adjustment of the sub-model's boundary.
[0140] Optionally, if the path of rainwater runoff movement in the digital elevation model does not match the boundary of the sub-model, the boundary of the sub-model can be adjusted to obtain an adjusted digital elevation model.
[0141] S1103. The path of rainwater runoff movement and the information of engineering structures in the digital elevation model are superimposed onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0142] Optionally, the path of rainwater runoff movement and information of engineering structures in the digital elevation model can be linked to the adjusted digital elevation model to obtain a three-dimensional spatial model of rainwater runoff in the target area.
[0143] For example, in the adjusted digital elevation model, the boundaries of each sub-model can be highlighted, thus clearly showing the boundaries of the sub-basins.
[0144] Optionally, users can determine whether rainwater poses a threat to the engineering structure based on the location of the engineering structure, the boundary of the sub-basin, and the path of rainwater runoff.
[0145] In this embodiment, the boundaries of each sub-model are adjusted based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model (DEM), resulting in an adjusted DEM that matches the boundaries of the sub-models with the path of rainwater runoff movement. Then, the path of rainwater runoff movement in the DEM and information about the engineering structures are superimposed onto the adjusted DEM to obtain and display a three-dimensional spatial model of rainwater runoff in the target area. This allows users to determine whether rainwater threatens engineering structures based on accurate rainwater runoff analysis results.
[0146] See below for reference. Figure 12 In step S1102 above, the boundaries of each sub-model are adjusted based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, and the adjusted digital elevation model is then analyzed.
[0147] S1201. Adjust the boundaries of each sub-model according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model to obtain the adjusted sub-model.
[0148] It is worth noting that the digital elevation model composed of the adjusted sub-models has the same terrain as the digital elevation model before the adjustment.
[0149] S1202. Obtain the adjusted digital elevation model based on the adjusted sub-model.
[0150] Optionally, the adjusted sub-model represents the region of stormwater runoff movement path in the digital elevation model. This path can be divided into main paths and sub-paths, and the adjusted sub-model can completely encompass the sub-paths of stormwater runoff movement.
[0151] In this embodiment, the boundaries of each sub-model are adjusted according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, resulting in an adjusted sub-model. Then, an adjusted digital elevation model is obtained based on the adjusted sub-model. This allows the boundaries of the sub-models in the digital elevation model to match the path of rainwater runoff movement, making it easier for users to determine whether rainwater threatens engineering structures through accurate rainwater runoff analysis results.
[0152] The following describes the complete process of generating and displaying a three-dimensional spatial model of stormwater runoff.
[0153] First, a digital elevation model (DEM) is established based on contour lines and elevation data. Then, the DEM is divided into sub-models, each representing a sub-watershed, based on the hydrological, regional, and map characteristics of the target area. For example, using ArcGIS software's 3D Analyst tool, a DEM for the target area is created using TIN and TIN-to-raster conversion functions, based on contour lines and other data. Then, ArcGIS software's hydrological analysis, regional analysis, and map algebra tools are used to further divide the target area into different sub-models. Finally, the sub-layers from the sub-models are exported to CAD format, where sub-layers are in .shp file format and CAD files are in .dwg format. The CAD format of the sub-layers can be displayed by Rhino.
[0154] Secondly, a stormwater runoff analysis model is established based on contour lines and elevation data. Specific steps include: first, dividing contour lines into equal-distance elevation points, and then determining the grid surface using these elevation points. Next, analysis is performed using the grid surface and simulated raindrops to obtain the path model of stormwater runoff movement. The steps for analyzing using the grid surface and simulated raindrops include: randomly generating a preset number of raindrops on multiple grid surfaces, allowing the raindrops to fall a certain preset distance vertically, and then selecting and connecting the lowest point of the grid surface closest to the fallen raindrops to obtain the path curve of the stormwater runoff movement. For example, the above steps are implemented using the Grasshopper native plugin and plugins such as Anemone. Then, the Bake function in the Grasshopper plugin is used to export the obtained stormwater runoff path curve to a layer in Rhino software, resulting in a stormwater runoff path layer. Figure 13 and Figure 14 This is a command flowchart from the Grasshopper plugin for Rhino software, where... Figure 13 This is a flowchart of the command to generate a mesh surface using contour lines in the Grasshopper plugin. Figure 14 This is a flowchart of the command used in the Grasshopper plugin to obtain the lowest point of the mesh surface by preset raindrops and analyzing rainwater movement, and then connecting them into a line. (See also...) Figure 13 and Figure 14 Implement the above steps in Grasshopper.
[0155] Next, based on the path curves of rainwater runoff movement within the target area and the sub-basin layers, the boundaries of the sub-basin models are manually corrected. For example, the curve editing function in Rhino software is used to manually optimize and adjust the boundaries of the sub-basin models. Then, the projection curve function is used to project the adjusted sub-model boundary curves onto the mesh surface of the study area, resulting in the adjusted digital elevation model. It is worth noting that projecting the sub-model boundary curves onto the target area mesh surface and projecting the path curves of rainwater runoff movement onto the digital elevation model serve the same purpose and can be implemented as two methods.
[0156] In addition, sub-layers, rainwater runoff path layers, and engineering structures are superimposed in sequence to finally generate a three-dimensional spatial model of slope rainwater runoff in the target area.
[0157] The specific implementation methods for each of the above steps can be found in the foregoing embodiments.
[0158] Based on the same inventive concept, this application also provides a rainwater runoff treatment device corresponding to the rainwater runoff treatment method. Since the principle of the device in this application is similar to the rainwater runoff treatment method described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0159] Reference Figure 15 The diagram shown is a schematic of a rainwater runoff treatment device provided in an embodiment of this application. The device includes: an acquisition module 1501, a generation module 1502, a determination module 1503, and a display module 1504; wherein:
[0160] The acquisition module 1501 is used to acquire the original elevation data of the target area and establish a digital elevation model based on the original elevation data. The original elevation data includes at least: multiple contour lines and information on engineering structures.
[0161] The generation module 1502 is used to generate multiple grid surfaces of the digital elevation model based on the contour lines;
[0162] The determination module 1503 is used to determine the path of rainwater runoff movement in the digital elevation model based on the multiple grid surfaces;
[0163] The display module 1504 is used to overlay the path of rainwater runoff movement in the digital elevation model and the information of the engineering structure onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0164] Optionally, the generation module 1502 specifically includes:
[0165] Each contour line is divided into equal intervals to obtain multiple elevation points corresponding to the contour lines;
[0166] Multiple grid surfaces of the digital elevation model are generated based on the multiple elevation points corresponding to each contour line.
[0167] Optionally, module 1503 specifically includes:
[0168] Multiple raindrops are randomly generated on each of the aforementioned grid surfaces;
[0169] Based on the target position of each raindrop after it has moved a preset distance in the vertical direction and the position of each grid surface, the target grid surface corresponding to each raindrop is determined;
[0170] Based on the lowest point of the target grid surface corresponding to each raindrop, the path of rainwater runoff movement in the digital elevation model is obtained.
[0171] Optionally, module 1503 specifically includes:
[0172] Based on the target location and the positions of each grid surface, determine the distance between each grid surface and the target location;
[0173] The grid surface closest to the target location is taken as the target grid surface corresponding to the raindrop.
[0174] Optionally, module 1503 specifically includes:
[0175] According to the height order of each target grid point, the lowest point of each target grid point is connected in sequence to obtain the path of rainwater runoff movement in the digital elevation model.
[0176] Optionally, display module 1504 specifically includes:
[0177] Based on hydrological characteristics, regional characteristics, and map characteristics, the digital elevation model is divided into multiple sub-models, each of which corresponds to a sub-basin in the target area.
[0178] Based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, the boundaries of each sub-model are adjusted to obtain the adjusted digital elevation model.
[0179] The path of rainwater runoff in the digital elevation model and the information of the engineering structure are superimposed onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
[0180] Optionally, display module 1504 specifically includes:
[0181] The boundaries of each sub-model are adjusted according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, resulting in the adjusted sub-model.
[0182] The adjusted digital elevation model is obtained based on the adjusted sub-model.
[0183] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0184] This application also provides an electronic device, such as... Figure 16 The diagram shown is a schematic representation of an electronic device structure provided in an embodiment of this application, including: a processor 1601 and a memory 1602, and optionally, a bus. The memory 1602 stores machine-readable instructions executable by the processor 1601 (e.g., ...). Figure 15 The device includes the acquisition module 1501, generation module 1502, determination module 1503, and display module 1504 (and the corresponding execution instructions, etc.). When the electronic device is running, the processor 1601 and the memory 1602 communicate via a bus. When the machine-readable instructions are executed by the processor 1601, the above-mentioned rainwater runoff processing method is performed.
[0185] This application embodiment also provides a computer-readable storage medium storing a computer program, which is executed by processor 1601 to perform the steps of the above-described rainwater runoff treatment method.
[0186] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.
[0187] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0188] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for treating rainwater runoff, characterized in that, include: Obtain the original elevation data of the target area, and establish a digital elevation model based on the original elevation data. The original elevation data includes at least: information on multiple contour lines and engineering structures. Multiple grid surfaces of the digital elevation model are generated based on the contour lines; The path of rainwater runoff movement in the digital elevation model is determined based on the multiple grid surfaces; The path of rainwater runoff movement and the information of the engineering structure in the digital elevation model are superimposed onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area. Determining the path of rainwater runoff movement in the digital elevation model based on the multiple grid surfaces includes: Multiple raindrops are randomly generated on each of the aforementioned grid surfaces; Based on the target position of each raindrop after it has moved a preset distance in the vertical direction and the position of each grid surface, the target grid surface corresponding to each raindrop is determined; Based on the lowest point of the target grid surface corresponding to each raindrop, the path of rainwater runoff movement in the digital elevation model is obtained; The step of determining the target grid surface corresponding to each raindrop based on the target position of each raindrop after moving a preset distance in the vertical direction and the position of each grid surface includes: Based on the target location and the positions of each grid surface, determine the distance between each grid surface and the target location; The grid surface closest to the target location is taken as the target grid surface corresponding to the raindrop. The step of obtaining the path of rainwater runoff movement in the digital elevation model based on the lowest point of the target grid surface corresponding to each raindrop includes: According to the height order of each target grid point, the lowest point of each target grid point is connected in sequence to obtain the path of rainwater runoff movement in the digital elevation model; The path of rainwater runoff movement and the information of the engineering structures in the digital elevation model are superimposed onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area, including: Based on hydrological characteristics, regional characteristics, and map characteristics, the digital elevation model is divided into multiple sub-models, each of which corresponds to a sub-basin in the target area. Based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, the boundaries of each sub-model are adjusted to obtain the adjusted digital elevation model. The path of rainwater runoff in the digital elevation model and the information of the engineering structure are superimposed onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
2. The rainwater runoff treatment method according to claim 1, characterized in that, The process of generating multiple grid surfaces of the digital elevation model based on the contour lines includes: Each contour line is divided into equal intervals to obtain multiple elevation points corresponding to the contour lines; Multiple grid surfaces of the digital elevation model are generated based on the multiple elevation points corresponding to each contour line.
3. The rainwater runoff treatment method according to claim 1, characterized in that, The step of adjusting the boundaries of each sub-model based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model to obtain an adjusted digital elevation model includes: The boundaries of each sub-model are adjusted according to the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model, resulting in the adjusted sub-model. The adjusted digital elevation model is obtained based on the adjusted sub-model.
4. A rainwater runoff treatment device, characterized in that, include: The acquisition module is used to acquire the original elevation data of the target area and establish a digital elevation model based on the original elevation data. The original elevation data includes at least: multiple contour lines and information on engineering structures. A generation module is used to generate multiple grid surfaces of the digital elevation model based on the contour lines; The determination module is used to determine the path of rainwater runoff movement in the digital elevation model based on the multiple grid surfaces; The display module is used to overlay the path of rainwater runoff movement and the information of the engineering structure in the digital elevation model onto the digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area. The determining module is specifically used to randomly generate multiple raindrops on each of the grid surfaces; determine the target grid surface corresponding to each raindrop based on the target position of each raindrop after moving a preset distance in the vertical direction and the position of each grid surface; and obtain the path of rainwater runoff movement in the digital elevation model based on the lowest point of the target grid surface corresponding to each raindrop. The determining module is specifically used to determine the distance between each grid surface and the target position based on the target position and the position of each grid surface; and to take the grid surface closest to the target position as the target grid surface corresponding to the raindrop. The determining module is specifically used to connect the lowest points of each target grid point in sequence according to the height order of each target grid point to obtain the path of rainwater runoff movement in the digital elevation model; The display module is specifically used to divide the digital elevation model into multiple sub-models based on hydrological features, regional features, and map features, with each sub-model corresponding to a sub-basin in the target area; adjust the boundaries of each sub-model based on the matching degree between the boundaries of each sub-model and the path of rainwater runoff movement in the digital elevation model to obtain an adjusted digital elevation model; and overlay the path of rainwater runoff movement in the digital elevation model and the information of the engineering structures onto the adjusted digital elevation model to obtain and display a three-dimensional spatial model of rainwater runoff in the target area.
5. An electronic device, characterized in that, include: The device includes a processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when the electronic device is in operation, are executed by the processor to perform the steps of the stormwater runoff treatment method as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the stormwater runoff treatment method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Land water dynamic simulation model of multi-elevation scale water flow network
CN113987969A
Surface runoff simulation system and method
CN115983146A