Method and system for realizing directional flow through target of water quality monitoring station based on map
Through map-based water quality monitoring site route queue and layer mask technology, the monitoring problems caused by the convergence of complex river channels are solved, and the accurate correlation and pollution impact analysis of water quality monitoring sites are achieved, and monitoring efficiency and accuracy are improved. .
Patent Information
- Application Number
- CN202411263566.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The complex bifurcation and convergence of existing water quality monitoring platforms on rivers makes it difficult for monitoring personnel to accurately select upstream and downstream water quality monitoring stations, which consumes time and energy, and fails to effectively correlate the pathways and goals of the pollution impact.
Using a map-based method, by obtaining the geographical information of the water quality monitoring site, numbering it in sequence according to the river flow direction, forming a site path queue, and filtering upstream and downstream sites within the target search range according to the number of the current site, using layer masks and Search range calculation determines the site path target.
It realizes intuitive understanding and real-time control of water quality monitoring sites, simplifies monitoring operations, and improves the accuracy and efficiency of pollution impact analysis.
Smart Images

Figure CN118820386B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water quality monitoring, and in particular to a method and system for realizing directional flow through a target at a water quality monitoring site based on a map. Background Art
[0002] In the supervision of water environment and water safety, water quality monitoring stations are usually set up at rivers or outlets to monitor the water quality of the rivers where they are located. However, since rivers are flowing, and in the process of flowing along the river, they will successively encounter many river branches or river convergences, making them have a strong correlation with each other. As a result, when a water quality monitoring station has an alert for excessive water pollution, the water quality monitoring stations at the upstream and downstream locations corresponding to the water quality monitoring station may be affected by the pollution.
[0003] For the current water quality monitoring platform, monitoring personnel need to analyze the river flow direction based on a certain water quality monitoring station on the map. However, the river branching or river confluence on the river is generally more complicated, which causes the monitoring personnel to repeatedly zoom in or out of the map to select the water quality monitoring station corresponding to the upstream and downstream position of the water quality monitoring station. This operation method not only makes it difficult to select the correct water quality monitoring station, but also consumes time and energy, and is not convenient for monitoring personnel to operate. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for realizing directional flow targets of water quality monitoring sites based on maps, which are applied to water quality monitoring and control platforms. On the map used for water quality monitoring, the upstream and downstream water quality monitoring sites are associated according to the river flow direction of the river and the pathway targets that may be affected by site pollution are analyzed, so that the staff can intuitively understand the site pathway targets of the current water quality monitoring site through the map, thereby facilitating real-time and effective control measures.
[0005] In order to solve the above technical problems, the present invention adopts the following solutions:
[0006] A method for achieving a directional flow through target at a water quality monitoring site based on a map, the method specifically comprising the following steps:
[0007] S0: Obtain the geographical information of all water quality monitoring stations on the river, and number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station path queue;
[0008] S1: Obtain the layer mask a corresponding to the current water quality monitoring site on the map, each layer mask a takes the coordinate position of the current water quality monitoring site as the center point;
[0009] S2: Get the target search range of the current water quality monitoring site on layer mask a;
[0010] S3: Perform up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue to obtain the site path targets within the target search range.
[0011] Furthermore, in S2, the target search range is centered on the center point of layer mask a and is expanded with the search range value as the radius, and the search range value is calculated based on the geographical information of the current water quality monitoring station on the river.
[0012] Furthermore, the geographic information includes the river width, river flow rate, and river type of the river where the water quality monitoring station is located. The river width, river flow rate, and river type are substituted into the search range calculation model for calculation to obtain the search range value corresponding to the current water quality monitoring station.
[0013] Furthermore, the geographic information includes the channel type of the river where the water quality monitoring station is located. The channel type is divided into main stream and tributaries, and the main stream flows along the river flow direction. At the same time, the main stream flows out into several tributaries in sequence along the river flow direction. The water quality monitoring stations whose channel type is the main stream and the water quality monitoring stations whose channel type is the tributaries are numbered in sequence from top to bottom according to the logical relationship between the main stream and the tributaries, forming a tree-structured site path queue.
[0014] Furthermore, in S0, the specific process of sequentially numbering all water quality monitoring stations according to the river flow direction based on the geographic information is as follows:
[0015] The water quality monitoring station in the mainstream of the river channel is taken as the first-level station. The upstream and downstream positions of the first-level station on the mainstream are obtained according to the coordinate position of the first-level station. The first-level stations are numbered from the first-level station located upstream to the first-level station downward, and a first-level queue is generated. The first-level queue is represented by {K1, K2, …, Kn}, where n represents the number of first-level stations on a mainstream.
[0016] The water quality monitoring station in the tributary is taken as the second-level station. The upstream and downstream positions of the second-level station on the same mainstream are obtained according to the coordinate position of the second-level station. The second-level stations are numbered from the second-level station located upstream to the downstream on the mainstream, and the second-level queue corresponding to the tributary is generated. The second-level queue is represented by {Z1, Z2, …, Zj}, where j represents the number of second-level stations on a tributary.
[0017] According to the flow direction relationship between the tributaries and the main stream, several second-level queues are associated with the first-level sites upstream of the corresponding tributaries according to the upstream and downstream positions of the tributaries in the main stream, and a tree-structured site path queue is generated. The tree-structured site path queue is expressed as:
[0018] {K1{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},K2{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},…, Kn{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}}.
[0019] Furthermore, when the second-level queue establishes an association with the first-level site upstream of the corresponding tributary, it means that the tributary corresponding to the second-level queue flows out from the main stream where the first-level site is located, and the distance between the first-level site and the tributary corresponding to the second-level queue is the shortest.
[0020] Furthermore, in S3, the specific process of performing up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue is as follows:
[0021] Obtain the number of the current water quality monitoring site, and based on the number of the current water quality monitoring site, obtain the water quality monitoring sites located before and after the number in the site path queue, and determine whether the water quality monitoring site is within the search range. If so, use the water quality monitoring site as a site path target.
[0022] Furthermore, in S3, the specific process of performing up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue is as follows:
[0023] Obtain the number of the current water quality monitoring site, and obtain the first-level queue or the second-level queue where the number is located according to the number of the current water quality monitoring site;
[0024] When the number is in the first-level queue, the water quality monitoring sites before and after the number in the first-level queue are obtained, and it is determined whether the water quality monitoring sites before and after the number are within the search range. If so, the water quality monitoring sites are used as site path targets;
[0025] When the number is in the second-level queue, the water quality monitoring stations before and after the number in the second-level queue are obtained. At this time, if the number before the number is empty, the first-level station corresponding to the second-level queue is used as the water quality monitoring station before the number, and it is determined whether the water quality monitoring stations before and after the number are within the search range. If so, the water quality monitoring station is used as the station path target.
[0026] A system for achieving directional flow through targets at water quality monitoring sites based on a map, comprising:
[0027] Station route queue acquisition module: obtain the geographical information of all water quality monitoring stations on the river, number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station route queue;
[0028] Layer mask acquisition module: obtain the layer mask a corresponding to the current water quality monitoring site on the map, and each layer mask a takes the coordinate position of the current water quality monitoring site as the center point;
[0029] Target search range acquisition module: obtain the target search range of the current water quality monitoring site on layer mask a;
[0030] Site path target acquisition module: perform up and down screening according to the order of the current water quality monitoring site numbers in the site path queue, and obtain the site path targets within the target search range.
[0031] Beneficial effects of the present invention:
[0032] The present invention provides a method and system for realizing directional flow targets of water quality monitoring sites based on maps, which are applied to water quality monitoring and control platforms. On the map used for water quality monitoring, upstream and downstream water quality monitoring sites are associated according to the river flow direction of the river, and the pathway targets that may be affected by site pollution are analyzed, so that staff can intuitively understand the site pathway targets of the current water quality monitoring site through the map, thereby facilitating real-time and effective control measures. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flowchart of a method for realizing directional flow through a target at a water quality monitoring station based on a map in Example 1 of the present invention.
[0034] Figure 2 This is a schematic diagram of the river flow direction in the control area in Example 1 of the present invention.
[0035] Figure 3 Schematic diagram of the first-level site and the second-level site in Example 1 of the present invention.
[0036] Figure 4 This is a schematic diagram of site path targets within the first target search range in Example 1 of the present invention.
[0037] Figure 5 This is a schematic diagram of site path targets within the second target search range in Example 1 of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0040] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0041] Additionally, descriptions of well-known structures, functions, and configurations may be omitted for clarity and conciseness.One of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.
[0042] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0043] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0044] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments:
[0045] Example 1
[0046] like Figure 1 As shown, a method for achieving directional flow through a water quality monitoring site based on a map, the method specifically comprises the following steps:
[0047] S0: Obtain the geographical information of all water quality monitoring stations on the river, and number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station path queue;
[0048] S1: Obtain the layer mask a corresponding to the current water quality monitoring site on the map, each layer mask a takes the coordinate position of the current water quality monitoring site as the center point;
[0049] S2: Get the target search range of the current water quality monitoring site on layer mask a;
[0050] S3: Perform up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue to obtain the site path targets within the target search range.
[0051] Preferably, in S2, the target search range is centered on the center point of layer mask a and is expanded with the search range value as the radius, and the search range value is calculated based on the geographical information of the current water quality monitoring station on the river.
[0052] Preferably, the geographic information includes the river width, river flow rate, and river type of the river where the water quality monitoring station is located. The river width, river flow rate, and river type are substituted into the search range calculation model for calculation to obtain the search range value corresponding to the current water quality monitoring station.
[0053] Preferably, the geographic information includes the channel type of the river where the water quality monitoring station is located, and the channel type is divided into main stream and tributaries, and the main stream flows along the river flow direction. At the same time, the main stream flows out into several tributaries in sequence along the river flow direction. The water quality monitoring stations whose channel type is the main stream and the water quality monitoring stations whose channel type is the tributaries are numbered in sequence from top to bottom according to the logical relationship between the main stream and the tributaries, forming a site path queue with a tree structure.
[0054] Preferably, in S0, the specific process of sequentially numbering all water quality monitoring stations according to the river flow direction based on the geographic information is as follows:
[0055] The water quality monitoring station in the mainstream of the river channel is taken as the first-level station. The upstream and downstream positions of the first-level station on the mainstream are obtained according to the coordinate position of the first-level station. The first-level stations are numbered from the first-level station located upstream to the first-level station downward, and a first-level queue is generated. The first-level queue is represented by {K1, K2, …, Kn}, where n represents the number of first-level stations on a mainstream.
[0056] The water quality monitoring station in the tributary is taken as the second-level station. The upstream and downstream positions of the second-level station on the same mainstream are obtained according to the coordinate position of the second-level station. The second-level stations are numbered from the second-level station located upstream to the downstream on the mainstream, and the second-level queue corresponding to the tributary is generated. The second-level queue is represented by {Z1, Z2, …, Zj}, where j represents the number of second-level stations on a tributary.
[0057] According to the flow direction relationship between the tributaries and the main stream, several second-level queues are associated with the first-level sites upstream of the corresponding tributaries according to the upstream and downstream positions of the tributaries in the main stream, and a tree-structured site path queue is generated. The tree-structured site path queue is expressed as:
[0058] {K1{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},K2{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},…, Kn{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}}.
[0059] Preferably, when the second-level queue establishes an association with the first-level site upstream of the corresponding tributary, it means that the tributary corresponding to the second-level queue flows out from the main stream where the first-level site is located, and the distance between the first-level site and the tributary corresponding to the second-level queue is the shortest.
[0060] Preferably, in S3, the specific process of performing up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue is:
[0061] Obtain the number of the current water quality monitoring site, and based on the number of the current water quality monitoring site, obtain the water quality monitoring sites located before and after the number in the site path queue, and determine whether the water quality monitoring site is within the search range. If so, use the water quality monitoring site as a site path target.
[0062] Preferably, in S3, the specific process of performing up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue is:
[0063] Obtain the number of the current water quality monitoring site, and obtain the first-level queue or the second-level queue where the number is located according to the number of the current water quality monitoring site;
[0064] When the number is in the first-level queue, the water quality monitoring sites before and after the number in the first-level queue are obtained, and it is determined whether the water quality monitoring sites before and after the number are within the search range. If so, the water quality monitoring sites are used as site path targets;
[0065] When the number is in the second-level queue, the water quality monitoring stations before and after the number in the second-level queue are obtained. At this time, if the number before the number is empty, the first-level station corresponding to the second-level queue is used as the water quality monitoring station before the number, and it is determined whether the water quality monitoring stations before and after the number are within the search range. If so, the water quality monitoring station is used as the station path target.
[0066] Based on the above principles, the present invention is further described:
[0067] The present invention provides a method for realizing directional flow targets of water quality monitoring sites based on maps. The method is mainly used on a water quality monitoring and control platform. At present, the water quality monitoring and control platform is mainly used to monitor the rivers where the water quality monitoring sites are located, which is convenient for locking the responsible parties. It can push and deal with pollution problems in the first time, help improve and enhance the urban water quality, and provide decision-making support for water quality management.
[0068] Specifically, the water quality monitoring station may be an automatic water quality station or an outlet monitoring point. Under water environment and water safety supervision, the distances between multiple automatic water quality stations or outlet monitoring points are relatively close, resulting in the water quality of a certain water quality monitoring station having an impact on the next station along the way according to the direction of the river flow. However, at present, there is no association between the stations along the way on the water quality monitoring and control platform. For the current water quality monitoring platform, monitoring personnel need to analyze the river direction based on a certain water quality monitoring station on the map. However, the bifurcations or convergences of rivers are generally more complicated, resulting in the need for monitoring personnel to repeatedly zoom in or out of the map to select the water quality monitoring station corresponding to the upstream and downstream positions of the water quality monitoring station. This operation method not only makes it difficult to select the correct water quality monitoring station, but also consumes time and effort, making it inconvenient for monitoring personnel to operate.
[0069] Therefore, the present invention associates the upstream and downstream water quality monitoring stations with the river flow direction based on the map, and at the same time, analyzes the pathway targets that may be affected by station pollution, so that the staff can intuitively understand the station pathway targets of the current water quality monitoring station through the map, thereby facilitating real-time and effective control measures.
[0070] In this embodiment, a map can be generated in advance based on the static information of the mainstream and tributaries in the river channel, wherein the static information of the mainstream and tributaries in the river channel mainly includes the upstream starting point, the next node, the river channel depth, the cross-section node, the riverbed height, and the river channel width. The water quality monitoring stations are then mapped on the map based on the longitude and latitude coordinates of the stations on the river. Specifically, it is first necessary to correct the longitude and latitude coordinates of all water quality monitoring stations, and determine the coordinate system of the longitude and latitude coordinates of all water quality monitoring stations. If it is BD02 or WSG84, it is transmitted to the unified coordinate correction calculation service. Through encryption and offset calculation, it is ensured that the coordinate system of all points is GCJ02, and then it can be mapped to the map.
[0071] Since a river has a certain flow direction, the transmission path of the river can be obtained by tracing the source. Therefore, the present invention chooses to associate the upstream and downstream water quality monitoring stations according to the river flow direction, which can facilitate the analysis of the water quality monitoring stations along the way on the map, obtain the station path targets of the water quality monitoring stations, and display the station path targets on the map, so as to facilitate the real-time and effective control measures of the management and control personnel.
[0072] In this embodiment, the present invention chooses to use a site route queue to associate water quality monitoring sites located on the river. The site route queue is formed by sequentially numbering all water quality monitoring sites according to the river flow direction through geographic information. Specifically, the site route queue is equivalent to the arrangement order of a tree structure, and the river is divided into a main stream and tributaries according to the river type. For a control area, a control area generally has a mainstream as the main monitoring area, and the mainstream has several tributaries. The main stream A is the main trunk in the control area. According to the river flow direction, the main stream A branches out from the upstream to the bottom to form tributaries A1, A2, and A3.
[0073] Based on the above control area, all water quality monitoring stations in the control area are obtained, that is, 7 water quality monitoring stations are obtained, and the water quality monitoring stations are divided into first-level stations and second-level stations according to the river type. That is, the water quality monitoring stations located on the main stream are first-level stations, and the water quality monitoring stations located on the tributaries are second-level stations. Figure 3 As shown, the upstream and downstream positions of the first-level stations on the mainstream are obtained according to the coordinate positions of the first-level stations and the flow direction of the mainstream, and the first-level stations are numbered from the upstream first-level station downward in sequence, and a first-level queue is generated. The first-level queue is represented by {K1, K2, K3};
[0074] According to the coordinate positions of the second-level stations, the upstream and downstream positions of the second-level stations on the same mainstream are obtained. Then, the second-level stations are numbered from the second-level station located upstream to the downstream on the mainstream, and three second-level queues are generated, and the three second-level queues are {Z1, Z2}, {Z1}, {Z1} respectively;
[0075] According to the flow relationship between the tributaries and the main stream, several second-level queues are associated with the first-level sites upstream of the corresponding tributaries according to the upstream and downstream positions of the tributaries in the main stream. It can be seen that the first-level site upstream of the tributary corresponding to the second-level queue {Z1, Z2} is K1, and a tree-structured site path queue is generated, such as Figure 3 As shown, the tree-structured site path queues are represented as {K1{R1{Z1}, R2{Z1,Z2}}, K2{R1{Z1}}, K3}, wherein K1{R1{Z1}, R2{Z1,Z2}} represents the second-level queue associated with the first-level site K1. It can be seen that the first-level site K1 is associated with two second-level queues, namely {Z1} and {Z1,Z2}, and Ri is used to represent the i-th second-level queue associated with the first-level site.
[0076] Then, when the directional operation of the current water quality monitoring site X is obtained, in this embodiment, the water quality monitoring site X is numbered K2, and an upper and lower level search is performed in the site path queue to search for the water quality monitoring sites K1, R1{Z1}, R2{Z1} and R2{Z2} located on the upper layer, and the water quality monitoring sites R1{Z1} and K3 located on the lower layer, and analyze and determine whether the water quality monitoring site is within the target search range. If so, the water quality monitoring site is used as a site path target.
[0077] In the embodiment, the target search range is centered at the center point of the layer mask a and is expanded with the search range value as the radius, and the search range value is calculated based on the geographical information of the current water quality monitoring station on the river. The geographical information includes the river width, river flow rate, and river type of the river where the water quality monitoring station is located. The river width, river flow rate, and river type are substituted into the search range calculation model for calculation to obtain the search range value corresponding to the current water quality monitoring station.
[0078] Specifically, the water quality monitoring stations K1, R1{Z1}, R2{Z1} and R2{Z2} located on the upper layer are searched, and the water quality monitoring stations R1{Z1} and K3 located on the lower layer are searched to determine whether they are within the target search range, wherein, assuming that the river width is w (unit m), the river flow rate is f (unit m / s), and the river search type is c (c is a tributary or main stream), if w<40 and f>0.6, then r=1000 is set, c is the main stream, then the search is centered on the current water quality monitoring station X, and the radius range is r to search for the upstream and downstream water quality monitoring stations located on the main stream and with the nearest longitude and latitude, such as Figure 4 As shown in the figure, the water quality monitoring station K3 is obtained as the station path target; if w>40, r=1200 is set, c is the main stream or tributary, and the upstream and downstream water quality monitoring stations located on the main stream or direct current and with the nearest longitude and latitude are searched with r as the radius range, and the water quality monitoring station K3, water quality monitoring station R1{Z1}, and water quality monitoring station R2{Z1} are obtained as the station path targets, as shown in Figure 5 shown.
[0079] To sum up, the present invention considers that water quality transmission is carried out according to the direction of river flow, and strongly associates the water quality monitoring stations located on the river so that it can perform transmission target analysis according to the direction of river flow, making the present invention more accurate in targeting the directional transmission of water quality monitoring stations.
[0080] In addition, the present invention establishes a layer mask a related to the water quality monitoring site on the water quality monitoring and management platform. When the management and control personnel want to monitor the water quality monitoring site, they only need to click on the water quality monitoring site on the water quality monitoring and management platform, and the layer mask a corresponding to the water quality monitoring site will be displayed. In the present invention, the layer mask a is not only used to display the water quality of the water quality monitoring site, but also used to display the water quality monitoring sites along the way associated with the water quality monitoring site, so as to facilitate the management and control personnel to carry out effective water quality control.
[0081] Example 2
[0082] A system for achieving directional flow through targets at water quality monitoring sites based on a map, comprising:
[0083] Station route queue acquisition module: obtain the geographical information of all water quality monitoring stations on the river, number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station route queue;
[0084] Layer mask acquisition module: obtain the layer mask a corresponding to the current water quality monitoring site on the map, and each layer mask a takes the coordinate position of the current water quality monitoring site as the center point;
[0085] Target search range acquisition module: obtain the target search range of the current water quality monitoring site on layer mask a;
[0086] Site path target acquisition module: perform up and down screening according to the order of the current water quality monitoring site numbers in the site path queue, and obtain the site path targets within the target search range.
[0087] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for achieving directional flow through a target at a water quality monitoring site based on a map, characterized in that: The method specifically comprises the following steps: S0: Obtain the geographical information of all water quality monitoring stations on the river, and number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station path queue; The site pathway queue forms a tree structure according to the flow relationship between the tributaries and the main stream; The water quality monitoring station in the mainstream of the river channel is taken as the first-level station. The upstream and downstream positions of the first-level station on the mainstream are obtained according to the coordinate position of the first-level station. The first-level stations are numbered from the first-level station located upstream to the first-level station downward, and a first-level queue is generated. The first-level queue is represented by {K1, K2, …, Kn}, where n represents the number of first-level stations on a mainstream. The water quality monitoring station in the tributary is taken as the second-level station. The upstream and downstream positions of the second-level station on the same mainstream are obtained according to the coordinate position of the second-level station. The second-level stations are numbered from the second-level station located upstream to the downstream on the mainstream, and the second-level queue corresponding to the tributary is generated. The second-level queue is represented by {Z1, Z2, …, Zj}, where j represents the number of second-level stations on a tributary. According to the flow direction relationship between the tributaries and the main stream, several second-level queues are associated with the first-level sites upstream of the corresponding tributaries according to the upstream and downstream positions of the tributaries in the main stream, and a tree-structured site path queue is generated. The tree-structured site path queue is expressed as: {K1{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}, K2{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},…, Kn{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}}; where Ri represents the i-th second-level queue associated with the first-level site; S1: Obtain the layer mask a corresponding to the current water quality monitoring site on the map, each layer mask a takes the coordinate position of the current water quality monitoring site as the center point; S2: Get the target search range of the current water quality monitoring site on layer mask a; S3: Perform up and down screening according to the order of the numbers of the current water quality monitoring sites in the site path queue, and screen out the site path targets within the target search range; The specific process of S3 is as follows: Obtain the number of the current water quality monitoring site, and obtain the first-level queue or the second-level queue where the number is located according to the number of the current water quality monitoring site; When the number is in the first-level queue, the water quality monitoring sites before and after the number in the first-level queue are obtained, and it is determined whether the water quality monitoring sites before and after the number are within the search range. If so, the water quality monitoring sites are used as site path targets; When the number is in the second-level queue, the water quality monitoring stations before and after the number in the second-level queue are obtained. At this time, if the number before the number is empty, the first-level station corresponding to the second-level queue is used as the water quality monitoring station before the number, and it is determined whether the water quality monitoring stations before and after the number are within the search range. If so, the water quality monitoring station is used as the station path target.
2. A method for achieving directional flow through targets at water quality monitoring sites based on a map according to claim 1, characterized in that: In S2, the target search range is centered on the center point of layer mask a and is expanded with the search range value as the radius, and the search range value is calculated based on the geographical information of the current water quality monitoring station on the river.
3. A method for achieving directional flow through targets at water quality monitoring sites based on a map according to claim 2, characterized in that: The geographic information includes the river width, river flow rate, and river type of the river where the water quality monitoring station is located. The river width, river flow rate, and river type are substituted into the search range calculation model for calculation to obtain the search range value corresponding to the current water quality monitoring station.
4. The method for realizing directional flow through a target at a water quality monitoring station based on a map according to claim 1, characterized in that: The geographic information includes the channel type of the river where the water quality monitoring station is located. The channel type is divided into main stream and tributaries, and the main stream flows along the river flow direction. At the same time, the main stream flows out into several tributaries in sequence along the river flow direction. The water quality monitoring stations where the channel type is the main stream and the water quality monitoring stations where the channel type is the tributaries are numbered in sequence from top to bottom according to the logical relationship between the main stream and the tributaries, forming a tree-structured site path queue.
5. The method for realizing directional flow through a target at a water quality monitoring site based on a map according to claim 1, characterized in that: When the second-level queue establishes an association with the first-level site upstream of the corresponding tributary, it means that the tributary corresponding to the second-level queue flows out from the main stream where the first-level site is located, and the distance between the first-level site and the tributary corresponding to the second-level queue is the shortest.
6. A system for realizing directional flow through targets at water quality monitoring sites based on a map, characterized in that: The method for realizing directional flow through a target at a water quality monitoring station based on a map as claimed in claim 1 comprises: Station route queue acquisition module: obtain the geographical information of all water quality monitoring stations on the river, number all water quality monitoring stations in sequence according to the river flow direction based on the geographical information, and form a station route queue; The site pathway queue forms a tree structure according to the flow relationship between the tributaries and the main stream; The water quality monitoring station in the mainstream of the river channel is taken as the first-level station. The upstream and downstream positions of the first-level station on the mainstream are obtained according to the coordinate position of the first-level station. The first-level stations are numbered from the first-level station located upstream to the first-level station downward, and a first-level queue is generated. The first-level queue is represented by {K1, K2, …, Kn}, where n represents the number of first-level stations on a mainstream. The water quality monitoring station in the tributary is taken as the second-level station. The upstream and downstream positions of the second-level station on the same mainstream are obtained according to the coordinate position of the second-level station. The second-level stations are numbered from the second-level station located upstream to the downstream on the mainstream, and the second-level queue corresponding to the tributary is generated. The second-level queue is represented by {Z1, Z2, …, Zj}, where j represents the number of second-level stations on a tributary. According to the flow direction relationship between the tributaries and the main stream, several second-level queues are associated with the first-level sites upstream of the corresponding tributaries according to the upstream and downstream positions of the tributaries in the main stream, and a tree-structured site path queue is generated. The tree-structured site path queue is expressed as: {K1{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}, K2{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}},…, Kn{R1{Z1, Z2, …, Zj},R2{Z1, Z2, …, Zj},…, Rn{Z1, Z2, …, Zj}}}; where Ri represents the i-th second-level queue associated with the first-level site; Layer mask acquisition module: obtain the layer mask a corresponding to the current water quality monitoring site on the map, and each layer mask a takes the coordinate position of the current water quality monitoring site as the center point; Target search range acquisition module: obtain the target search range of the current water quality monitoring site on layer mask a; Site path target acquisition module: perform up and down screening according to the order of the current water quality monitoring site numbers in the site path queue, and obtain the site path targets within the target search range; The specific process of upper and lower screening is as follows: Obtain the number of the current water quality monitoring site, and obtain the first-level queue or the second-level queue where the number is located according to the number of the current water quality monitoring site; When the number is in the first-level queue, the water quality monitoring sites before and after the number in the first-level queue are obtained, and it is determined whether the water quality monitoring sites before and after the number are within the search range. If so, the water quality monitoring sites are used as site path targets; When the number is in the second-level queue, the water quality monitoring stations before and after the number in the second-level queue are obtained. At this time, if the number before the number is empty, the first-level station corresponding to the second-level queue is used as the water quality monitoring station before the number, and it is determined whether the water quality monitoring stations before and after the number are within the search range. If so, the water quality monitoring station is used as the station path target.
