CN114155318B - Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs - Google Patents
Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs Download PDFInfo
- Publication number
- CN114155318B CN114155318B CN202111475706.XA CN202111475706A CN114155318B CN 114155318 B CN114155318 B CN 114155318B CN 202111475706 A CN202111475706 A CN 202111475706A CN 114155318 B CN114155318 B CN 114155318B
- Authority
- CN
- China
- Prior art keywords
- unit
- generalized
- reservoir
- attribute
- gojs
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Alarm Systems (AREA)
Abstract
A reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs comprises the steps of generalizing natural elements and engineering in a river basin, generating generalized icons and drawing spaces based on Gojs, dragging and connecting generalized units based on the topological relation of a river basin water system to form a generalized diagram, setting the attributes of the generalized units and storing the generalized diagram as a json file. The method does not need to depend on a geographic information system, can quickly generate a joint scheduling generalized diagram according to the controlled reservoir engineering and main protected objects in the watershed concerned by the user, is convenient to store and transmit, can be connected with a joint scheduling model and a system, provides sufficient input information for the model, and provides visual display content for the system.
Description
Technical Field
The invention relates to the field of reservoir flood control scheduling, in particular to a method for manufacturing a generalized diagram of a reservoir group flood control combined scheduling scheme based on a front-end interactive chart drawing library Gojs. The method does not need to rely on a geographic information system, and can quickly generate a joint scheduling generalized diagram according to the controllable reservoir engineering and main protection objects in the watershed, which are concerned by users.
Background
The large-scale flood control engineering construction mainly comprising embankments, reservoirs and the like is developed in China, flood disasters are often controlled preliminarily, and the flood control standard and the overall flood control capacity of large rivers are further improved. However, in recent years, under the influence of climate change, the number of extreme rainfall events increases, the pressure of a flood control project system increases, and the following problems are increasingly highlighted in terms of flood defense in a drainage area: the controlled reservoir in part of the watershed is built earlier, and the flood control demand of flood control objects of the original engineering design has changed to a certain extent; most reservoirs still operate according to a single reservoir scheduling mode, and a joint scheduling mechanism of upstream and downstream reservoirs and main and branch reservoirs is not formed; a watershed flood scheduling scheme and a defense scheme are not woven, and a watershed reservoir group joint scheduling scheme is not woven; in the aspect of construction of a dispatching system, a drainage basin reservoir group combined flood control dispatching system deeply coupled with forecast information is not established at present.
In the existing flood control project system of the drainage basin, reservoir projects play an irreplaceable role, and scientific and reasonable joint scheduling is carried out on reservoir groups in the drainage basin, so that the system has great significance. By constructing the reservoir group combined flood control dispatching system, the important function of the controlled reservoir engineering in the flood control engineering system can be fully exerted, and decision support is provided for flood control dispatching management of the drainage basin. For the construction of the reservoir group combined flood control dispatching system and the compilation work of the combined dispatching scheme, the method for manufacturing the reservoir group combined dispatching scheme generalized diagram is efficient and universal, and can be connected with the reservoir group combined dispatching model and the reservoir group combined dispatching scheme generalized diagram.
Disclosure of Invention
Aiming at the problem of general and rapid scheduling scheme generalized diagram manufacturing which needs to be solved urgently in the construction of the conventional reservoir group flood control combined scheduling system, the invention provides a reservoir group flood control combined scheduling scheme generalized diagram manufacturing method based on Gojs.
The purpose of the invention is realized by the following technical scheme:
a reservoir group flood control combined scheduling scheme generalized diagram manufacturing method based on Gojs comprises the following steps:
1) generalizing elements and projects within the flow domain: generalizing natural and social elements and reservoir engineering in a river basin into six types of units, namely a river basin unit, an interval unit, a confluence point unit, a reservoir unit, a protected object unit and a river reach unit;
2) generating a generalized icon and a drawing space based on Gojs: creating a drawing space by using an HTML < div > tag and a < canvas > tag, wherein the drawing space comprises two parts, the first part is a generalized unit area, and the second part is a drawing area; respectively managing a drawing area and a generalized unit area by using 'Diagram' and 'Pattern' classes of Gojs; the generalized unit is managed by utilizing a 'go.GraphLinksModel' class of Gojs, the unit type is marked by utilizing a 'text' attribute, the shape of the unit is set by the 'figure' attribute, the color of the unit is set by the 'file' attribute, the 'key' attribute is used as the unique identifier of the generalized unit, and the generalized unit is managed in the form of an icon;
3) dragging and connecting the generalized units to form a generalized diagram: based on the topological relation of a watershed water system, drawing four types of generalized unit icons of a watershed unit, an interval unit, a confluence point unit and a reservoir unit to a drawing space, and placing the generalized unit icons on the drawing space (according to relative positions, namely upstream and downstream positions and left and right bank positions) to preliminarily form a generalized diagram;
based on the relative relation between reservoir projects and protected objects in the watershed, dragging the protected object units to the relative positions of the drawing space (each downstream of the reservoir projects has corresponding protected objects, such as important towns, factories and mines, and the like, so that the generalized units of the protected objects are placed at the corresponding positions downstream of the generalized units of the reservoir), and connecting the generalized units through the river reach units to perfect the generalized diagram;
4) setting the attribute of each generalized unit: realizing the input of the unit attribute by utilizing the 'go.HTMLInfo' class of Gojs;
5) the generalized graph is saved as a json file.
Further optimization, in the step 1), natural watershed directly imported into the reservoir is generalized into a watershed unit; for the upstream unnatural watershed, which is the watershed with reservoir engineering, the section from the reservoir section to the watershed outlet is generalized into an interval unit; the junction point of the intersection of the branch flow and the main flow in the water system is generalized to a confluence point unit; reservoir projects with flood regulation capacity in the river basin are generalized into reservoir units; for important towns and working condition enterprises in the river basin, generalizing the enterprises into protection object units; and the river channels connecting the reservoir unit, the protected object unit and the confluence unit are generalized into river reach units.
Further, in step 4): for the drainage basin unit, the attributes comprise a unit name, a station code associated with a forecast site, a forecast unit and a forecast scheme code; for the interval unit, the attribute comprises a unit name, a station code associated with a forecast site, a forecast unit and a code of a forecast scheme; for the reservoir unit, the attributes comprise a reservoir name, an associated reservoir station code, a water level-reservoir capacity relation, a discharge capacity curve and a flood control index, wherein the water level-reservoir capacity relation, the discharge capacity curve and the flood control index are inquired in a standard real-time rainwater condition database on the basis of the station code; for the protected object units, the attributes comprise associated river channel hydrology, water level station codes, water level-flow relation inquired in a standard real-time rainwater condition database based on the station codes and river channel flood control indexes; for the river reach unit, the attributes comprise river flood evolution calculation parameters.
Further, in step 5): completing the drawing of the generalized diagram through attribute setting, saving the generalized diagram in the drawing space as a json file, saving each generalized unit as an object therein, and saving the unit attribute set in the step 4) as an object attribute
The invention has the advantages and beneficial effects that:
the method does not need to depend on a geographic information system, can quickly generate the generalized diagram of the joint scheduling according to the reservoir engineering and main protection objects in the watershed concerned by users, is convenient to store and transmit, can be connected with the joint scheduling model and the system, provides sufficient input information for the model, and provides visual display content for the system.
Drawings
The invention is further illustrated by the following figures and examples.
FIG. 1 is a schematic flow chart of a schematic diagram manufacturing method in embodiment 1 of the present invention.
FIG. 2 is a schematic drawing space diagram in example 1.
FIG. 3 is a schematic diagram of a generalized cell in embodiment 1.
FIG. 4 is a schematic view of the river basin in embodiment 1.
FIG. 5 is a schematic diagram of a cell icon and a drawing space in example 1.
FIG. 6 is a generalized view of the river system in embodiment 1.
FIG. 7 is a generalized cell attribute setting in example 1.
Detailed Description
Example 1:
a method for manufacturing a reservoir group flood control combined dispatching scheme generalized diagram based on Gojs is shown in figure 1 and comprises the following processes:
1) generalizing natural elements and engineering in the flow domain: generalizing natural and social elements and reservoir engineering in a river basin into six types of units, namely a river basin unit, an interval unit, a confluence point unit, a reservoir unit, a protected object unit and a river reach unit; generalizing a natural basin directly imported into a reservoir into a basin unit; for the upstream unnatural watershed, which is the watershed with reservoir engineering, the section from the reservoir section to the watershed outlet is generalized into an interval unit; the junction point of the intersection of the branch flow and the main flow in the water system is generalized to a confluence point unit; reservoir projects with flood regulation capacity in the river basin are generalized into reservoir units; for important towns, working condition enterprises and other protection objects in the river basin, generalizing the protection objects into protection object units; generalizing a river channel connecting the reservoir unit, the protected object unit and the confluence unit into a river reach unit;
2) generating a generalized icon and a drawing space based on Gojs: creating a drawing space using HTML < div > tags and < canvas > tags, the drawing space including two portions, a first portion being a generalized unit icon area and a second portion being a drawing area, as shown in fig. 1;
respectively managing a drawing area and a generalized unit area by utilizing the 'Diagram' and 'Palette' classes of Gojs;
the generalized unit is managed by using a 'go.graphlink model' class of Gojs, the unit type is marked by using a 'text' attribute, the shape of the unit is set by the 'figure' attribute, the color of the unit is set by the 'file' attribute, and the 'key' attribute is used as a unique identifier of the generalized unit, and the generalized unit is managed in an icon form, as shown in FIG. 2;
3) dragging and connecting the generalization units based on the topological relation of the watershed water system to form a generalization graph: based on the topological relation of a watershed water system, drawing four types of generalized unit icons of a watershed unit, an interval unit, a confluence point unit and a reservoir unit to a drawing space, and placing the generalized unit icons on the drawing space according to relative positions to preliminarily form a generalized diagram;
based on the relative relation between the reservoir engineering in the watershed and the protected object, dragging the protected object units to the relative positions of the drawing space, and connecting the generalized units through the river reach units to perfect a generalized graph;
4) setting the attribute of each generalized unit: the entry of Unit attributes is implemented using the "go. HTMLInfo" class of Gojs: for the drainage basin unit, the attribute comprises a unit name, a station code of an associated forecasting site, a forecasting unit and a forecasting scheme code; for the interval unit, the attribute comprises a unit name, a station code of an associated forecasting station, a forecasting unit and a code of a forecasting scheme; for the reservoir unit, the attributes comprise a reservoir name, an associated reservoir station code, a water level-reservoir capacity relation, a discharge capacity curve and a flood control index which are inquired in a standard real-time rainwater condition database based on the station code; for the protected object units, the attributes comprise associated river channel hydrology, water level station codes, water level-flow relation inquired in a standard real-time rainwater condition database based on the station codes and river channel flood control indexes; for the river reach unit, the attributes comprise river flood evolution calculation parameters, such as cross section data and roughness required by an Masjing root method parameter or a hydrodynamics method;
5) save the generalized graph as a joson file: and (4) completing the drawing of the generalized diagram through attribute setting, saving the generalized diagram in the drawing space as a json file, saving each generalized unit as an object therein, and saving the unit attribute set in the step 4) as an object attribute.
In this embodiment, the view shown in fig. 4 is a schematic view of the vessels, the vessels include a hony county, a buddha ridge, a lotus cliff and a ruby pool, and the main protection objects include a hillside county, a liuan city and the like.
The natural and social elements and the reservoir project are generalized into generalized units, represented by icons, and the generated drawing space is shown in fig. 5.
Based on the topological relation of the watershed water systems and the relative relation between the reservoir engineering and the protected object, drawing and connecting the generalized units to form a generalized diagram as shown in fig. 6.
Right clicking on each generalized cell sets the cell attributes, as shown in fig. 7.
And saving the stream domain generalized diagram as a json file, wherein the information comprises Gojs type 'GraphLinksModel' and 'nodeDataArray' attribute record generalized unit information, and the 'nodeDataArray' attribute record generalized unit topological relation information.
Finally, it should be noted that the above only illustrates the technical solution of the present invention, but not limited thereto, and although the present invention has been described in detail with reference to the preferred arrangement, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made thereto without departing from the spirit and scope of the technical solution of the present invention.
Claims (2)
1. A reservoir group flood control combined scheduling scheme generalized diagram manufacturing method based on Gojs is characterized by comprising the following steps: the method comprises the following steps:
1) generalizing elements and projects within the flow domain: generalizing natural and social elements and reservoir engineering in a river basin into six types of units, namely a river basin unit, an interval unit, a confluence point unit, a reservoir unit, a protected object unit and a river reach unit;
2) generating a generalized icon and a drawing space based on Gojs: creating a drawing space by using an HTML < div > tag and a < canvas > tag, wherein the drawing space comprises two parts, the first part is a generalized unit area, and the second part is a drawing area; respectively managing a drawing area and a generalized unit area by utilizing the 'Diagram' and 'Palette' classes of Gojs; the generalized unit is managed by utilizing a 'go.GraphLinksModel' class of Gojs, the unit type is marked by utilizing a 'text' attribute, the shape of the unit is set by the 'figure' attribute, the color of the unit is set by the 'file' attribute, the 'key' attribute is used as the unique identifier of the generalized unit, and the generalized unit is managed in the form of an icon;
3) dragging and connecting the generalized units to form a generalized diagram: based on the topological relation of a watershed water system, drawing four types of generalized unit icons of a watershed unit, an interval unit, a confluence point unit and a reservoir unit to a drawing space, and placing on the drawing space to preliminarily form a generalized diagram; based on the relative relation between the reservoir engineering in the watershed and the protected object, dragging the protected object units to the relative positions of the drawing space, and connecting the generalized units through the river reach units to perfect a generalized graph;
4) setting the attribute of each generalized unit: realizing the input of the unit attribute by utilizing the 'go.HTMLInfo' class of Gojs;
5) saving the generalized graph as a json file;
in the step 1), natural watershed directly imported into the reservoir is generalized into a watershed unit; for the upstream unnatural watershed, which is the watershed with reservoir engineering, the section from the reservoir section to the watershed outlet is generalized into an interval unit; the junction point of the intersection of the branch flow and the main flow in the water system is generalized to a confluence point unit; reservoir projects with flood regulation capacity in the river basin are generalized into reservoir units; for important towns and working condition enterprises in the river basin, generalizing the enterprises into protection object units; generalizing a river channel connecting the reservoir unit, the protected object unit and the confluence unit into a river reach unit; in the step 4): for the drainage basin unit, the attributes comprise a unit name, a station code associated with a forecast site, a forecast unit and a forecast scheme code; for the interval unit, the attribute comprises a unit name, a station code associated with a forecast site, a forecast unit and a code of a forecast scheme; for the reservoir unit, the attributes comprise a reservoir name, an associated reservoir station code, a water level-reservoir capacity relation, a discharge capacity curve and a flood control index, wherein the water level-reservoir capacity relation, the discharge capacity curve and the flood control index are inquired in a standard real-time rainwater condition database on the basis of the station code; for the protected object units, the attributes comprise associated river channel hydrology, water level station codes, water level-flow relation inquired in a standard real-time rainwater condition database based on the station codes and river channel flood control indexes; for the river reach unit, the attributes comprise river flood evolution calculation parameters.
2. The Gojs-based reservoir group flood control combined scheduling scheme generalized diagram manufacturing method as claimed in claim 1, wherein the method comprises the following steps: step 5): and (4) completing the drawing of the generalized diagram through attribute setting, saving the generalized diagram in the drawing space as a json file, saving each generalized unit as an object therein, and saving the unit attribute set in the step 4) as an object attribute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111475706.XA CN114155318B (en) | 2021-12-06 | 2021-12-06 | Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111475706.XA CN114155318B (en) | 2021-12-06 | 2021-12-06 | Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114155318A CN114155318A (en) | 2022-03-08 |
CN114155318B true CN114155318B (en) | 2022-08-02 |
Family
ID=80452684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111475706.XA Active CN114155318B (en) | 2021-12-06 | 2021-12-06 | Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114155318B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116882851B (en) * | 2023-09-08 | 2023-11-28 | 浙江远算科技有限公司 | Reservoir group flood control system evaluation method and device based on multi-scale coupling simulation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294653A (en) * | 2016-08-04 | 2017-01-04 | 中国水利水电科学研究院 | Flood Prevention based on GIS scheduling generalization figure dynamic creation method |
CN107608676A (en) * | 2017-10-24 | 2018-01-19 | 四川长虹电器股份有限公司 | A kind of implementation method of the interactive table based on gojs technologies |
GB201802728D0 (en) * | 2017-02-21 | 2018-04-04 | Sourcecode Tech Holdings Inc | Collaborative design systems, apparatuses, and methods |
CN112785087A (en) * | 2021-02-22 | 2021-05-11 | 中国水利水电科学研究院 | Water flow optimization scheduling plan compilation method for cross-basin water transfer project with hydraulic response characteristics considered |
-
2021
- 2021-12-06 CN CN202111475706.XA patent/CN114155318B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294653A (en) * | 2016-08-04 | 2017-01-04 | 中国水利水电科学研究院 | Flood Prevention based on GIS scheduling generalization figure dynamic creation method |
GB201802728D0 (en) * | 2017-02-21 | 2018-04-04 | Sourcecode Tech Holdings Inc | Collaborative design systems, apparatuses, and methods |
CN107608676A (en) * | 2017-10-24 | 2018-01-19 | 四川长虹电器股份有限公司 | A kind of implementation method of the interactive table based on gojs technologies |
CN112785087A (en) * | 2021-02-22 | 2021-05-11 | 中国水利水电科学研究院 | Water flow optimization scheduling plan compilation method for cross-basin water transfer project with hydraulic response characteristics considered |
Non-Patent Citations (1)
Title |
---|
基于JavaScript的可视化建模UML工具开发;文浩;《中阿科技论坛》;20210410;第1-4节 * |
Also Published As
Publication number | Publication date |
---|---|
CN114155318A (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jamieson et al. | The ‘WaterWare’decision-support system for river-basin planning. 1. Conceptual design | |
Hsu et al. | Network flow optimization model for basin-scale water supply planning | |
Ko et al. | MULTIOBJECTWE OPTIMIZATION OF RESERVOIR SYSTEMS OPERATION 1 | |
CN102147830A (en) | Method and system for optimally designing water supply pipe network | |
CN114155318B (en) | Reservoir group flood control combined dispatching scheme generalized diagram manufacturing method based on Gojs | |
CN114116915A (en) | Hydraulic engineering intelligent map system based on three-dimensional digital platform | |
CN108053458A (en) | A kind of watershed generalization figure based on GIS-Geographic Information System makes and methods of exhibiting | |
CN115186629A (en) | Coding method, system, terminal and medium for water conservancy and hydropower engineering management system | |
CN106202479B (en) | A kind of earth's surface hydrology database construction method being encoded to major key with percentage section | |
CN113312736B (en) | River network hydrodynamic simulation implementation method and system based on cloud platform | |
CN110348707B (en) | Generalized step reservoir group combined dispatching system | |
Malek-Mohammadi | Irrigation planning: integrated approach | |
Chang et al. | Water Dispatch Model for Middle Route of a South‐to‐North Water Transfer Project in China 1 | |
CN117235219A (en) | Reservoir knowledge intelligent question-answering system based on flood prevention demands | |
CN110348691A (en) | A kind of appraisal and spatial decision support system based on river ecological environment | |
CN115964875A (en) | Digital twin water network tetrahedral model construction method | |
CN105469164A (en) | Topic mode based cross-business calculation and analysis system for power system | |
CN102142000B (en) | Multi-scale triangulated irregular network (TIN) library coupled storage method | |
CN103854138A (en) | County region resource and environment information sharing and sustainable development decision making system based on SOA | |
CN116542580B (en) | Water conservancy service system construction method and system based on variable service matrix | |
Wengert | The river basin concept as seen from a management perspective in USA | |
CN112580131A (en) | Rapid search connection method for sub-catchment areas based on GIS (geographic information System) and SWMM (Single wire Meter-based Module) | |
CN102831496B (en) | The method of a kind of petroleum chemical enterprise business information model data unification | |
CN102023866A (en) | Map control based on Google Maps JavaScript API and production method thereof | |
Diaz et al. | Aquarius: an object-oriented model for efficient allocation of water in river basins |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |