CN115909061A - Automatic extraction method and system for multi-river water outlets in large-scale area - Google Patents

Automatic extraction method and system for multi-river water outlets in large-scale area Download PDF

Info

Publication number
CN115909061A
CN115909061A CN202211426113.9A CN202211426113A CN115909061A CN 115909061 A CN115909061 A CN 115909061A CN 202211426113 A CN202211426113 A CN 202211426113A CN 115909061 A CN115909061 A CN 115909061A
Authority
CN
China
Prior art keywords
matrix
data
text data
water
river
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211426113.9A
Other languages
Chinese (zh)
Inventor
张鑫
李晨昊
严登华
秦天玲
刘姗姗
冯贱明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Institute of Water Resources and Hydropower Research
Original Assignee
China Institute of Water Resources and Hydropower Research
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Institute of Water Resources and Hydropower Research filed Critical China Institute of Water Resources and Hydropower Research
Priority to CN202211426113.9A priority Critical patent/CN115909061A/en
Publication of CN115909061A publication Critical patent/CN115909061A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

The invention provides an automatic extraction method and system for multi-river water outlets in a large-scale area, and belongs to the technical field of hydrology and water resource science. The method comprises the following steps: taking the boundary vector file of the research area as a cutting graph or a mask form to obtain text data of the land utilization water body in the research area; obtaining text data of water flow direction and confluence cumulant; and obtaining text data of the watershed multi-river water outlet according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area. The method fully considers the mature land utilization data interpreted by remote sensing at the present stage, and the drainage basin outlet is closer to the position of a real river outlet in the space where the drainage basin outlet is located; the watershed water outlet generation under the condition of various confluence cumulants is considered, and the water outlet change requirement possibly existing in the hydrological model is better met; the method obviously reduces the error rate of the artificial judgment of the water outlet and obviously improves the position accuracy and efficiency of the multi-river water outlet.

Description

Automatic extraction method and system for multi-river water outlets in large-scale area
Technical Field
The invention belongs to the technical field of hydrology and water resource science, and particularly relates to an automatic extraction method and system for a large-scale regional multi-river water outlet.
Background
With the improvement and progress of computer languages and the rapid improvement of operation rate, elements such as river network, land utilization, elevation and the like in a three-dimensional space of real life can be represented by numbers or operations such as arrangement, combination, transformation and the like among the numbers, so that accurate cognition of changes of things in the space is facilitated. The land river network is an important occurrence space for bearing atmospheric precipitation, and is a key element link for connecting water circulation between sea and land, two identical rivers do not exist between each land, the shapes of the river networks are different, the lengths of the river networks are different, and the positions of the rivers entering the sea are too many and complicated. The hydrologist gradually realizes the refined simulation prediction of various more concerned elements such as regional surface (underground) water quantity, rainfall, evaporation and the like by means of methods such as hydrological models and the like through the refined digital conversion of river networks, sea entrances and other related elements.
In the hydrological model, a large-scale area multi-river outflow water port plays an important role in judging whether a plurality of groups of river network water flows in the whole area intersect or not, whether the water flows out or not and the like. Due to the fact that large-scale regional multi-river water outlets are large in range, complex in regional flow regions, multiple in water outlets and the like, time-consuming, labor-consuming and repetitive work such as range consideration or manual judgment needs to be carried out through an ArcGIS platform during hydrological model preprocessing. Due to the fact that the manual operation error rate is relatively high, subsequent work rework is sometimes caused, and therefore the method for automatically extracting the multi-river outflow water gap in the large-scale area is invented.
Disclosure of Invention
Aiming at the defects in the prior art, the automatic extraction method and system for the multi-river water outlets in the large-scale area provided by the invention solve the problems that the manual operation error rate is relatively high, time and labor are wasted, and repeated work is needed under the condition that the multi-river water outlets in the large-scale area are distributed differently.
In order to achieve the purpose, the invention adopts the technical scheme that:
in a first aspect, the invention provides an automatic extraction method for a multi-river outflow water gap in a large-scale area, which comprises the following steps:
s1, taking a boundary vector file of a research area as a cutting graph or a mask form to obtain text data of a land utilization water body in the research area;
s2, obtaining text data of the water flow direction and the confluence cumulant according to the text data of the land utilization water body in the research area;
and S3, obtaining text data of the watershed multi-river water outlets according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlets.
The beneficial effects of the invention are: the method fully considers the mature land utilization data interpreted by remote sensing at the present stage, and the drainage basin outlet is closer to the position of a real river outlet in the space; the watershed water outlet generation under the condition of various confluence cumulants is considered, and the water outlet change requirement possibly existing in the hydrological model is better met; the river water outlet of the river in the river basin in the large-scale area is possibly complex, the manual judgment error rate is relatively high, time and labor are wasted, and the repetitive work is increased.
Further, the step S1 includes the steps of:
s101, taking the boundary vector file of the research area as a cutting pattern or a mask form, and performing data extraction on the land use grid file to obtain a land use grid file of the research area;
and S102, extracting the grid data of the water body type through judging the numerical values in the grids one by one according to the land utilization grid files of the research area to obtain text data of the land utilization water body in the research area.
The beneficial effects of the above further scheme are: land utilization data are cut through the preliminary research area vector boundary file, and then conventional hydrological analysis is carried out on the cut land utilization data as a basic range, so that the consistency of the data range is favorably maintained, the mature land utilization data are fully utilized, and the detailed determination of the position of a watershed water outlet in the follow-up work is favorably realized.
Still further, the step S2 includes the steps of:
s201, extracting digital elevation grid text data according to the text data of the land utilization water body in the research area;
s202, performing supplementary leveling processing on the digital elevation grids according to the digital elevation grid text data to obtain digital elevation grid text data without depressions;
s203, preprocessing the digital elevation grid text data of the non-hollow land to obtain text data of water flow direction and convergence accumulation number, wherein the text data row and column attributes of the land utilization water body, the water flow direction and the convergence accumulation number are all kept consistent.
The beneficial effects of the above further scheme are: the real position of the river channel is preferentially checked by fully utilizing land utilization data interpreted by remote sensing, and the phenomenon that the river channels of different watersheds in a large-scale area are doped with each other to influence the judgment of the water outlet position of the conventional hydrological analysis is avoided.
Still further, the step S3 includes the steps of:
s301, traversing the text data of the land use water body, the water flow direction and the confluence cumulant to obtain a corresponding first matrix, a second matrix and a third matrix;
s302, according to the water flow directions reflected by the data values in the second matrix one by one, taking the data values pointed by the water flow directions as the data values of the data, and obtaining a fourth matrix;
s303, respectively judging whether the first matrix, the third matrix and the fourth matrix meet preset conditions, if so, performing sequence coding, and entering the step S304, otherwise, determining that the data is null, and ending the process;
s304, forming a fifth matrix according to the sequence codes, and obtaining m exit points and exit point positions in the research area according to the fifth matrix to finish automatic extraction of the large-scale area multi-river water outlets.
Still further, in step S303, it is respectively determined whether the first matrix, the third matrix, and the fourth matrix satisfy preset conditions, which specifically includes:
judging whether the data corresponding to the first matrix has a numerical value:
Figure BDA0003944640270000041
judging whether the data corresponding to the third matrix meet a threshold value:
Figure BDA0003944640270000042
or->
Figure BDA0003944640270000043
Judging whether the data corresponding to the fifth matrix has a null value:
Figure BDA0003944640270000044
wherein the content of the first and second substances,
Figure BDA0003944640270000045
represents data corresponding to the first matrix, NODATA represents a null value, or a value greater than or equal to zero>
Figure BDA0003944640270000046
Representing data corresponding to the third matrix, n 1 、n 2 All indicate a particular value>
Figure BDA0003944640270000047
Representing the data corresponding to the fifth matrix.
The beneficial effects of the further scheme are as follows: the water body data interpreted by land utilization remote sensing is used as reference, the determined land utilization range is used as a research area, and the data situation is closer to the actual situation; the water body data entry point relates to a surface concept, but more exit points in the conventional hydrological analysis are a point concept, the design is carried out by skillfully utilizing the water flow direction and the convergence accumulation number threshold condition, and the automatic identification work of the river water outlet closer to the actual condition in a large-scale area can be automatically identified or quickly realized according to a certain threshold condition.
In a second aspect, the present invention provides an automatic extraction system for a large-scale area multi-river discharge outlet, comprising:
the first acquisition module is used for acquiring text data of the land utilization water body in the research area by taking the boundary vector file of the research area as a cutting graph or a mask form;
the second acquisition module is used for acquiring text data of water flow direction and convergence cumulant according to the text data of the land utilization water body in the research area;
and the third acquisition module is used for acquiring text data of the watershed multi-river water outlets according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlets.
The beneficial effects of the invention are: the method fully considers the mature land utilization data interpreted by remote sensing at the present stage, and the drainage basin outlet is closer to the position of a real river outlet in the space; the watershed water outlet generation under the condition of various confluence cumulants is considered, and the water outlet change requirement possibly existing in the hydrological model is better met; the river water outlet of the river in the large-scale area is possibly complex, the manual judgment error rate is relatively high, time and labor are wasted, and the repeated work is increased.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the automatic extraction method for multiple river outlets in a large-scale area.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed, the steps of the automatic extraction method for multiple river outlets in a large scale area are realized.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a schematic view of a south korean peninsula area including the great river and the atlantic river basin used in the embodiment of the present invention.
Fig. 3 is a schematic diagram of land use data in a research area used in an embodiment of the present invention.
FIG. 4 is a schematic representation of water volume data in a study area used in an embodiment of the present invention.
FIG. 5 is a diagram illustrating a portion of a text file of a water body in a research area according to an embodiment of the present invention.
FIG. 6 is a graphical illustration of digital elevation data for an area of interest, in accordance with an embodiment of the present invention.
FIG. 7 is a graphical illustration of digital elevation data for a study area without depressions, as utilized in an embodiment of the present invention.
FIG. 8 is a schematic view of water flow direction data for 8 water flow directions in a study area as used in an embodiment of the present invention.
FIG. 9 is a graphical representation of cumulative data of the confluence in the study area, as used in an embodiment of the present invention.
FIG. 10 is a diagram illustrating the cumulative number of confluent flows in a study area greater than 10000, according to an embodiment of the present invention.
Fig. 11 is a data schematic of a plurality of river discharge outlets in a research area used in an embodiment of the present invention.
FIG. 12 is a schematic diagram of the system of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
Example 1
As shown in fig. 1, the invention provides an automatic extraction method for a large-scale area multi-river outflow water gap, which is implemented as follows:
s1, obtaining text data of the land utilization water body in the research area by taking the boundary vector file of the research area as a cutting graph or a mask form, wherein the implementation method comprises the following steps:
s101, taking the boundary vector file of the research area as a cutting pattern or a mask form, and performing data extraction on the land use grid file to obtain a land use grid file of the research area;
s102, extracting the grid data of the water body types through judging the numerical values in the grids one by one according to the research area land utilization grid files to obtain text data of the land utilization water bodies in the research area.
In the embodiment, the shp is a cutting graph or a mask form, and the data points in the two-dimensional array of the grid-by-grid land utilization are determined in the range by cutting or extracting according to the mask and other methods, so that a land utilization grid file, tif of the research area is obtained; and further extracting the grid data of the water type by judging the specific meaning of the numerical values in the grids one by one (for example, 60 numerical values in GlobeLand30 represent water data points), so as to obtain a water data grid file in the research area, tif, and storing a water data matrix in the research area in the form of a text file (file 1).
In the embodiment, the shp is a cutting graph or a mask form, and the data points in the two-dimensional array of the grid-by-grid land utilization are determined in the range by cutting or extracting according to the mask and other methods, so that a land utilization grid file, tif of the research area is obtained; and further extracting the grid data of the water type by judging the specific meaning of the numerical values in the grids one by one (for example, 60 numerical values in GlobeLand30 represent water data points), so as to obtain a water data grid file in the research area, tif, and storing a water data matrix in the research area in the form of a text file (file 1). Further, the data extraction is carried out on the digital elevation grid file tif by methods such as cutting or extracting according to a mask, and the like, so that the unified and regular outlet boundary of the area is ensured; on the basis of an Arcgis platform, supplementary leveling is carried out on abnormally low-value or high-value grids in a digital elevation grid through conventional hydrological analysis, preprocessing work such as water flow direction, confluence accumulation number and the like is gradually completed, water flow direction files (flow direction grid files and tif) of 8 water flow directions of grids one by one and accumulated frequency files (confluence accumulation number grid files and tif) of water flow flowing through grids one by one from a watershed are finally obtained, data matrixes in the flow direction grid files and the confluence accumulation number grid files and tif are stored in a text file mode (files 2 and 3), and the row number and column number of text file data are kept consistent through various modes such as interpolation or resampling.
S2, obtaining text data of the water flow direction and the confluence cumulant according to the text data of the land utilization water body in the research area, wherein the implementation method comprises the following steps:
s201, extracting digital elevation grid text data according to the text data of the land utilization water body in the research area;
s202, performing supplementary leveling processing on the digital elevation grids according to the digital elevation grid text data to obtain digital elevation grid text data without depressions;
s203, preprocessing the digital elevation grid text data of the non-hollow land to obtain text data of water flow direction and confluence accumulation number, wherein the text data row and column number attributes of the land utilization water body, the water flow direction and the confluence accumulation number are all kept consistent.
In the embodiment, the data extraction is carried out on the digital elevation grid file tif by cutting or extracting according to a mask and other methods, so that the unified and regular outlet boundary of the area is ensured; on the basis of an Arcgis platform, supplementary leveling is carried out on abnormally low-value or high-value grids in a digital elevation grid through conventional hydrological analysis, preprocessing work such as water flow direction, confluence accumulation number and the like is gradually completed, water flow direction files (flow direction grid files and tif) of 8 water flow directions of grids one by one and accumulated frequency files (confluence accumulation number grid files and tif) of water flow flowing through grids one by one from a watershed are finally obtained, data matrixes in the flow direction grid files and the confluence accumulation number grid files and tif are stored in a text file mode (files 2 and 3), and the row number and column number of text file data are kept consistent through various modes such as interpolation or resampling.
S3, obtaining text data of the watershed multi-river water outlet according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlet, wherein the implementation method comprises the following steps:
s301, traversing the text data of the land utilization water body, the water flow direction and the confluence cumulant to obtain a corresponding first matrix, a second matrix and a third matrix;
s302, according to the water flow directions reflected by the data values in the second matrix one by one, taking the data values pointed by the water flow directions as the data values of the data in the second matrix to obtain a fourth matrix;
s303, respectively judging whether the first matrix, the third matrix and the fourth matrix meet preset conditions, if so, performing sequence coding, and entering the step S304, otherwise, determining that the data is null, and ending the process; wherein, judge respectively whether first matrix, third matrix and fourth matrix satisfy predetermined condition, it specifically is:
judging whether the data corresponding to the first matrix has a numerical value:
Figure BDA0003944640270000081
judging whether the data corresponding to the third matrix meet a threshold value:
Figure BDA0003944640270000082
or->
Figure BDA0003944640270000083
Judging whether the data corresponding to the fifth matrix has a null value:
Figure BDA0003944640270000084
wherein, the first and the second end of the pipe are connected with each other,
Figure BDA0003944640270000085
represents the data corresponding to the first matrix, NODATA represents a null value, and/or a value>
Figure BDA0003944640270000086
Representing data corresponding to the third matrix, n 1 、n 2 All indicate a particular value>
Figure BDA0003944640270000087
Data corresponding to the fifth matrix
S304, forming a fifth matrix according to the sequence codes, and obtaining m exit points and exit point positions in the research area according to the fifth matrix to finish automatic extraction of the multi-river water outlets in the large-scale area.
In this embodiment, based on the text files obtained in S1 and S2, the river basin multi-river outlet file tif meeting the specific threshold value is obtained by reading, converting, and judging depending on the computer programming language.
Specifically, based on the obtained text files 1 to 3, traversing the whole text matrix, and respectively storing the text matrix in the matrix 1, the matrix 2 and the matrix 3, wherein data in each matrix may have a numerical value or may be a null value (NODATA); secondly, according to the water flow direction reflected by 8 numerical values of the data one by one in the matrix 2, the pointed data numerical value is taken as the numerical value of the data of the matrix; the data of the null value is not transformed, and a new matrix 4 is finally formed; then, judging by depending on a corresponding computer programming language:
(1) Matrix 1 (A) 1 ) There are values at the corresponding data:
Figure BDA0003944640270000091
(2) Matrix 3 (A) 3 ) The corresponding data satisfies a certain threshold case (where = may be omitted):
Figure BDA0003944640270000092
or
Figure BDA0003944640270000093
(3) Matrix 4 (A) 4 ) Number of correspondencesPresence Null (NODATA) according to:
Figure BDA0003944640270000094
the data meeting the three conditions are sequentially coded (1, 2 and3 \8230m), and the rest data are null values (NODATA), so that a new matrix 5 is formed; finally, the matrix 5 formed by the above sequence codes can know that m exit points and exit point positions (number of rows and columns) exist in the research area, and further, river outlet files of the drainage basin meeting specific threshold values can be obtained.
The present invention will be further described below by taking the area of the peninsula south korea including the canary river and the atlantic river basin as an example.
Taking the south korean peninsula area as an example, which includes the canary river and the map river basin, the boundary of the research area is processed in advance to keep the integrity of the area in the area, as shown in fig. 2; the used digital elevation data is downloaded from SRTM (launch vehicle permission) data provided by the general office of the art designer space; the land use data is downloaded from global 30 m surface coverage data GlobeLand30, time frame selected 2010.
Taking the vector boundary (figure 2) of the research area as a cutting graph or a mask form, and performing data extraction on land utilization data of the GlobeLand30 by a cutting or mask extraction method to obtain the land utilization data in the research area, wherein the land utilization data is shown in figure 3; and further judging the grid data of the water body type to obtain a water body data grid file in the research area, tif (shown in fig. 4), and further converting the grid file into a text file (shown in fig. 5 as a water body text file). Based on land use data (fig. 3) in the research area, extracting SRTM digital elevation data by cutting or by a mask extraction tool to make the digital elevation boundary consistent with the land use water boundary, obtaining digital elevation grid data based on the land use condition, as shown in fig. 6; further performing supplementary leveling on the abnormally low or high grids in the digital elevation model by a hole filling calculation method to obtain digital elevation grid data without holes, as shown in fig. 7; then, water flow direction data (as shown in fig. 8) of 8 water flow directions of grids one by one are obtained through a flow direction calculation method, and the file types of the data are stored as text files; finally, based on the water flow direction grid data of the 8 water flow directions, obtaining the cumulative times (confluence cumulative number grid data, as shown in fig. 9) of water flow passing through grids one by one from the watershed through a confluence cumulative number calculation method, and converting the file type of the water flow into a text file;
based on the text file, the Fortran programming language can traverse the whole text matrix and respectively store the text matrix in a matrix 1, a matrix 2 and a matrix 3, and data in each matrix may have a numerical value or a null value (NODATA = -9999); secondly, according to the water flow direction reflected by the data values of the matrix 2 one by one, the pointed data value is taken as the value of the data of the matrix 2 to form a new matrix 4; then, judging by depending on a corresponding computer programming language: (1) When matrix 1 does not equal a null value at the corresponding data (NODATA = -9999); (2) The data corresponding to the matrix 3 meets a certain threshold condition (in this example, the condition that the numerical value of the matrix 3 is greater than 10000 is assumed as a river, and the convergence cumulative number grid data is shown in fig. 10); (3) The matrix 4 has a null value (NODATA = -9999) corresponding to the data, the data is sequentially encoded (1, 2, 3 = -8230), and the rest of the data are null values (NODATA = -9999), so that the watershed multi-river outlet water gap data meeting a specific threshold value is obtained (shown by means of an ArcGIS platform diagram, and particularly shown in fig. 11).
The method is based on a research area boundary vector file, shp, a land utilization grid file, tif and a digital elevation grid file, tif, text data of land utilization water bodies, water flow directions and confluence cumulant in the research area are obtained through methods such as cutting, hole filling calculation, flow direction calculation, confluence cumulant calculation and the like, and row and column number attributes contained in the text files are kept consistent through methods such as interpolation or resampling; further depending on the text file and other computer programming languages such as Fortran, python and the like, the pointed data value is taken as the value of the data of the user according to the water flow direction reflected by the data values one by one, and the data of the null value is not transformed, so that a pointing matrix is formed; judging through the conditions: when the numerical value and the corresponding data of the convergence cumulant matrix at the position of the corresponding data of the water matrix meet certain threshold conditions (It can be assumed that the bus accumulation number matrix value is greater than n 1 Less than n 2 And so on) and the null value (NODATA) exists at the data corresponding to the direction matrix obtained according to the water flow direction, all the data satisfying the three groups of conditions are sequentially encoded (1, 2, 3 \8230m), and the rest data are null values (NODATA), so that a watershed multiple river outlet water mouth file satisfying a specific threshold value can be obtained (m outlet points and outlet point positions can be known in the research area). The method fully considers the mature land utilization data interpreted by remote sensing at the present stage, and the drainage basin outlet is closer to the position of a real river outlet in the space; the watershed water outlet generation under the condition of various confluence accumulation numbers is considered, and the water outlet change requirement possibly existing in the hydrological model is better met; the river water outlet of the river in the river basin in the large-scale area is possibly complex, the manual judgment error rate is relatively high, time and labor are wasted, and the repetitive work is increased.
Example 2
As shown in fig. 12, the present invention provides an automatic extraction system for a large-scale area multi-river outflow water gap, comprising:
the first acquisition module is used for acquiring text data of the land utilization water body in the research area by taking the boundary vector file of the research area as a cutting graph or a mask form;
the second acquisition module is used for acquiring text data of water flow direction and convergence cumulant according to the text data of the land utilization water body in the research area;
and the third acquisition module is used for acquiring text data of the watershed multi-river water outlets according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlets.
The automatic extraction system for multiple river outlets in a large-scale area provided in the embodiment shown in fig. 12 can implement the technical solutions shown in the automatic extraction method for multiple river outlets in a large-scale area in the embodiment of the method, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In the embodiment of the invention, the functional units can be divided according to the automatic extraction method of the multi-river water outlets in the large-scale area, for example, each function can be divided into each functional unit, and two or more functions can be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software functional unit. It should be noted that the division of the cells in the present invention is schematic, and is only a logical division, and there may be another division manner in actual implementation.
In the embodiment of the invention, the automatic extraction system for the multi-river water outlet in the large-scale area comprises a hardware structure and/or a software module corresponding to each function in order to realize the principle and the beneficial effect of the automatic extraction method for the multi-river water outlet in the large-scale area. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware and/or combinations of hardware and computer software, where a function is performed in a hardware or computer software-driven manner, and that the function described may be implemented in any suitable manner for each particular application depending upon the particular application and design constraints imposed on the technology, but such implementation is not to be considered as beyond the scope of the present application.
Example 3
The invention provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and run on the processor, wherein the processor executes the program to realize the steps of the automatic extraction method for the large-scale area multi-river water outlet in embodiment 1.
In this embodiment, the electronic device may include: the device comprises a processor, a memory, a bus and a communication interface, wherein the processor, the communication interface and the memory are connected through the bus, a computer program capable of running on the processor is stored in the memory, and when the processor runs the computer program, part or all of the steps of automatic extraction of the multiple river outlet in the large-scale area are executed, wherein the steps are provided by the embodiment 1.
Example 4
The invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed, the steps of the automatic extraction method for a large-scale area multi-river water outlet according to any one of embodiment 1 are implemented.
The computer-readable storage medium may be implemented by any type or combination of volatile and non-volatile memory devices such as Static Random Access Memory (SRAM), 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 or optical disks, and may be any available medium that can be accessed by a general purpose or special purpose computer. A readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium, which may also be an integral part of the processor, the processor and readable storage medium may reside in an Application Specific Integrated Circuit (ASIC), and the processor and readable storage medium may also reside as discrete components in a large scale area multiple river outlet automatic extraction system.
Embodiments of the present invention may be provided as a method, apparatus, or computer program product for use in connection with an embodiment of the invention, which may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. While the methods, apparatus (devices), and computer program products according to embodiments of the invention have been described with reference to flowchart illustrations and/or block diagrams, it is to be understood that each flowchart illustration and/or block diagram block or blocks, and combinations of flowchart illustrations and/or block diagrams, can be implemented by computer program instructions which are provided to a computer-readable memory of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart illustration of one or more flow diagrams and/or block diagrams block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be appreciated by those skilled in the art that the embodiments described herein are for the purpose of assisting the reader in understanding the principles of the invention, and it is to be understood that the scope of the invention is not limited to such specific statements and embodiments. Those skilled in the art, having the benefit of this disclosure, may effect numerous modifications thereto and changes may be made without departing from the scope of the invention in its broader aspects.

Claims (8)

1. An automatic extraction method for a multi-river outflow water gap in a large-scale area is characterized by comprising the following steps:
s1, taking a research area boundary vector file as a cutting graph or a mask form to obtain text data of a land utilization water body in a research area;
s2, obtaining text data of water flow direction and convergence cumulant according to the text data of the land utilization water body in the research area;
and S3, obtaining text data of the watershed multi-river water outlets according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlets.
2. The automatic extraction method for the multi-river outflow water mouth in the large-scale area according to claim 1, wherein the step S1 comprises the following steps:
s101, taking the boundary vector file of the research area as a cutting pattern or a mask form, and performing data extraction on the land use grid file to obtain a land use grid file of the research area;
and S102, extracting the grid data of the water body type through judging the numerical values in the grids one by one according to the land utilization grid files of the research area to obtain text data of the land utilization water body in the research area.
3. The automatic extraction method of a multi-river outflow water gap in a large-scale area according to claim 1, wherein the step S2 comprises the following steps:
s201, extracting digital elevation grid text data according to the text data of the land utilization water body in the research area;
s202, performing supplementary leveling processing on the digital elevation grids according to the digital elevation grid text data to obtain digital elevation grid text data without depressions;
s203, preprocessing the digital elevation grid text data of the non-hollow land to obtain text data of water flow direction and convergence accumulation number, wherein the text data row and column attributes of the land utilization water body, the water flow direction and the convergence accumulation number are all kept consistent.
4. The automatic extraction method of a multi-river outflow water gap in a large-scale area according to claim 1, wherein the step S3 comprises the following steps:
s301, traversing the text data of the land utilization water body, the water flow direction and the confluence cumulant to obtain a corresponding first matrix, a second matrix and a third matrix;
s302, according to the water flow directions reflected by the data values in the second matrix one by one, taking the data values pointed by the water flow directions as the data values of the data, and obtaining a fourth matrix;
s303, respectively judging whether the first matrix, the third matrix and the fourth matrix meet preset conditions, if so, performing sequence coding, and entering the step S304, otherwise, finishing the process if the data is null;
s304, forming a fifth matrix according to the sequence codes, and obtaining m exit points and exit point positions in the research area according to the fifth matrix to finish automatic extraction of the multi-river water outlets in the large-scale area.
5. The automatic extraction method for a multi-river outflow water gap in a large-scale area according to claim 4, wherein the step S303 is performed by respectively judging whether the first matrix, the third matrix and the fourth matrix meet preset conditions, and specifically comprises the following steps:
judging whether the data corresponding to the first matrix has a numerical value:
Figure FDA0003944640260000021
judging whether the data corresponding to the third matrix meet a threshold value:
Figure FDA0003944640260000022
or->
Figure FDA0003944640260000023
Judging whether the data corresponding to the fifth matrix has a null value:
Figure FDA0003944640260000024
wherein the content of the first and second substances,
Figure FDA0003944640260000025
represents the data corresponding to the first matrix, NODATA represents a null value, and/or a value>
Figure FDA0003944640260000026
Representing data corresponding to the third matrix, n 1 、n 2 All indicate a particular value>
Figure FDA0003944640260000027
Representing the data corresponding to the fifth matrix.
6. The utility model provides a large-scale regional many rivers go out water gap automatic extraction system which characterized in that includes:
the first acquisition module is used for acquiring text data of the land utilization water body in the research area by taking the boundary vector file of the research area as a cutting graph or a mask form;
the second acquisition module is used for acquiring text data of water flow direction and convergence cumulant according to the text data of the land utilization water body in the research area;
and the third acquisition module is used for acquiring text data of the watershed multi-river water outlets according to the text data of the land utilization water body, the water flow direction and the confluence cumulant in the research area, and completing automatic extraction of the large-scale area multi-river water outlets.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and run on the processor, wherein the processor executes the program to realize the steps of the automatic large-scale area multi-river water outlet extraction method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, wherein the computer program is executed to implement the steps of the automatic large-scale area multi-river water outlet extraction method according to any one of claims 1 to 5.
CN202211426113.9A 2022-11-15 2022-11-15 Automatic extraction method and system for multi-river water outlets in large-scale area Pending CN115909061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211426113.9A CN115909061A (en) 2022-11-15 2022-11-15 Automatic extraction method and system for multi-river water outlets in large-scale area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211426113.9A CN115909061A (en) 2022-11-15 2022-11-15 Automatic extraction method and system for multi-river water outlets in large-scale area

Publications (1)

Publication Number Publication Date
CN115909061A true CN115909061A (en) 2023-04-04

Family

ID=86496643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211426113.9A Pending CN115909061A (en) 2022-11-15 2022-11-15 Automatic extraction method and system for multi-river water outlets in large-scale area

Country Status (1)

Country Link
CN (1) CN115909061A (en)

Similar Documents

Publication Publication Date Title
CN110717251B (en) Distributed hydrological model sub-basin partitioning method considering multiple elements
CN107832931B (en) Modularized analysis method for waterlogging risk in plain water network region
Ai et al. A DEM generalization by minor valley branch detection and grid filling
US10147057B2 (en) Systems and methods for flood zone modeling
CN108038908B (en) Space object identification and modeling method and system based on artificial intelligence
CN114647881B (en) Urban waterlogging modeling method considering microscopic hydrologic process of building
Tianqi et al. Development and application of a new algorithm for automated pit removal for grid DEMs
CN114881381A (en) Urban ponding water level prediction method and system based on improved convolutional neural network
CN108062631B (en) Urban waterlogging risk assessment method and device and terminal
CN105894553A (en) Street spatial form layout method based on grid selection
CN115909061A (en) Automatic extraction method and system for multi-river water outlets in large-scale area
CN116186864B (en) Deep foundation pit model rapid modeling method and system based on BIM technology
CN116415318B (en) Modeling method for hydrologic connectivity of lake in inner flow area based on mathematical morphology
CN115795947A (en) River channel reverse tracing determination method based on digital elevation model
CN116151421A (en) Pumped storage power station address selection method, data processing terminal and readable storage medium
CN112967354B (en) Method for generating two-dimensional terrain based on limited fixed-section terrain and remote sensing image data
CN113379828B (en) Slope length extraction method fusing surface morphological characteristics
CN114648617A (en) Water system extraction method based on digital elevation model DEM
CN115239013A (en) Thrust river channel-oriented bank collapse grade prediction method and system
CN117541740B (en) River and lake region three-dimensional modeling method and system based on unmanned aerial vehicle data acquisition
CN116431964B (en) Run-length stripping method for generating complex river network water system skeleton line
CN114332390A (en) Watershed extraction method based on water outlet relocation
CN115861549A (en) Method and device for automatically replacing tree model in live-action three-dimensional data
CN109190216B (en) Automatic continent sea-entering river sequencing and encoding method based on DEM
CN115239894A (en) LS factor extraction method suitable for grid data of large-scale geographic coordinate system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination