Small watershed division method, device, equipment and medium

By hydrological analysis of the basic geographical data of small watersheds and determining the flow threshold and watershed data, the problem of inaccurate manual determination of flow thresholds in the existing technology is solved, and the accurate division and efficient management of small watersheds are achieved.

CN119026945APending Publication Date: 2024-11-26CHINA THREE GORGES CORPORATION

Patent Information

Application Number
CN202411098309.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the prior art, there are inaccurate and time-consuming and labor-intensive problems when manually determining the flow threshold when dividing small and medium-sized river basins, and there is a lack of technical discussion on the flow threshold, resulting in inefficient division of small river basins.

Method used

By obtaining the basic geographical data of the areas to be divided, hydrological analysis and processing are carried out, the flow threshold and grid water flow of the small watershed are determined, thereby determining the watershed data and realizing the automated division of the small watershed. The specific steps include filling the digital elevation raster model, calculating the distance weight drop, determining the flow direction and cumulative weight, and superimposing the water system vector map to determine the flow threshold and watershed data.

Benefits of technology

The process of determining flow thresholds is simplified, the accuracy and efficiency of small watershed divisions are improved, and a scientific basis for water resource management is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026945A_ABST
    Figure CN119026945A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a small watershed division method and device, equipment and a storage medium. The method comprises the following steps: acquiring basic geographic data of a to-be-divided region, wherein the basic geographic data is used for indicating a ground elevation condition and a water system condition of the to-be-divided region; hydrological analysis processing is carried out on the basic geographic data, and a flow threshold value of a small watershed and grid water flows of a plurality of grids corresponding to the to-be-divided area are determined; determining watershed data from the basic geographic data according to the flow threshold and the plurality of grid water flows; according to the watershed data, a small watershed division result of the to-be-divided area is determined, and the small watershed division result is used for indicating the position of a small watershed in the to-be-divided area. According to the method, the process of determining the flow threshold in small watershed division details is simplified, the small watershed is accurately divided, accurate division of the small watershed is realized, and an effective basis is provided for more accurate management and protection of water resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of watershed division, and in particular to a method, device, equipment and medium for dividing a small watershed. Background Art

[0002] The division of small watersheds is an important link in water resources management and land use. Through the reasonable division of small watersheds, we can better understand the distribution, flow and changes of regional water resources, thus providing a scientific basis for water resources management and protection.

[0003] At present, the existing technology usually divides the watershed based on the digital elevation model, uses the slope method to determine the water flow direction in the divided area, and then divides the watershed based on the water flow direction.

[0004] However, the existing related research has not discussed the technical aspects of flow thresholds in the details of small watershed division. The determination of flow thresholds relies more on the experience of the staff, who try to extract the river network by inputting different cumulative amounts multiple times and compare the extracted river network with the actual water system map to determine the flow threshold. In addition, the existing technology has the defects of inaccuracy, time-consuming and labor-intensive in the way of manually determining the flow threshold. Summary of the invention

[0005] The embodiments of the present application provide a small watershed division method, device, equipment and storage medium to solve the defects of inaccuracy, time-consuming and labor-intensive in the existing method of manually determining flow thresholds.

[0006] In a first aspect, an embodiment of the present application provides a method for dividing a small watershed, the method comprising:

[0007] Obtain basic geographic data of the area to be divided, which is used to indicate the ground elevation and water system of the area to be divided;

[0008] Perform hydrological analysis on basic geographic data to determine the flow threshold of small watersheds and grid water flow of multiple grids corresponding to the area to be divided;

[0009] Determine watershed data from basic geographic data based on flow thresholds and multiple raster water flows;

[0010] Based on the watershed data, the small watershed division results of the area to be divided are determined, and the small watershed division results are used to indicate the locations of small watersheds in the area to be divided.

[0011] In a possible implementation, the basic geographic data includes: a digital elevation grid model and a water system vector map, and hydrological analysis and processing are performed on the basic geographic data to determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided, including:

[0012] Perform depression-filling processing on the digital elevation raster model to obtain a depression-free digital elevation raster model;

[0013] Determine the distance weight drop between multiple central grids and corresponding adjacent grids in the depression-free digital elevation grid model;

[0014] For any central grid among the multiple central grids, the adjacent grid corresponding to the distance weight drop with the largest value among the multiple distance weight drops is taken as the outflow grid, and the direction from the central grid to the outflow grid is taken as the flow direction of the central grid;

[0015] For any one of the multiple grids, according to the flow direction corresponding to the grid, the cumulative weights of multiple downhill grids flowing out of the grid are determined to obtain the grid water flow of the grid;

[0016] Based on the grid water flows of multiple grids, a water system vector map is overlaid, and based on the overlaid water system vector map, a flow threshold is determined.

[0017] In a possible implementation, determining the flow threshold based on the water system vector map after overlay processing includes:

[0018] Determine the target river in the water system vector map after overlay processing, and use the grid corresponding to the source of the target river as the target grid. The target river is a river of a preset level.

[0019] The grid water flow of the target grid is used as the flow threshold.

[0020] In a possible implementation, watershed data is determined from basic geographic data according to a flow threshold and a plurality of grid water flows, including:

[0021] Determine at least one target grid from the plurality of grids where the grid water flow is greater than a flow threshold, and extract a river network based on a grid position of the at least one target grid;

[0022] Determining the flow direction of rivers within the river network based on the corresponding flow direction of at least one target grid, thereby determining the river links;

[0023] Based on the river link, the dump point location is determined, and based on the river flow direction and the location of the dump point, the watershed data is determined.

[0024] In a possible implementation manner, before performing depression-filling processing on the digital elevation raster model to obtain a depression-free digital elevation raster model, the method further includes:

[0025] The digital elevation raster model and water system vector map are preprocessed, including clipping and segmentation.

[0026] In a second aspect, an embodiment of the present application provides a small watershed division device, comprising:

[0027] An acquisition module is used to acquire basic geographic data of the area to be divided, where the basic geographic data is used to indicate the ground elevation and water system of the area to be divided;

[0028] A processing module is used to perform hydrological analysis on basic geographic data to determine the flow threshold of a small watershed and the grid water flow of multiple grids corresponding to the area to be divided;

[0029] The processing module is also used to determine watershed data from the basic geographic data based on a flow threshold and a plurality of grid water flows;

[0030] The division module is used to determine the small watershed division result of the area to be divided according to the watershed data, and the small watershed division result is used to indicate the location of the small watershed in the area to be divided.

[0031] In a possible implementation manner, the basic geographic data specifically includes a digital elevation model and a water system vector map, and the device further includes:

[0032] The depression-filling module is used to fill the depressions of the digital elevation grid model to obtain a depression-free digital elevation grid model;

[0033] A calculation module is used to determine the distance weight drop between a plurality of central grids and corresponding adjacent grids in the depression-free digital elevation grid model;

[0034] The calculation module is further used to use, for any one of the multiple central grids, an adjacent grid corresponding to a distance weight drop with the largest value among the multiple distance weight drops as an outflow grid, and use the direction from the central grid to the outflow grid as the flow direction of the central grid;

[0035] A determination module is used to determine, for any one of the multiple grids, the cumulative weights of multiple downhill grids flowing out of the grid according to the flow direction corresponding to the grid, to obtain the grid water flow of the grid;

[0036] The determination module is also used to overlay the water system vector map based on the grid water flow of multiple grids, and determine the flow threshold based on the water system vector map after the overlay processing.

[0037] In a possible implementation, the device further includes: a generating module;

[0038] Used to determine the location of the pouring point based on the river link, and determine the watershed data based on the river flow direction and the location of the pouring point. In a possible implementation, the preprocessing module is used to preprocess the digital elevation raster model and the water system vector map, and the preprocessing includes: clipping processing and segmentation processing.

[0039] In a third aspect, an embodiment of the present application provides a small watershed division device, including: a memory, a processor;

[0040] Memory stores computer-executable instructions;

[0041] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and various possible implementations of the first aspect.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and various possible implementation methods of the first aspect.

[0043] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and various possible implementation methods of the first aspect.

[0044] The small watershed division method, device, equipment and storage medium provided in the embodiments of the present application obtain basic geographic data of the area to be divided, perform hydrological analysis on the basic geographic data, determine the flow threshold for extracting the area to be divided, and achieve small watershed division, thereby simplifying the process of determining the flow threshold in the details of small watershed division, accurately dividing small watersheds, and providing an effective basis for more precise management and protection of water resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] Figure 1 A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 1 ;

[0047] Figure 2 A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 2 ;

[0048] Figure 3 A schematic diagram of the central grid flow direction provided in an embodiment of the present application;

[0049] Figure 4A schematic diagram of a square code provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 3 ;

[0051] Figure 6 A schematic diagram comparing the raster river network turn line output and the raster river network vector output provided in the embodiment of the present application, wherein Figure 6 a is the grid river network, Figure 6 b is the grid river network turning line output, Figure 6 c is the vectorization output of the raster river network;

[0052] Figure 7 A schematic diagram of the structure of the small watershed division device provided in this application;

[0053] Figure 8 A schematic diagram of the structure of the small watershed division device provided in this application.

[0054] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] "Multiple" means two or more, and other quantifiers are similar. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0057] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0058] The division of small watersheds is an important link in water resources management and land use. Through the reasonable division of small watersheds, we can better understand the distribution, flow and changes of regional water resources, thus providing a scientific basis for water resources management and protection.

[0059] At present, the existing technology usually divides the watershed based on the digital elevation model, uses the slope method to determine the water flow direction in the divided area, and then divides the watershed based on the water flow direction.

[0060] However, current related research has not yet involved a detailed discussion of technical aspects such as flow thresholds in small watershed delineation. The determination of flow thresholds usually relies on the experience of operators, who need to repeatedly try different confluence accumulations to extract river networks and compare the extraction results with the actual water system map to determine the flow threshold.

[0061] In response to the above problems, the present application provides a small watershed division method, which determines the flow threshold in the small watershed division details by performing hydrological analysis and overlaying processing on the digital elevation model and the water system vector map, thereby simplifying the steps of determining the flow threshold in the prior art and improving the efficiency of small watershed division.

[0062] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0063] Figure 1 A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 1 .like Figure 1 As shown, the method includes:

[0064] S101, obtaining basic geographic data of the area to be divided.

[0065] Among them, the area to be divided is the area where there is a need for small watershed division, and the basic geographic data is used to indicate the ground elevation and water system conditions of the area to be divided.

[0066] The small watershed division can be achieved by obtaining the ground elevation data and water system data of the area to be divided. The basic geographic data may include, for example, a digital elevation model and a vector map. The digital elevation model may represent the ground elevation, and the vector map may represent the water system. The above data may be obtained, for example, by crawling the network, or by obtaining the corresponding basic geographic data from a preset database.

[0067] S102: Perform hydrological analysis on the basic geographic data to determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided.

[0068] Among them, hydrological analysis and processing include operations such as flow direction calculation and flow calculation. The flow threshold is the basis for extracting rivers of corresponding levels in the area to be divided. The grid is the smallest unit that constitutes the grid map, and the grid water flow is the cumulative amount of confluence corresponding to a single grid.

[0069] Raster flow data is obtained by performing flow direction calculation and flow calculation on basic data. The raster flow data contains the raster water flow of each grid. After obtaining the raster flow data, it is combined with vector map data to determine the flow threshold for extracting rivers of corresponding levels in the area to be divided, so as to facilitate the subsequent division of small watersheds.

[0070] S103, determining watershed data from basic geographic data according to a flow threshold and a plurality of grid water flows.

[0071] The watershed data may be, for example, a watershed depicted by a digital elevation model, or a watershed depicted by other raster data with raster attributes, and the boundary between watersheds is a watershed boundary.

[0072] By comparing the flow threshold with multiple grid water flows, the area where the grid water flow is greater than the flow threshold is extracted as the river basin. Then, the intersection point of the river network is derived according to the flow, and the intersection point is used as the pouring point to obtain the watershed data.

[0073] S104. Determine the result of dividing the small watersheds in the area to be divided according to the watershed data.

[0074] The small watershed division result is used to indicate the location of the small watershed in the area to be divided.

[0075] Through the watershed data, the boundary line of the small watershed can be determined, thereby obtaining the small watershed division result and determining the location of the small watershed in the area to be divided.

[0076] The embodiment of the present application provides a method for dividing a small watershed, which obtains ground elevation data and water system data of the area to be divided, performs hydrological analysis on the ground elevation data of the area to be divided, and then combines the water system data of the area to be divided to determine the flow threshold for dividing the small watershed, thereby extracting the river network and obtaining watershed data, and obtaining the small watershed division result of the area to be divided. This method avoids the defects of the existing manual determination of flow thresholds, such as inaccuracy, time-consuming and labor-intensiveness, and realizes the accurate division of small watersheds, providing an effective basis for more accurate management and protection of water resources.

[0077] Figure 2A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 2 .like Figure 2 The basic geographic data in this embodiment include: digital elevation grid model and water system vector map. Figure 1 Based on the embodiment, a possible implementation method of performing hydrological analysis on basic geographic data to determine the flow threshold of a small watershed and the grid water flow of multiple grids corresponding to the area to be divided is described in detail, and the method includes:

[0078] S201, performing depression-filling processing on the digital elevation grid model to obtain a depression-free digital elevation grid model.

[0079] Among them, the depression filling process is to fill all the depressions in the digital elevation raster model.

[0080] There are real depressions and pseudo-depressions. Real depressions are real depressions, but there are very few real depressions. Therefore, filling them has little impact on subsequent analysis. Pseudo-depressions are caused by improper data processing. The existence of pseudo-depressions will affect the calculation of water flow direction, thereby affecting the accuracy of small watershed division results.

[0081] For example, when determining the direction of water flow, since the elevation of the depression is lower than the elevation of the surrounding grid, the water flow in a certain area will be directed to the depression, causing the water to gather in the depression and unable to flow out, thus causing the interruption of the water catchment network. Therefore, before conducting terrain analysis such as hydrological analysis that requires accurate elevation data, it is usually necessary to fill the depression.

[0082] By filling depressions, all depressions in the digital elevation raster model of the area to be divided are filled and leveled to obtain a digital elevation raster model without depressions.

[0083] In a possible implementation, before performing depression-filling processing on the digital elevation raster model, the digital elevation raster model and the water system vector map may be preprocessed.

[0084] Among them, preprocessing includes: cutting processing and splicing processing.

[0085] The clipping process is to extract the digital elevation raster model of the area to be divided from the global digital elevation model; the splicing process is to splice at least two digital elevation models into the digital elevation raster model of the area to be divided. The preprocessing of the area to be divided may include only one of the clipping process and the splicing process, or the two processing methods may be combined to obtain the digital elevation raster model of the area to be divided.

[0086] For example, if the area to be divided only spans area A, the digital elevation raster model of area A can be obtained and clipped according to the area to be divided to obtain the digital elevation raster model of the area to be divided for hydrological analysis.

[0087] If the area to be divided spans both area A and area B, it is necessary to obtain the digital elevation raster models of area A and area B, crop the digital elevation raster models of area A and area B according to the area to be divided, and then splice the cropped digital elevation raster models to obtain the digital elevation raster model of the area to be divided for hydrological analysis.

[0088] S202: Determine the distance weight drop between a plurality of central grids and corresponding adjacent grids in the depression-free digital elevation grid model.

[0089] The central grid is the grid for which the flow direction needs to be determined, and the distance weighted drop is determined by calculating the quotient of the elevation difference between the central grid and the adjacent grid and the distance between the two grids.

[0090] Based on the digital elevation grid model of the area to be divided, the distance weight difference between the central grid and the adjacent grids is calculated in the 3×3 grid network centered on the central grid.

[0091] S203 . For any one of the multiple central grids, use the adjacent grid corresponding to the largest distance weight drop among the multiple distance weight drops as the outflow grid, and use the direction from the central grid to the outflow grid as the flow direction of the central grid.

[0092] Among them, the adjacent grid corresponding to the distance weight drop with the largest value among multiple distance weight drops is the adjacent grid in the maximum drop direction, and the direction from the central grid to the outflow grid is the flow direction of the central grid.

[0093] By calculating and comparing the distance weighted drop, the maximum distance weighted drop is obtained, and then the maximum descent direction is obtained. According to the maximum descent direction, the flow direction of the central grid is obtained. After finding the direction of the central grid, the flow direction of the central grid is encoded.

[0094] For example, Figure 3 This is a schematic diagram of the central grid flow direction provided in the embodiment of the present application. Figure 3 As shown, the grid with an elevation value of 37 is taken as the central grid, and the eight grids adjacent to the central grid are adjacent grids, whose elevation values ​​are 38, 31, 22, 55, 44, 56, 49, and 46 respectively.

[0095] Figure 4 This is a schematic diagram of a square code provided in an embodiment of the present application. Figure 4As shown, the direction code may include, for example: 1, 2, 4, 8, 16, 32, 64, 128; wherein, the distance between the grid with the direction code of 1, 4, 16, 64 and the central grid is 1, and the distance between the grid with the direction code of 2, 8, 32, 128 and the central grid is √2. By calculating and comparing the distance weight difference between the central grid and each adjacent grid, it can be obtained that the distance weight difference of the adjacent grid with an elevation value of 22 is the largest, so this grid is selected as Figure 3 The outflow grid of the central grid takes the direction from the central grid to the outflow grid as the flow direction. Figure 4 From the direction code in , we can see that the direction code of the flow direction of the central grid is 4.

[0096] If all distance weighted drops are the same, the range of the adjacent grids is expanded until the maximum distance weighted drop is found.

[0097] S204 . For any one grid among the multiple grids, according to the flow direction corresponding to the grid, determine the cumulative weight of multiple downhill grids flowing into the grid, and obtain the grid water flow of the grid.

[0098] Among them, the grid water flow is the cumulative flow of the grid.

[0099] The grid flow rate of this grid is calculated by calculating the cumulative weight of all grids flowing into this grid. If no weight grid is provided, a weight of 1 is applied to each grid, and the grid flow rate of this grid is the total number of grids flowing into this grid.

[0100] For example, if no weight raster is provided, if a raster has three downslope rasters, the raster water flow of the three downslope rasters is 0, 1, and 3 respectively, and there are 0, 1, and 3 rasters flowing into these three downslope rasters on the surface respectively, therefore, the raster water flow of this raster is the sum of these three downslope rasters and all the rasters flowing into the three downslope rasters, and the raster water flow of this raster is 7.

[0101] S205: Based on the grid water flow of multiple grids, the water system vector map is overlaid.

[0102] Among them, flow grid data can be obtained based on the grid water flow of multiple grids.

[0103] The flow raster data and the water system vector map are overlaid to facilitate the subsequent acquisition of the flow threshold and realize the small watershed division.

[0104] S206. Determine a flow threshold based on the water system vector map after overlay processing.

[0105] Among them, the water system vector map and flow raster data that have been overlaid belong to two layers. The flow threshold can be determined by checking the raster water flow corresponding to each point on the water system vector map.

[0106] For example, the range of the flow threshold can be determined by looking at the grid water flow corresponding to the largest river mainstream and the grid water flow of the river tributaries, so as to further determine the flow threshold.

[0107] In a possible implementation, the specific implementation of determining the flow threshold based on the water system vector map after overlay processing is as follows:

[0108] The target river in the water system vector map after overlay processing is determined, and the grid corresponding to the source of the target river is used as the target grid, and the grid water flow of the target grid is used as the flow threshold.

[0109] The target river is a river of a preset level, and the river of the preset level is a river of the lowest level in the area to be divided.

[0110] After overlaying the flow raster data and the water system vector map, the source of the lowest-level river is determined through the complex water system data provided by the water system vector map. The grid corresponding to the source of the river is used as the target grid. The grid water flow of the target grid is the basis for extracting the river basin when dividing the area to be divided into small watersheds.

[0111] The method for determining the flow threshold provided in the embodiment of the present application determines the flow direction raster data and flow raster data of the area to be divided through hydrological analysis of the digital elevation model, overlays the flow raster data and the water system vector map, determines the source of the smallest level river through the complex water system data provided by the water system vector map, and uses the raster water flow at the source of the smallest level river as the flow threshold. The steps for determining the flow threshold are simplified, and the efficiency of small watershed division is improved.

[0112] Figure 5 A schematic diagram of a small watershed division method provided in an embodiment of the present application Figure 3 ,like Figure 3 In this embodiment, Figure 1 Example or Figure 2 Based on the embodiment, a possible implementation method for determining watershed data from basic geographic data according to a flow threshold and a plurality of grid water flows is described in detail, and the method includes:

[0113] S501. For any one of the multiple grids, determine whether the grid water flow of the grid is greater than a flow threshold; if so, execute step S502; if not, execute step S503.

[0114] By comparing the raster water flow with the flow threshold, the raster with a water flow greater than the flow threshold is identified, thereby extracting the river network.

[0115] If the grid water flow of the grid is greater than the flow threshold, it indicates that the water flow of the river corresponding to the grid is large, and the grid can be determined as the target grid; if the grid water flow of the grid is not greater than the flow threshold, it indicates that the water flow of the river corresponding to the grid is small, and the grid is determined not to be the target grid.

[0116] S502: Determine that the grid is a target grid.

[0117] S503: Determine that the grid is not the target grid.

[0118] S504: Extract a river network based on the grid position of at least one target grid.

[0119] The river network is a raster linear feature. In the case of no data (NoData), the target raster is assigned a value of 1 and other rasters are assigned NoData to extract the river network.

[0120] S505: Determine the flow direction of rivers in the river network according to the corresponding flow direction of at least one target grid, and then determine the river links.

[0121] Among them, river link is to connect grids into lines. According to the flow direction of the grid, the river flow direction is determined, and the grids in the river network are connected into lines according to the flow direction to form a river link.

[0122] In a possible implementation, after forming the river links, the raster river network may also be vectorized.

[0123] According to the flow direction grid, the intersecting grid and the adjacent grid are vectorized, thereby realizing the vectorization of the raster river network.

[0124] For example, Figure 6 This is a schematic diagram comparing the raster river network turn line output and the raster river network vector output provided in the embodiment of the present application. Figure 6 As shown, Figure 6 a is the grid river network, Figure 6 b is the grid river network turning line output, Figure 6 c is the vectorization output of the raster river network. Figure 6 As shown in a, the value of the river grid can be 1 or 2, for example. The flow direction of the river can be determined by the flow direction of the grid. Assume Figure 6 The grid in a flows to the adjacent grid. When the values ​​of the adjacent grids are the same, the river network grid is directly converted to a polyline output, which will cause the two polylines with a grid value of 2 to overlap, that is, the two rivers coincide. Figure 6As shown in b, the two broken lines overlap in the second half, which is equivalent to two rivers overlapping into one river, which is inconsistent with the actual situation. After the raster river network is vectorized, the broken lines formed by two adjacent rasters with the same value will be vectorized into two parallel lines, such as Figure 6 As shown in c, Figure 6 The second half of c shows that the two rivers are parallel at first, and then one river merges into the other. The error is reduced by vectorizing the raster river network.

[0125] S506. Determine the location of the dumping point based on the river link, and determine the watershed data based on the river flow direction and the location of the dumping point.

[0126] Among them, the dumping point is the outlet.

[0127] According to the river link, the end point of the river is extracted as the dumping point. According to the flow direction of the river and the location of the dumping point, the watershed data is extracted. The catchment area divided by the watershed is the small watershed partition.

[0128] The method for obtaining watershed data provided in the embodiment of the present application extracts the area where the flow grid is greater than the flow threshold in the area to be divided, extracts the river network, and then determines the location of river links and pouring points based on the river flow direction and the river network, thereby obtaining watershed data, achieving the purpose of small watershed division, and providing strong support for more precise management and protection of water resources.

[0129] Figure 7 A schematic diagram of the structure of a small watershed division device provided in this application, such as Figure 7 As shown, a small watershed division device 70 provided in this embodiment includes:

[0130] The acquisition module 701 is used to acquire basic geographic data of the area to be divided, where the basic geographic data is used to indicate the ground elevation and water system of the area to be divided;

[0131] Processing module 702, used to perform hydrological analysis on basic geographic data, determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided;

[0132] The processing module 702 is also used to determine watershed data from the basic geographic data based on the flow threshold and the plurality of grid water flows;

[0133] The division module 703 is used to determine the small watershed division result of the area to be divided according to the watershed data, and the small watershed division result is used to indicate the location of the small watershed in the area to be divided.

[0134] In a possible implementation manner, the basic geographic data specifically includes a digital elevation model and a water system vector map, and the device further includes:

[0135] The depression-filling module 704 is used to perform depression-filling processing on the digital elevation grid model to obtain a depression-free digital elevation grid model;

[0136] The calculation module 705 is used to determine the distance weight drop between multiple central grids and corresponding adjacent grids in the depression-free digital elevation grid model;

[0137] The calculation module 705 is further used to, for any one of the multiple central grids, use the adjacent grid corresponding to the distance weight drop with the largest value among the multiple distance weight drops as the outflow grid, and use the direction from the central grid to the outflow grid as the flow direction of the central grid;

[0138] A determination module 706 is used to determine, for any one of the multiple grids, the cumulative weights of multiple downhill grids flowing out of the grid according to the flow direction corresponding to the grid, to obtain the grid water flow of the grid;

[0139] The determination module 707 is further used to perform overlay processing on the water system vector map based on the grid water flow of multiple grids, and determine the flow threshold based on the overlayed water system vector map.

[0140] In a possible implementation, the device further includes: a generating module 708;

[0141] It is used to determine the location of pouring points based on river links, and to determine watershed data based on river flow direction and the location of pouring points.

[0142] In a possible implementation, the preprocessing module 709 is used to preprocess the digital elevation raster model and the water system vector map, and the preprocessing includes: clipping processing and segmentation processing.

[0143] The present embodiment provides a small watershed division device, which can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail in this embodiment.

[0144] Figure 8 This is a schematic diagram of the structure of a small watershed division device provided in this application. Figure 8 As shown, the electronic device 80 provided in this embodiment includes: at least one processor 801 and a memory 802. Optionally, the device 80 also includes a communication component 803. The processor 801, the memory 802 and the communication component 803 are connected via a bus 804.

[0145] In a specific implementation process, at least one processor 801 executes the computer-executable instructions stored in the memory 802, so that at least one processor 801 executes the above method.

[0146] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0147] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0148] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0149] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0150] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0151] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0152] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0153] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0154] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0156] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0157] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0158] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0159] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for dividing a small watershed, characterized in that: include: Acquire basic geographic data of the area to be divided, wherein the basic geographic data is used to indicate the ground elevation and water system of the area to be divided; Performing hydrological analysis on the basic geographic data to determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided; determining watershed data from the basic geographic data based on the flow threshold and a plurality of grid water flows; The small watershed division result of the area to be divided is determined according to the watershed data, and the small watershed division result is used to indicate the position of the small watershed in the area to be divided.

2. The method according to claim 1, characterized in that The basic geographic data includes: a digital elevation grid model and a water system vector map. The hydrological analysis and processing of the basic geographic data to determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided includes: Performing depression-filling processing on the digital elevation grid model to obtain a depression-free digital elevation grid model; Determine the distance weight drop between a plurality of central grids and corresponding adjacent grids in the depression-free digital elevation grid model; For any one of the plurality of central grids, taking the adjacent grid corresponding to the distance weight drop with the largest value among the plurality of distance weight drops as the outflow grid, and taking the direction from the central grid to the outflow grid as the flow direction of the central grid; For any one of the plurality of grids, according to the flow direction corresponding to the grid, the cumulative weights of a plurality of downhill grids flowing into the grid are determined to obtain the grid water flow of the grid; Based on the grid water flow of the plurality of grids, the water system vector map is overlaid, and based on the overlaid water system vector map, the flow threshold is determined.

3. The method according to claim 2, characterized in that The determining of the flow threshold based on the water system vector map after the overlay processing includes: Determine a target river in the water system vector map after the overlay processing, and use a grid corresponding to the source of the target river as a target grid, wherein the target river is a river of a preset level; The grid water flow rate of the target grid is used as the flow rate threshold.

4. The method according to claim 1, characterized in that: Determining watershed data from the basic geographic data according to the flow threshold and a plurality of grid water flows comprises: Determine at least one target grid whose grid water flow is greater than the flow threshold value from the plurality of grids, and extract a river network based on the grid position of the at least one target grid; Determining the flow direction of rivers in the river network according to the corresponding flow direction of the at least one target grid, and then determining the river links; The location of the pouring point is determined according to the river link, and the watershed data is determined according to the river flow direction and the location of the pouring point.

5. The method according to claim 2, characterized in that: Before performing depression-filling processing on the digital elevation grid model to obtain a depression-free digital elevation grid model, the method further comprises: The digital elevation grid model and the water system vector map are preprocessed, and the preprocessing includes: clipping processing and segmentation processing.

6. A small watershed division device, characterized in that: include: An acquisition module is used to acquire basic geographic data of the area to be divided, wherein the basic geographic data is used to indicate the ground elevation and water system of the area to be divided; A processing module, used for performing hydrological analysis on the basic geographic data to determine the flow threshold of the small watershed and the grid water flow of multiple grids corresponding to the area to be divided; The processing module is further used to determine watershed data from the basic geographic data according to the flow threshold and a plurality of grid water flows; The division module is used to determine the small watershed division result of the area to be divided according to the watershed data, and the small watershed division result is used to indicate the location of the small watershed in the area to be divided.

7. The device according to claim 6, characterized in that The processing module specifically includes: The depression-filling module is used to fill the depressions of the digital elevation grid model to obtain a depression-free digital elevation grid model; A calculation module, used for determining the distance weight drop between a plurality of central grids and corresponding adjacent grids in the depression-free digital elevation grid model; The calculation module is further configured to, for any one of the plurality of central grids, use an adjacent grid corresponding to a distance weight drop with the largest value among the plurality of distance weight drops as an outflow grid, and use a direction from the central grid to the outflow grid as a flow direction of the central grid; A determination module, for determining, for any one of the plurality of grids, the cumulative weights of a plurality of downhill grids flowing into the grid according to the flow direction corresponding to the grid, to obtain the grid water flow of the grid; The determination module is further used to overlay the water system vector map based on the grid water flow of the multiple grids, and determine the flow threshold based on the water system vector map after the overlay processing.

8. The device according to claim 6, characterized in that The processing module further includes: A generating module, for determining at least one target grid whose grid water flow is greater than the flow threshold value from a plurality of grids, and extracting a river network based on the grid position of the at least one target grid, thereby determining a river link; The generation module is also used to determine the location of the pouring point according to the river link, and determine the watershed data according to the river flow direction and the location of the pouring point.

9. A small watershed division device, characterized in that: The partitioning device includes: a memory and a processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the small watershed division method as described in any one of claims 1-5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the small watershed division method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Urban high-precision digital terrain generation and sub catchment area division method based on LiDAR

    CN117523130A

  • Method for automatically dividing small watershed based on DEM data and model builder

    CN118350227A

  • Adaptive region division method and system

    US20200225679A1

  • KR20230116440A

Cited By

  • Screening method, device and equipment for ecological cleaning small watershed construction and medium

    CN119398457A