Dynamic drawing method of river cascade profile map across the country

By dynamically drawing river ladder diagrams, the problem of data integration of dams and rivers is solved, the digital graph of data is realized, data collection and sorting is simplified, and more effective reservoir engineering safety management is supported.

CN114860720BActive Publication Date: 2024-11-19POWERCHINA HUADONG ENG CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210420528.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2024-11-19
Estimated Expiration
2042-04-21

AI Technical Summary

Technical Problem

With the increase in the number of dams, it has become complicated and difficult to comprehensively supervise the safety of reservoir projects in various river basins and coordinate emergency dispatch. It is difficult for existing technologies to effectively integrate and display dam and river data, resulting in large workloads and insufficient accuracy in data collection.

Method used

A dynamic drawing method of national river cascade flat profile diagram is adopted. By obtaining the basin ID, retrieving the database, obtaining the dam data based on the river ID, and drawing the river path and dam information on the GIS map, automatically filtering and sorting the dams Data, realize dynamic drawing of river ladder diagrams.

Benefits of technology

The integration and digitalization of dam and river data has been realized, the workload of manual data sorting and sorting has been reduced, the spatial relationship between dams and rivers across the country has been established, and more effective risk control and engineering safety management have been supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860720B_ABST
    Figure CN114860720B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for dynamically drawing a national river cascade profile map, which comprises the following steps: obtaining a river basin ID, calling a database corresponding to the river basin; obtaining data of all rivers on the river and from the river to the estuary and all dams downstream of the confluence point of the previous level river on all the rivers from the database based on the river ID, adding the river to a river queue, adding corresponding dam data to a dam queue, obtaining the center lines of all rivers under the river basin corresponding to the river basin ID from the database, and drawing a base map on a GIS map based on the center lines, drawing river paths and dams on the base map based on river information in the river queue and dam information in the dam queue; drawing a cascade map based on river information in the river queue, and drawing the dam and the normal water level line upstream of the dam on the cascade map based on the dam information in the dam queue. The present invention realizes the digitalization and graphics of river data, and solves the problems of large workload and insufficient accuracy of manual data collection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for dynamically drawing a national river cascade plan section diagram. Background Art

[0002] At present, there are 1,292 dams in my country, including 602 registered dams. With the increase in the number of dams, comprehensive supervision of the safety of reservoir and dam projects in various river basins and overall coordination of emergency dispatch will become increasingly complex and difficult. Summary of the invention

[0003] The technical problem to be solved by the present invention is: in view of the above-mentioned problems, a method for dynamically drawing a cascade plan profile of rivers across the country is provided.

[0004] The technical solution adopted by the present invention is: a method for dynamically drawing a cascade plan section of rivers across the country, characterized in that:

[0005] S1. Obtain the river basin ID and retrieve the corresponding database of the river basin;

[0006] S2. Based on the river ID, obtain the data of all dams on the river from the database, add the river to the river queue, and add the corresponding dam data to the dam queue;

[0007] S3. Based on the river ID, obtain from the database all the rivers from the river to the estuary and all the dam data downstream of the confluence point of the previous level river of all the rivers, add all the rivers to the river queue, and add the corresponding dam data to the dam queue;

[0008] S4, obtaining the center lines of all rivers in the basin corresponding to the basin ID from the database, and drawing a base map on the GIS map based on the center lines, and drawing river paths and dams on the base map based on the river information in the river queue and the dam information in the dam queue;

[0009] A step diagram is drawn based on the river information in the river queue, and a normal water level line of the dam and the upstream of the dam is drawn on the step diagram based on the dam information in the dam queue.

[0010] The river ID in step S2 is the river in the basin corresponding to the basin ID input by the user, or the river to which the dam belongs obtained from the database based on the dam ID input by the user.

[0011] The step S3 comprises:

[0012] S31, based on the river ID, obtain the river into which the river flows from the database, and obtain the dam data downstream of the confluence point of the river into which the river flows, add the confluence river into the river queue, and add the corresponding dam data into the dam queue;

[0013] S32, repeat step S31, and obtain the river into which it flows and the corresponding dam data by using the river ID of the river into which it flows, until the river flows into the sea.

[0014] The acquisition of all dam data downstream of the confluence point of the previous level river on the river includes:

[0015] Based on the river ID, the data of all dams on the river are obtained from the database, and the distance from each dam to the river source is compared with the distance from the confluence point to the river source. The data of dams whose river source distance is less than the distance from the confluence point to the river source are eliminated.

[0016] The newly added dam data in the database include:

[0017] a. Verify the validity of the newly added dam data

[0018] The newly added dam complies with the principle of "dam crest elevation >= normal water level > dam foundation elevation > 0";

[0019] b. Verify the relationship between the newly added dam and the upstream and downstream dams

[0020] Arrange the dams according to the upstream and downstream relationship: the dam crest elevation is strictly decreasing; the normal water level is strictly decreasing; the dam foundation elevation is no more than 20M higher than the previous one.

[0021] A dynamic drawing device for a national river cascade plan cross-section map, characterized by comprising:

[0022] The watershed information acquisition module is used to obtain the watershed ID and retrieve the corresponding database of the watershed;

[0023] The tributary information acquisition module obtains the data of all dams on the river from the database based on the river ID, adds the river to the river queue, and adds the corresponding dam data to the dam queue;

[0024] The parent river acquisition module is used to obtain all rivers from the river to the estuary and all dam data downstream of the confluence point of the previous level river on all rivers from the database based on the river ID, add all rivers to the river queue, and add the corresponding dam data to the dam queue;

[0025] The drawing module is used to obtain the center lines of all rivers in the basin corresponding to the basin ID from the database, and draw a base map on the GIS map based on the center lines, and draw river paths and dams on the base map based on the river information in the river queue and the dam information in the dam queue; draw a step diagram based on the river information in the river queue, and draw the normal water level line of the dam and the upstream of the dam on the step diagram based on the dam information in the dam queue.

[0026] A storage medium having a computer program stored thereon, characterized in that when the computer program is executed, the steps of a method for dynamically drawing a national river cascade cross-section map are implemented.

[0027] A computer device has a memory and a processor, wherein a computer program is stored in the memory, and wherein the computer program, when executed, implements the steps of a method for dynamically drawing a cascade cross-section diagram of rivers across the country.

[0028] The beneficial effects of the present invention are as follows: the present invention integrates dam and river data, realizes the digitalization and graphics of river data, and solves the problem of large workload and insufficient accuracy of manual data collection. It is of great significance for building a risk management system for cascade dam groups in river basins, comprehensively supervising the safety of reservoir dam projects in various river basins, and coordinating emergency dispatch.

[0029] The present invention establishes the spatial relationship of rivers on GIS (establishes the relationship of river confluence and river flow direction); establishes the relationship between dams and rivers (the location of dams on rivers); and comprehensively establishes the upstream and downstream and river relationships between all dams in the country, so as to display the upstream and downstream relationships between dams, the river channel distance between dams, and the distance from the source of rivers (main and branch rivers) to the estuary on the national river basin plan and profile maps. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 Schematic diagram of the process of the embodiment.

[0031] Figure 2~Figure 5 Schematic diagram of the river and dam in the embodiment (the circle in the figure represents the dam).

[0032] Figure 6 A plan view of an embodiment.

[0033] Figure 7 It is a cross-sectional view of an embodiment. DETAILED DESCRIPTION

[0034] This embodiment is a method for dynamically drawing a national river cascade plan profile map, which specifically includes the following steps:

[0035] S1. Obtain the watershed ID entered or selected by the user, and retrieve the database of the watershed corresponding to the watershed ID.

[0036] S2. Obtain the river ID entered or selected by the user, take the river corresponding to the river ID as the current river, mark it as DC R1, and obtain the data of all dams on the river from the database based on the river ID (see Figure 2 ), add the data of the river corresponding to the river ID to the river queue, and add the data of all dams on the river to the dam queue.

[0037] S3. Based on the river ID, obtain from the database all the data of all rivers from the river to the estuary and all the dams downstream of the confluence point of the previous level river of all the rivers, add all the rivers to the river queue, and add the corresponding dam data to the dam queue.

[0038] S31. Based on the river ID, obtain its parent river from the database (the river into which the current river flows, see Figure 3 ), add the parent river to the river queue;

[0039] Based on the river ID of the parent river, obtain all the dam data on the parent river from the database (see Figure 4 ), compare the distance from each dam of the parent river to the parent river source with the distance from the confluence point to the parent river source: if the distance is less than the distance from the confluence point to the river source, filter out the dam; if the distance is greater than the distance from the confluence point to the river source, retain the dam; Figure 5 As described above, the dams in the circle are eliminated, the dam data through which the downstream river flows is retained, and the retained dam data is pushed into the dam queue.

[0040] The prior art only saves the relationship between rivers and river inflows and the location data of dams on rivers. It is necessary to sort out all the river and dam data (including river coordinates, river bottom elevation, dam location on the river, dam foundation elevation, dam crest elevation, and normal reservoir water level) along the route of "source->N-level tributaries->...->2-level tributaries->1-level tributaries->main stream->estuary", and manually sort the data based on the river inflow relationship before drawing the river cascade profile. This embodiment proposes: (1) based on the relationship between rivers and river inflows and the location data of dams on rivers, save the distance from the confluence point of the river to the source of the confluence river; (2) based on the river inflow relationship, sort the rivers, and on this basis, automatically filter out the dams on the confluence river and upstream of the confluence point based on the distance from the confluence point of the river to the source of the confluence river, so as to automatically obtain the "source->N-level tributaries->... The arrangement and data of all dams on the route of "level -> 2nd tributary -> level 1 tributary -> main stream -> estuary" can be automatically drawn, which only adds a small amount of data entry work but greatly reduces the workload of data sorting and sorting.

[0041] S32. Repeat step S31 with the river ID of the parent river, search the parent river level by level, obtain the data of all rivers and dams flowing from the tributary R1 to the estuary, and add the data of rivers and dams to the river queue and dam queue respectively.

[0042] S4. Obtain the center lines of all rivers in the basin corresponding to the basin ID from the database, and draw a base map on the GIS map based on the center lines. Draw the river path (each section of the river is assigned a different color in turn) and the dam on the base map based on the river information in the river queue and the dam information in the dam queue to form a plane map (see Figure 6 );

[0043] Draw a cascade diagram based on the river information in the river queue, and draw the dam, the normal water level line upstream of the dam, and the river dividing line (i.e., the confluence point of each river) on the cascade diagram based on the dam information in the dam queue (elevation, water level, and whether it is a registered dam), to form a cross-sectional diagram (see Figure 7 ).

[0044] In this embodiment, the newly added dam data to the database includes:

[0045] a. Verify the validity of the newly added dam data

[0046] The newly added dam complies with the principle of "dam crest elevation >= normal water level > dam foundation elevation > 0";

[0047] b. Verify the relationship between the newly added dam and the upstream and downstream dams

[0048] Arrange the dams according to the upstream and downstream relationship: the dam crest elevation is strictly decreasing; the normal water level is strictly decreasing; the dam foundation elevation is no more than 20M higher than the previous one.

[0049] If two rounds of data verification are met and verification rules a and b are met, a new dam can be added.

[0050] The core data structure of this embodiment is as follows:

[0051] Table 1. River data

[0052] Field Name English name type River ID RIVER_ID VARCHAR(255) Parent river ID PARENT_ID VARCHAR(255) Mainstream ID ROOT_RIVER_ID VARCHAR(255) River level RIVER_LEVEL INT4 River Name RIVER_NAME VARCHAR(255) River length LENGTH FLOAT8 Distance from the sink point to the parent source LENGTH_TO_HEAD FLOAT8 Starting point longitude START_X FLOAT8 Starting point latitude START_Y FLOAT8 End point longitude END_X FLOAT8 End point latitude END_Y FLOAT8 River centerline RIVER_CENTER_LINEARR TEXT

[0053] Table 2. Dam data

[0054] Field Name English name Case Dam ID DAM_ID INT4 Dam name DAM_NAME VARCHAR(255) The river RIVER_ID VARCHAR(255) Distance from point to Heyuan LENGTH_TO_HEAD FLOAT8 longitude START_X FLOAT8 latitude START_Y FLOAT8 Dam crest elevation TOP_LEVEL FLOAT8 Dam height HEIGHT FLOAT8 Normal water level NORMALWATER_LEVEL FLOAT8

[0055] The core code of this embodiment:

[0056] public void dealRiver(River river, Double headToLength, DoubleheadToOrigin, List <river>riverArr, List <dam>damArr) {

[0057] if (river.getRiverLevel() == 1) {

[0058] return;

[0059] }

[0060] / / Step1 Get all dams on this level of river

[0061] / / Filter out the dams flowing through by it.getLengthToHead()>headToLength

[0062] List <dam>tempDamArr = getRiverOfDams(river.getRiverId())

[0063] .stream()

[0064] .filter(it->it.getLengthToHead()>headToLength)

[0065] .peek(it->it.setHeadToOrigin(it.getLengthToHead()+headToOrigin))

[0066] .collect(Collectors.toList());

[0067] / / Step2 The river at this level joins the river queue

[0068] riverArr.add(river);

[0069] / / step3 flows through the dam and joins the dam queue

[0070] damArr.addAll(tempDamArr);

[0071] / / Step4 Find the parent river

[0072] River tempParentRiver = getParentRiver(river.getParentId());

[0073] / / The distance from the current river to the starting point

[0074] double tempHeadToOrigin=headToOrigin+river.getLength()-headToLength;

[0075] dealRiver(tempParentRiver, river.getLengthToHead(), tempHeadToOrigin, riverArr, damArr);

[0076] }

[0077] This embodiment also provides a device for dynamically drawing a national river cascade cross-section map, including a watershed information acquisition module, a tributary information acquisition module, a parent river acquisition module and a drawing module.

[0078] In this example, the watershed information acquisition module is used to obtain the watershed ID and retrieve the corresponding database of the watershed; the tributary information acquisition module obtains the data of all dams on the river from the database based on the river ID, adds the river to the river queue, and adds the corresponding dam data to the dam queue; the parent river acquisition module is used to obtain the data of all rivers from the river to the estuary and all dams downstream of the confluence point of the previous level river on all rivers from the river to the database based on the river ID, adds all rivers to the river queue, and adds the corresponding dam data to the dam queue; the drawing module is used to obtain the center line of all rivers in the watershed corresponding to the watershed ID from the database, and draw the base map on the GIS map based on the center line, and draw the river path and dam on the base map based on the river information in the river queue and the dam information in the dam queue; draw a step diagram based on the river information in the river queue, and draw the normal water level line of the dam and the upstream of the dam on the step diagram based on the dam information in the dam queue.

[0079] This embodiment also provides a storage medium on which a computer program is stored. When the computer program is executed, the steps of the method for dynamically drawing the national river cascade cross-section map in this example are implemented.

[0080] This embodiment also provides a computer device having a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed, the steps of the method for dynamically drawing the national river cascade cross-section map in this example are implemented.

[0081] Embodiment 2: This embodiment is basically the same as Embodiment 1, except that in step S2, the river ID is obtained by the following method:

[0082] The dam ID entered or selected by the user is obtained, and the river to which the dam belongs is obtained from the database based on the dam ID. The river is taken as the current river and recorded as direct current R1.< / dam> < / dam> < / river>

Claims

1. A method for dynamically drawing a cascade plan section of rivers across the country, characterized in that: S1. Obtain the river basin ID and retrieve the corresponding database of the river basin; S2. Based on the river ID, obtain the data of all dams on the river from the database, add the river to the river queue, and add the corresponding dam data to the dam queue; S3. Based on the river ID, obtain from the database all the rivers from the river to the estuary and all the dam data downstream of the confluence point of the previous level river of all the rivers, add all the rivers to the river queue, and add the corresponding dam data to the dam queue; S4, obtaining the center lines of all rivers in the basin corresponding to the basin ID from the database, and drawing a base map on the GIS map based on the center lines, and drawing river paths and dams on the base map based on the river information in the river queue and the dam information in the dam queue; Draw a cascade diagram based on the river information in the river queue, and draw the normal water level line of the dam and the upstream of the dam on the cascade diagram based on the dam information in the dam queue; The step S3 comprises: S31, based on the river ID, obtain the river into which the river flows from the database, and obtain the dam data downstream of the confluence point of the river into which the river flows, add the confluence river into the river queue, and add the corresponding dam data into the dam queue; S32, repeating step S31, obtaining the river into which it flows and the corresponding dam data by using the river ID of the river into which it flows, until the river flows into the sea; Get all dam data downstream of the confluence point of the previous level river on the river, including: Based on the river ID, the data of all dams on the river are obtained from the database, and the distance from each dam to the river source is compared with the distance from the confluence point to the river source. The data of dams whose river source distance is less than the distance from the confluence point to the river source are eliminated.

2. The method for dynamically drawing a national river cascade plan section map according to claim 1 is characterized in that: The river ID in step S2 is the river in the basin corresponding to the basin ID input by the user, or the river to which the dam belongs obtained from the database based on the dam ID input by the user.

3. The method for dynamically drawing a national river cascade plan section map according to claim 1, characterized in that: The new dam data in the database include: a. Verify the validity of the newly added dam data The newly added dam complies with the principle of "dam crest elevation >= normal water level > dam foundation elevation > 0"; b. Verify the relationship between the newly added dam and the upstream and downstream dams Arrange the dams according to the upstream and downstream relationship: the dam crest elevation is strictly decreasing; the normal water level is strictly decreasing; the dam foundation elevation is no more than 20M higher than the previous one.

4. A device for dynamically drawing a cascade plan section diagram of rivers across the country, using the method for dynamically drawing a cascade plan section diagram of rivers across the country as described in any one of claims 1 to 3, characterized in that: include: The watershed information acquisition module is used to obtain the watershed ID and retrieve the corresponding database of the watershed; The tributary information acquisition module obtains the data of all dams on the river from the database based on the river ID, adds the river to the river queue, and adds the corresponding dam data to the dam queue; The parent river acquisition module is used to obtain all rivers from the river to the estuary and all dam data downstream of the confluence point of the previous level river on all rivers from the database based on the river ID, add all rivers to the river queue, and add the corresponding dam data to the dam queue; The drawing module is used to obtain the center lines of all rivers in the basin corresponding to the basin ID from the database, and draw the base map on the GIS map based on the center lines; draw the river path and dam on the base map based on the river information in the river queue and the dam information in the dam queue; draw the step diagram based on the river information in the river queue, and draw the normal water level line of the dam and the upstream of the dam on the step diagram based on the dam information in the dam queue.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the method for dynamically drawing the national river cascade cross-section map as described in any one of claims 1 to 3 are implemented.

6. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed, the steps of the method for dynamically drawing the national river cascade cross-section map as described in any one of claims 1 to 3 are implemented.