CN117952778A - GIS-based intelligent drainage space analysis method and system - Google Patents

GIS-based intelligent drainage space analysis method and system Download PDF

Info

Publication number
CN117952778A
CN117952778A CN202410164543.0A CN202410164543A CN117952778A CN 117952778 A CN117952778 A CN 117952778A CN 202410164543 A CN202410164543 A CN 202410164543A CN 117952778 A CN117952778 A CN 117952778A
Authority
CN
China
Prior art keywords
analysis
pipeline
user
geographic
drainage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410164543.0A
Other languages
Chinese (zh)
Inventor
周俊
唐洪林
钟国兴
李睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Dayawan District Huiqing Information Technology Co ltd
Original Assignee
Huizhou Dayawan District Huiqing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Dayawan District Huiqing Information Technology Co ltd filed Critical Huizhou Dayawan District Huiqing Information Technology Co ltd
Priority to CN202410164543.0A priority Critical patent/CN117952778A/en
Publication of CN117952778A publication Critical patent/CN117952778A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a space analysis method and a system of intelligent drainage based on GIS, comprising selecting a corresponding geographic range according to the geographic area of space analysis required, wherein the geographic range comprises cities and blocks; calling a geographic area background layer in a geographic area database, wherein the geographic area background layer contains geographic element information, and the geographic element information comprises roads and rivers; calling a pipeline element layer in a pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage household; combining the geographical area background layer and the pipeline element layer to generate a user operable layer; and executing the corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result. The problem of city wisdom drainage system lack carry out space analysis to the drainage pipe network, lead to drainage system design unreasonable, maintain the difficulty, can't realize meticulous management is solved. The invention has the effect of providing support and reference for urban drainage management.

Description

GIS-based intelligent drainage space analysis method and system
Technical Field
The invention relates to the technical field of drainage management, in particular to a space analysis method and a system for intelligent drainage based on GIS.
Background
In daily life, sewage after being used by people, and when ice and snow melt in summer storm season and winter, urban inner diameter flow becomes big, and the rain and snow water that needs timely discharge, and also partly directly discharge the industrial waste water of urban sewage pipeline or rainwater pipeline all belong to urban drainage, need urban drainage system through collecting, conveying, handling and emission. Therefore, the urban drainage system is reasonably designed, and the aim of reasonably discharging urban sewage and rainwater is fulfilled.
However, the existing urban intelligent drainage system lacks of spatial analysis on a drainage pipe network, so that the drainage system is unreasonable in design and difficult to maintain, cannot realize fine management, and has limitation on support and reference provided for urban drainage management. Therefore, in the construction of the urban intelligent drainage system, it is necessary to fully consider and develop the space analysis work of the drainage pipe network so as to improve the efficiency and the sustainability of the drainage system.
Disclosure of Invention
The invention aims to provide a space analysis method of intelligent drainage based on GIS, which has the characteristics of support and reference for urban drainage management.
The first object of the present invention is achieved by the following technical solutions:
A space analysis method of intelligent drainage based on GIS comprises the following steps:
Selecting a corresponding geographic range according to a geographic area needing space analysis, wherein the geographic range comprises a city and a neighborhood;
Invoking a geographic area background layer in a geographic area database, wherein the geographic area background layer contains geographic element information, and the geographic element information comprises roads and rivers;
Calling a pipeline element layer in a pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage household;
combining the geographical area background layer and the pipeline element layer to generate a user operable layer;
And executing corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis.
By adopting the technical scheme, the geographic element information and the pipeline element information are combined by calling the geographic area background layer and the pipeline element layer to generate a user operable layer. In this way, different spatial data can be integrated on one platform and presented to the user in a visual manner, so that the user can more intuitively know the situation of the geographic area. And then, according to the operation instruction of the user, corresponding space analysis options such as distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis, coverage density analysis and the like are executed. These spatial analysis functions may assist the user in quantitative analysis and decision support, such as assessing the operating conditions of the drainage system, determining optimal drainage paths, calculating the service range and coverage of sewage treatment plants, and the like. In addition, decision support is provided through a space analysis function, so that the design and management of the drainage system are optimized. For example, the range of the influence area can be determined through buffer zone analysis, so that a corresponding drainage scheme is formulated; the coverage of the sewage treatment plant can be evaluated through service area analysis, and the layout of drainage facilities and the like are optimized.
The present invention may be further configured in a preferred example, the method further includes:
the results of the spatial analysis are visualized and presented in the form of maps and charts.
By adopting the technical method, the spatial analysis result is firstly displayed in the form of a map, so that the distribution condition of the analysis result on the geographic area can be intuitively presented. The user can quickly understand analysis results, such as drainage conditions of different areas, position distribution of sewage treatment plants and the like, through symbols, colors, legends and the like on the map. And secondly, the analysis result is displayed in a chart form, so that data comparison and trend analysis can be more conveniently carried out. The user can know the drainage conditions, coverage density and other information of different areas or different time periods through data indexes, trend lines and the like in the chart, so that more accurate decisions can be made. In addition, by visualizing the analysis results, the user can more efficiently identify problems and bottlenecks existing in the drainage system. For example, a region with a large drainage pressure can be quickly found out by thermodynamic diagrams, and the sewage discharge amounts of different drainage households can be compared by bar diagrams. This helps to find and solve problems in time, optimizing the efficiency of the operation of the drainage system.
The present invention may be further configured in a preferred example, the connectivity analysis includes:
Calculating a communication path between the starting and stopping pipeline points through a shortest path algorithm according to the starting and stopping pipeline points selected by a user;
And generating corresponding path line elements according to the calculated communication path, and adding the path line elements to the user operable layer.
By adopting the technical method, the communication path between the starting and stopping pipeline points is calculated through a shortest path algorithm according to the starting and stopping pipeline points selected by a user, corresponding path line elements are generated, and the path line elements are added to a user operable layer. Therefore, a user can intuitively check the connection condition of the pipelines, judge the association degree and the optimization space between different pipelines, and plan and manage the drainage system better. And secondly, the shortest path between the starting and stopping pipeline points can be automatically calculated through a shortest path algorithm, so that the workload of manual calculation is reduced, and the calculation precision and efficiency are improved. In addition, the user can select the starting and stopping pipeline points through simple operation instructions, so that connectivity analysis can be performed, complex setting and parameter adjustment are not needed, and the use threshold and the learning cost are greatly reduced. Finally, connectivity analysis is a very important function in intelligent drainage pipes, and can provide important reference information for decision makers. The urgency of the pipeline can be judged through the communication condition of the pipeline, and the pipeline which is improved preferentially is determined, so that the design and management of the drainage system are optimized.
The present invention may be further configured in a preferred example, wherein the upstream analysis includes:
Acquiring pipeline element information related to the pipe section or position information of a drainage user according to the pipe section or the drainage user selected by the user;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
Taking a pipe section or a drainage user selected by a user as a starting point, tracking the upstream gradually according to the topological network by tracking the topological relation until the source is reached or the upstream cannot be tracked any more;
and drawing arrows on the upstream pipe section according to the result obtained by upstream analysis, wherein the arrows represent the flow direction of water flow.
By adopting the technical method, firstly, a user can intuitively know the upstream source of water flow and judge the relationship and the optimization space between different pipelines, thereby planning and managing the drainage system better. And secondly, by establishing the topological relation of the pipeline elements, the information of the upstream pipeline section can be automatically calculated, the workload of manual calculation is reduced, and the calculation precision and efficiency are improved. In addition, the user can select the pipe section or the drainer through a simple operation instruction, so that upstream analysis can be performed, complicated setting and parameter adjustment are not needed, and the use threshold and the learning cost are greatly reduced. Finally, upstream analysis is a very important function in intelligent drainage, and can provide important reference information for decision makers. By the upstream source of the water flow, the degree of pollution of the drainage system can be judged, and the direction of the prior reconstruction pipeline and optimization measures can be determined, so that the design and management of the drainage system are optimized.
The present invention may be further configured in a preferred example, wherein the downstream analysis includes:
Acquiring pipeline element information related to the pipe section or position information of a drainage user according to the pipe section or the drainage user selected by the user;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
taking a pipe section or a drainage user selected by a user as a starting point, gradually tracking downstream according to the topological network by tracking the topological relation until the source is reached or the drainage user cannot track downstream any more;
and drawing arrows on the downstream pipe section according to the result obtained by downstream analysis, wherein the arrows represent the flow direction of water flow.
By adopting the technical method, firstly, a user can intuitively know the downstream flow direction of water flow and judge the relationship and the optimization space between different pipelines, thereby planning and managing the drainage system better. And secondly, by establishing the topological relation of the pipeline elements, the information of the downstream pipeline section can be automatically calculated, the workload of manual calculation is reduced, and the calculation precision and efficiency are improved. In addition, the user can select the pipe section or the drainage user through a simple operation instruction, so that downstream analysis can be performed, complicated setting and parameter adjustment are not needed, and the use threshold and the learning cost are greatly reduced. Finally, downstream analysis is a very important function in intelligent drainage, and can provide important reference information for decision makers. Through the downstream flow direction of the water flow, the drainage path and the influence range of the drainage system can be judged, and the reasonable position of a drainage point and the pipeline transformation direction can be determined, so that the design and management of the drainage system are optimized.
The present invention may be further configured in a preferred example, the buffer analysis includes:
Acquiring pipeline element information related to the pipeline section according to the pipeline section selected by the user;
Taking a pipe section selected by a user as a starting point, and acquiring a buffer area radius set by the user;
And calculating all pipe section information in the range of the buffer area around the pipe section selected by the user according to the set buffer area radius.
By adopting the technical method, firstly, a user can know the pipe section conditions in the range of the designated buffer zone, including which pipe sections, attribute information thereof and the like. Next, buffer analysis is a common method of spatial analysis, and spatial information about a given pipe segment can be obtained by calculating the buffer range around the pipe segment. This is important for drainage system planning and management, and can help users to know the spatial distribution, interrelationships, influence ranges among pipe sections, and the like, and provide references for decisions. In addition, by adopting the technical method, all pipe section information in the buffer area range around the pipe section can be automatically calculated, the workload of manual calculation is reduced, and the accuracy and the efficiency of calculation are improved. The final buffer analysis may provide important reference information to the decision maker. By knowing the pipe section conditions in the buffer area around the pipe section, the relationship and interaction between pipe sections can be determined, thereby guiding the management and optimization of the drainage system.
The present invention may be further configured in a preferred example, the flow direction analysis includes:
Acquiring pipeline element information of a pipeline layer according to the pipeline layer which is selected by a user and needs to be subjected to flow direction analysis;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
and calculating the flow direction information of each pipe section according to the topological relation, and drawing arrows to indicate the flow direction of water flow.
By adopting the technical method, firstly, a user can intuitively know the water flow direction of each pipe section and the path and direction of the water flow in the whole drainage system. And then, by analyzing the connection relation among the pipeline elements, establishing the topological relation of the pipeline elements, a complete topological network of the drainage system can be formed. This topology network may reflect the relationships between different pipe segments, including upstream-downstream relationships, adjacent relationships, and the like. Therefore, when the flow direction analysis is carried out, the flow direction of the water flow can be gradually tracked according to the topological relation, and the accuracy of the analysis result is ensured. In addition, by establishing the topological relation of the pipeline elements, the flow direction information of each pipe section can be automatically calculated, and arrows are drawn to indicate the flow direction of water flow. This reduces the amount of manual computation and improves the accuracy and efficiency of the computation. Finally, flow direction analysis is an important link of drainage system planning and management, and can provide important reference information for decision makers. By knowing the water flow direction of each pipe section, the water flow path and direction can be judged, the design and management of a drainage system are optimized, and the drainage efficiency and flood control capacity are improved.
The present invention may be further configured in a preferred example, the service area analysis includes:
acquiring a pipeline element layer selected by a user, wherein the pipeline element layer comprises a pipeline and a sewage treatment plant;
according to the radius of the buffer zone set by the user, calculating all pipe section information in the buffer zone range of each sewage treatment plant;
For each sewage treatment plant, calculating the service area of the sewage treatment plant according to the length of the pipe section contained in the sewage treatment plant and the length of the pipe section in the buffer zone range.
By adopting the technical method, firstly, a user can know the coverage area of each sewage treatment plant and evaluate the service capability of the sewage treatment plant. And secondly, calculating all pipe section information in the buffer area range of each sewage treatment plant according to the buffer area radius set by a user. The buffer zone is a zone which is centered on the sewage treatment plant and is analyzed within a certain radius. By means of buffer analysis, the area coverage serviced by the sewage treatment plant can be determined, and thus the pipeline coverage and service requirements in the area can be evaluated. In addition, the service area of each sewage treatment plant can be calculated according to the length of the pipe section contained in the sewage treatment plant and the length of the pipe section in the buffer zone range. Through service area calculation, the service range of each sewage treatment plant can be quantified, compared and evaluated. This helps to optimize the layout and planning of the sewage treatment plant to meet the sewage treatment requirements of different areas. The final service area analysis may provide important reference information for the decision maker. By knowing the size of the service area of each sewage treatment plant, the coverage and service capacity of the sewage treatment system can be assessed, providing support for planning new sewage treatment plants or improving existing sewage treatment facilities.
The invention also aims to provide a GIS-based intelligent drainage space analysis system which has the characteristics of supporting and referencing urban drainage management.
The second object of the present invention is achieved by the following technical solutions:
a GIS-based spatial analysis system for intelligent drainage, comprising:
the geographic range selection module is used for selecting a corresponding geographic range according to a geographic area required to be spatially analyzed, wherein the geographic range comprises a city and a neighborhood;
The geographic region data calling module is used for calling a geographic region background layer in the geographic region database, wherein the geographic region background layer contains geographic element information, and the geographic element information comprises roads and rivers;
the pipeline element data calling module is used for calling a pipeline element layer in the pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage user;
A user operable layer generation module for combining the geographic area background layer and the pipeline element layer to generate a user operable layer;
The space analysis execution module is used for executing corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis.
In summary, the present invention includes at least one of the following beneficial technical effects:
1. by adopting the technical scheme, the planning, design and management level of the drainage system can be improved, intelligent drainage management is realized, and urban drainage efficiency and environmental protection level are improved;
2. The visualized analysis result further improves the practicability and operability of the technical method, helps the user to better understand and utilize the space analysis result, and promotes the effective implementation of intelligent drainage management;
3. Through the implementation of connectivity analysis, users can be helped to better know the association degree and optimization space between pipelines, the efficiency and the precision of drainage system management are improved, and powerful support is provided for intelligent drainage management.
4. Through the realization of upstream analysis, the system can help users to better know upstream sources and relations of water flow, improves efficiency and precision of drainage system management, and provides powerful support for intelligent drainage management. Through the implementation of downstream analysis, users can be helped to better know the downstream flow direction and relationship of water flow, the efficiency and the precision of drainage system management are improved, and powerful support is provided for intelligent drainage management;
5. through the realization of buffer area analysis, users can be helped to know the pipe section conditions in the buffer area range around the pipe section, the space analysis and decision making are supported, and the management efficiency of a drainage system and the decision accuracy are improved;
6. Through the realization of flow direction analysis, users can be helped to know the flow direction of water flow of each pipe section, the topological relation of a drainage system is established, the automation degree of data processing is improved, and support is provided for decision making and drainage system management;
7. Through the realization of service area analysis, users can be helped to evaluate the service range and the capacity of the sewage treatment plant, the design and the planning of a sewage treatment system are optimized, and support is provided for decision making and sewage treatment management.
Drawings
FIG. 1 is a schematic flow chart of steps S1-S6 in a GIS-based intelligent drainage spatial analysis method according to an embodiment of the invention;
FIG. 2 is a schematic diagram showing a specific flow of step S5 in FIG. 1;
FIG. 3 is a schematic diagram showing a specific flow of step S505 in FIG. 2;
FIG. 4 is a schematic diagram illustrating a specific flow of step S506 in FIG. 2;
Fig. 5 is a schematic flowchart of step S507 in fig. 2;
FIG. 6 is a schematic diagram illustrating a specific flow of step S508 in FIG. 2;
Fig. 7 is a schematic diagram of a specific flow of step S509 in fig. 2;
fig. 8 is a schematic diagram illustrating a specific flow of step S510 in fig. 2.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to fig. 1 to 8 in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of a spatial analysis method for intelligent drainage based on GIS according to an embodiment of the present application includes steps S1-S6.
S1, selecting a corresponding geographic range according to a geographic area needing to be spatially analyzed, wherein the geographic range comprises a city and a neighborhood;
different geographical ranges may be selected depending on the geographical area in which the spatial analysis is desired. In practical implementation, the following method may be adopted:
The whole city is first selected as the geographic range for spatial analysis. The method is suitable for the situation that the whole urban drainage system needs to be planned, designed and managed. Urban areas may be determined using urban administrative demarcation layers or high-precision remote sensing image data.
And secondly, selecting the neighborhood as the geographic range of the spatial analysis. This method is applicable to situations where it is necessary to study and manage the drainage of a particular neighborhood. The neighborhood range may be determined using neighborhood boundary map layers or high-precision remote sensing image data.
In particular implementations, geographic scope may be selected in conjunction with specific requirements and available data resources. For example, in a city-level drainage system plan, the entire city may be selected as the analysis scope; in the design of the drainage pipe network of a specific block, the corresponding block needs to be selected as an analysis range.
S2, calling a geographical area background layer in a geographical area database, wherein the geographical area background layer contains geographical element information, and the geographical element information comprises roads and rivers;
The specific implementation mode is as follows:
First, a connection is established with a database of geographical areas. The connection may be implemented using a database connection library of a connection tool or programming language provided by a database management system.
And secondly, compiling a query sentence to acquire the geographic element information in the geographic area background layer. The query statement should be designed according to the table structure and attribute field of the database to obtain the information of specific elements such as roads and rivers.
The query statement is then executed and the query results are saved to a suitable data structure, such as a list, array, dictionary, or the like. The query results will contain attribute information and geometric information for the geographic elements.
The query results are also subjected to the necessary data processing for subsequent use. For example, geometric information of roads and rivers may be converted into spatial data types such as points, lines, or planes.
And finally, displaying the obtained geographic element information on a map. Geographic elements such as roads and rivers can be drawn by using a map drawing tool or geographic information system software and are visually displayed.
S3, calling a pipeline element layer in a pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage user;
the pipeline element layer to be called in the pipeline element database, including pipe sections, sewage treatment plants, drainage households and the like, can be implemented according to the following specific embodiments:
First a connection is established to a pipeline element database. The connection is made using a database connection library of a connection tool or programming language provided by the database management system.
And secondly, compiling a query statement to acquire target element information in the pipeline element layer. The query statement should be designed according to the database table structure and the attribute field to obtain the information of the specific elements such as the pipe section, the sewage treatment plant, the drainer, etc.
The query statement is then executed and the query results are saved to an appropriate data structure, such as a list, array, dictionary, or the like. The query results will contain attribute information and geometric information for the pipeline elements.
The query results are also subjected to the necessary data processing for subsequent use. For example, the geometric information of the pipe section may be converted into line elements, and the geometric information of the sewage treatment plant and the drainer may be converted into point elements.
And finally, displaying the acquired pipeline element information on a map. And drawing elements such as pipe sections, sewage treatment plants, drainage households and the like by using a map drawing tool or geographic information system software, and performing visual display.
S4, combining the geographical area background layer and the pipeline element layer to generate a user operable layer;
Combining the geographic area context layer and the pipeline element layer to generate a user operable layer may be performed according to the following embodiments:
First, the connection with the geographical area background layer database and the pipeline element layer database are respectively established. The connection is made using a database connection library of a connection tool or programming language provided by the database management system.
And secondly, compiling query sentences, and respectively acquiring target element information from a geographical area background layer and a pipeline element layer. The query statement should be designed according to the database table structure and the attribute field to obtain the required geographic element information.
The query statement is then executed and the query results are saved to an appropriate data structure, such as a list, array, dictionary, or the like. The query results will contain attribute information and geometric information for the geographic area context elements and pipeline elements.
The query results are also subjected to the necessary data processing for subsequent use. For example, geometric information of the geographic area context elements and pipeline elements may be converted into spatial data types, such as points, lines, or planes.
The geographical area background element and the pipeline element are then combined into one layer. The elements and attributes of the two layers may be combined using geographic data processing libraries of geographic information system software or programming language.
And finally, providing the generated image layer for a user to operate. The consolidated layers may be presented on the map using a mapping tool or geographic information system software and provide user operational functions such as zoom, pan, query attributes, etc.
S5, according to an operation instruction of a user, executing corresponding space analysis options to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis, and in the embodiment, the selected programming language is python as an example, referring to FIG. 2, and the method comprises the steps S501-S511;
s501, calculating the distance;
The user clicks on the "spatial analysis" menu in the intelligent drainage system main interface, and multiple spatial analysis options are visible. And the user clicks the distance calculation option, monitors a click event of the user on the operable layer interface, and acquires coordinate information of two points on the operable layer when the user clicks the two points.
By calling geopandas library and shapely library in Python to perform distance calculation, two Point objects are created, point 1=point (x 1, y 1), that is, coordinates of a first Point, point 2=point (x 2, y 2), that is, coordinates of a second Point, next, one GeoDataFrame is created, two Point objects are added to where points=gpd.geodataframe (geometry= [ Point1, point2 ]), and then a linear distance between the two points=points.distance (points.shift ()) is calculated.
And drawing a straight line mark on the map interface according to the calculated distance. A straight line may be drawn between two points using a mapping tool or mapping functionality provided by the geographic information system software. The linear distance labels are presented on a map interface for viewing by a user. The linear distance labels may be drawn on a map using a labeling function of the geographic information system software or a graphic drawing library of programming language.
S502, calculating the area;
when the user clicks an 'area calculation' option, to realize area calculation, the user draws a polygonal area in an operable layer, draws a left key, confirms a right key, calculates and marks the horizontal projection area of the polygonal area by the system, and performs area calculation by calling a matplotlib library and a geopandas library in Python according to the following specific embodiments:
Firstly, monitoring a mouse event of a user on an operable layer interface, and drawing a polygon on the operable layer when the user presses a left key. A mapping tool or a custom polygon rendering function may be used.
And secondly, when the user presses the right key, the system confirms the polygon area drawn by the user and acquires the vertex coordinate information of the polygon area.
Then firstly creating an empty geopandas GeoDataFrame object, then creating a matplotlib graph, acquiring polygon points drawn by a user, and secondly converting a coordinate system into Web Mokato projection: gdf = gdf.to_crs ("EPSG:3857"), the horizontal projected area of the polygonal region is finally calculated: projected _area=gdf.geometry.area.values [0].
To sum up, a graphical window is first created using matplotlib libraries and binding mouse click events and keyboard key events. When the user clicks the left mouse button, a red dot will be graphically drawn and added to the geometric column of geopandas GeoDataFrame objects. When the user presses the enter key, the program will disconnect the mouse click event and close the graphical window. Finally, the to_crs method is used to convert the coordinate system into a Web mercator projection and calculate the horizontal projection area of the polygonal area.
And finally, displaying the calculated area label on a map interface. Text labels may be drawn on a map using a labeling function of the geographic information system software or a graphic drawing library of programming language.
S503, analyzing the cross section;
To perform cross-sectional analysis, drawing a pipeline cross-sectional diagram and presenting pipeline cross-sectional information, this can be accomplished using the matplotlib library in Python, according to the following detailed description:
Spatial data and attribute information of a pipeline are first acquired. Such data may be from a pipeline element database, CAD files, remote sensing images, etc.
Definition of pipeline cross section information (example data):
pipe_diameter= [0.5, 0.6, 0.7, 0.8, 0.9] # pipe diameter (unit: meter)
Pipe_depth= [2, 3, 4, 3.5, 2.5] # pipeline depth (unit: meters)
And then converting the pipeline data into a format meeting the drawing requirements according to the pipeline data. The data processing may be performed using geographic information system software or a graphic library of programming languages, such as extracting coordinate points of the pipeline, calculating geometry of the pipeline, and the like.
Furthermore, an interactive canvas is created in the drawing interface for drawing the pipeline cross section. The curve is drawn by calling the ax.plot function and the coordinate axis label and chart title are set using ax.set_ xlabel, ax.set_ ylabel, and ax.set_title:
Plot (pipe_diameter, ' pipe_depth, ' b- ') # draws a cross-sectional curve of the pipeline
Ax_ xlabel (' pipe diameter (m))
Ax_ ylabel (' pipeline depth (m))
Set title ('cross-sectional view of pipeline')
The cross-sectional information is then presented in combination with pipeline attributes. The cross-section view can be marked with relevant information such as pipeline diameter, material, flow and the like according to different pipeline attributes. The attribute information may be presented using text labels, color coding, or the like.
Finally, interactive functions are provided for the user, such as selecting a particular pipeline for cross-sectional analysis, scaling and translating cross-sectional views, deriving cross-sectional data, etc.
S504, analyzing a vertical section;
for profile analysis, a line was selected and its profile was analyzed, using the numpy and matplotlib libraries in Python, according to the following embodiments:
Spatial data and attribute information for a selected pipeline is first acquired. Such data may be from a pipeline element database, CAD files, remote sensing images, etc. These data were read using geopandas libraries.
And secondly, acquiring elevation data along the selected pipeline. Digital Elevation Model (DEM) data, measurement data, or other elevation data sources may be used.
Example data:
Pipeline distance (meters): distance= [100, 200, 300, 400, 500]
Elevation (meter): eleration= [10, 12, 15, 14, 11]
In addition, the pipeline data is converted into a format meeting analysis requirements according to the selected pipeline data. The data processing may be performed using geographic information system software or a graphic library of programming languages, such as extracting coordinate points of the pipeline, calculating geometry of the pipeline, and the like.
An interactable canvas is then created in the drawing interface for drawing a longitudinal section view of the pipeline. Longitudinal section maps were drawn using matplotlib library:
ax1.plot (distance, 'b-', label= 'elevation')
Ax1.set_ xlabel (' distance (m))
Ax1_ ylabel (' elevation (meter))
Where the x-axis represents distance (in meters) and the y-axis represents elevation (in meters).
Further, the vertical profile characteristics of the selected pipeline are analyzed based on elevation data. Parameters such as gradient, elevation change and the like along the pipeline can be calculated and displayed in a longitudinal section view.
Calculating the gradient along the pipeline: slope=np. Gradient (distance)
Calculating elevation change: eleration_change=np. Diff (eleration)
Drawing a gradient curve:
ax2.plot (distance, 'r-', label= 'gradient')
Ax2.set_ ylabel (' grade (unit: elevation/distance))
And drawing a height change bar chart:
ax2.bar (distance [: -1], elevation_change, width=50, alignment= 'edge', alpha=0.5, label= 'elevation change')
ax2.legend(loc='upper right')
And finally, combining and displaying the vertical section analysis result and pipeline attribute information. According to different pipeline attributes, the longitudinal section diagram can be marked with related information such as pipeline materials, diameters, burial depths and the like. The attribute information may be presented using text labels, color coding, or the like.
In summary, the slope (slope) and elevation change (elevation_change) along the pipeline were calculated using the numpy library. Finally, a library matplotlib was used to map the longitudinal section, including elevation curves, slope curves, and elevation change histograms.
Finally, interactive functions are provided for the user, such as selecting a particular pipeline for profile analysis, scaling and translating the profile map, deriving profile data, and the like.
S505, connectivity analysis, referring to FIG. 3, including steps S5051-S5052;
S5051, calculating a communication path between the starting and stopping pipeline points through a shortest path algorithm according to the starting and stopping pipeline points selected by a user;
The networkx library of Python can be used to process and analyze data, according to the following embodiments:
Spatial data and attribute information of a pipeline network are first acquired. Such data may be from a pipeline element database, CAD files, remote sensing images, etc.
And then converting the pipeline network data into a format meeting analysis requirements according to the pipeline network data. The data processing may be performed using geographic information system software or a graphic library of programming languages, such as extracting topological relationships of the pipeline, calculating geometry of the pipeline, and the like.
In addition, the user selects a start pipeline point and an end pipeline point in the graphical interface. An interactive interface may be utilized to allow a user to select a desired starting point from a network of visualized pipes.
Example data:
pipe_data = [
{'from_node':'A','to_node':'B','length': 100},
{'from_node':'B','to_node':'C','length': 200},
{'from_node':'C','to_node':'D','length': 150},
{'from_node':'D','to_node':'E','length': 120},
{'from_node':'E','to_node':'F','length': 180},
{'from_node':'F','to_node':'G','length': 160},
{'from_node':'G','to_node':'H','length': 140},
{'from_node':'H','to_node':'I','length': 130},
{'from_node':'I','to_node':'J','length': 110},
{'from_node':'J','to_node':'K','length': 90}
]
wherein A is the starting pipeline point: start_node= 'a', K is the termination pipeline point: end_node= 'K'.
And finally, calculating the shortest path:
First a directed graph G is created: g=nx.digraph (), and adds nodes and edges according to pipeline data: add_edge (pipe [ 'from_node' ], pipe [ 'to_node' ], weight=pipe [ 'length' ]). Each edge carries a weight value representing the length of the pipeline.
The shortest path algorithm functions shortest _path and shortest _path_length provided by the networkx library are then used to calculate the shortest path and path length between the start and stop pipeline points:
shortest_path = nx.shortest_path(G, start_node, end_node, weight='weight')
path_length = nx.shortest_path_length(G, start_node, end_node, weight='weight')
if a communication path exists, printing out the path and the path length; otherwise, the communication path is not prompted.
S5052, generating corresponding route line elements according to the calculated communication route, and adding the route line elements to the user operable layer.
Can be carried out according to the following specific embodiments:
Firstly, corresponding route line elements are generated according to the calculated shortest route. The path line elements may be generated from the path coordinate information using geographic information system software or a graphic library of programming language. The route line element may include information such as a start point, an inflection point, and the like.
And secondly, adding the generated path line elements into a user operable layer. The path line elements may be added to the layer using functions provided by geographic information system software or a graphic library of programming languages. Information such as layer names and element attributes needs to be specified during addition.
The generated route line elements are also displayed in the user operable layer. The path line elements may be drawn in the user operable layer using drawing functions provided by geographic information system software or a graphic library of programming languages. Different patterns of line type, color, etc. may be set according to element attributes.
Finally, interactive functions are provided for the user, such as selecting different starting and ending points for connectivity analysis, zooming and translating pipeline network diagrams, deriving communication path data and the like.
S506, upstream analysis, referring to FIG. 4, including steps S5061-S5064;
S5061, acquiring pipeline element information related to the pipe section or position information of a drainage user according to the pipe section or the drainage user selected by the user;
The acquiring of pipeline element information related to a pipe section or position information of a drainage user can use a query method in ARCGIS API for Python to query element information in a layer, and can be performed according to the following specific embodiments:
Firstly, spatial data and attribute information of a pipeline network and position information of a drainage user are acquired. Such data may be from a pipeline element database, CAD files, remote sensing images, etc.
And secondly, the user selects a pipe section or a drainer to be subjected to upstream analysis in the graphical interface. An interactive interface may be utilized to allow a user to select a desired object from a visual pipeline network or drainage user location map.
Example data of unique identification value of user selected pipe section or drain: selected_feature_id= "< selected_feature_id >, then a query condition is defined: query=f "object= '{ selected_feature_id }'".
In addition, according to the pipe section selected by the user, the pipeline element information related to the pipe section is acquired. Corresponding pipeline elements can be queried in the pipeline network data according to the unique identifier or attribute information of the pipeline segment. Examples: pipe_features=layer.query (where=query). Features.
And finally, acquiring the position information of the drainage user according to the user selection. The corresponding position coordinates can be queried in the drainage user position data according to the unique identifier or attribute information of the drainage user. Examples: drainage_features=layer.query (where=query). Features.
S5062, establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
can be carried out according to the following specific embodiments:
First, according to the nature and business requirement of the pipeline network, the topology rule is determined. For example, the connection between pipeline elements is determined, such as connection between nodes through lines, connection between nodes through endpoints, and so on.
And secondly, establishing a topological relation in pipeline elements according to the topological rule. Pipeline elements may be topologically connected using functions provided by geographic information system software or a graphic library of programming languages.
And finally, verifying the established topological relation to ensure the correctness of the topological network. Topology analysis tools can be used to check if there are overlay, break, loop, etc. topology errors and repair them.
S5063, taking a pipe section or a drainage user selected by a user as a starting point, tracking the topological relation gradually and upstream according to a topological network until the source is reached or the drainage user cannot track the topological relation;
To track upstream in a topology network step-by-step, a trace method in ARCGIS API for Python may be used to perform a topology network tracking operation, which is performed according to the following embodiments:
First, a starting point is determined according to a user's selection. An interactive interface may be utilized to allow a user to select a desired object from a visual pipeline network or drainage user location map.
Example data for a user selected pipe segment or drain unique identifier: selected_feature_id= "< selected_feature_id >".
And secondly, acquiring pipeline elements connected with the pipeline elements according to the starting point. The corresponding pipeline elements can be queried in the topology network data according to the unique identifier or attribute information of the starting point. The selected element is obtained using the query method based on a user selected pipe segment or drain unique identifier (selected_feature_id). By setting the query conditions in the where parameter, the query result can be defined as an element that matches the OBJECTID of the selected element, and the index [0] can be used to obtain the first matching element.
And further follow up upstream in turn, looking up upstream pipeline elements that are connected to the current pipeline element. Firstly, constructing tracking parameters, and transmitting the tracking parameters to a trace method to execute topology network tracking operation. We specify the trace type as "upstream", representing upstream traces from the selected element; the starting point is the geometry of the selected element; the output name is "trace_result".
The pipeline elements passed through are then recorded during the tracking process to form a path. The data structures such as an array or a linked list can be utilized to record the important information such as the passing pipeline elements, the tracking direction and the tracking distance.
Tracking ends when the source is reached or cannot be tracked up any more. The tracking result, including information such as path and distance, can be output according to the service requirement.
S5064, drawing arrows on the upstream pipe section according to the result of upstream analysis, wherein the arrows represent the flow direction of water flow.
To plot arrows on the upstream pipe segment to represent the flow direction of the water flow, the element set may be created and updated using classes FeatureSet and FeatureLayerCollection in ARCGIS API for Python, according to the following detailed description:
An empty element set, features, is first created and the upstream analysis results (i.e., upstream pipe segments) are traversed, creating elements for each upstream pipe segment that start and end points. The Polyline class is used to create the geometry of the pipe segment and the Point class is used to create the geometry of the start and end points. Next, the elements of each start and end point are added to the features list. The element set is then combined with the spatial reference (SPATIAL REFERENCE) using the FeatureSet classes. Finally, the element set is updated into the layer by the manager.
The symbolized pipeline elements are then rendered into a map layer. The method can select proper parameters such as color, line type, transparency and the like according to service requirements, so that the arrows are clearly visible in the map without influencing the display of other layers.
And finally, outputting the map symbolized by the arrow according to the service requirement. The map can be stored as a picture file or a layer file in a geographic information system database, so that subsequent query and analysis operations are convenient.
S507, downstream analysis, referring to FIG. 5, including steps S5071-S5074;
S5071, acquiring pipeline element information related to a pipe section or position information of a drainage user according to the pipe section or the drainage user selected by a user;
In the embodiment of the present application, step S5071 is similar to step S5061 described above, and is not repeated here.
S5072, establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
in the embodiment of the present application, step S5072 is similar to step S5062 described above, and is not repeated here.
S5073, taking a pipe section or a drainage user selected by a user as a starting point, tracking the pipe section or the drainage user gradually downstream according to a topological network by tracking the topological relation until the source is reached or the drainage user cannot track the pipe section or the drainage user downwards;
to track down the topology network step by step, the trace method in ARCGIS API for Python may be used to perform the topology network tracking operation, which is performed according to the following embodiments:
First, a starting point is determined according to a user's selection. An interactive interface may be utilized to allow a user to select a desired object from a visual pipeline network or drainage user location map. Example data for a user selected pipe segment or drain unique identifier: selected_feature_id= "< selected_feature_id >".
And secondly, acquiring pipeline elements connected with the pipeline elements according to the starting point. The corresponding pipeline elements can be queried in the topology network data according to the unique identifier or attribute information of the starting point. The selected element is obtained using the query method based on a user selected pipe segment or drain unique identifier (selected_feature_id). By setting the query conditions in the where parameter, the query result can be defined as an element that matches the OBJECTID of the selected element, and the index [0] can be used to obtain the first matching element.
Further, downstream trace is sequentially performed to find a downstream pipeline element connected to the current pipeline element. Firstly, constructing tracking parameters, and transmitting the tracking parameters to a trace method to execute topology network tracking operation. We designate the tracking type as "dpwnstream" representing tracking downstream from the selected element; the starting point is the geometry of the selected element; the output name is "trace_result".
The pipeline elements passed through are recorded in the tracking process to form a path. The data structures such as an array or a linked list can be utilized to record the important information such as the passing pipeline elements, the tracking direction and the tracking distance.
Tracking ends when the source is reached or cannot be tracked further down. The tracking result, including information such as path and distance, can be output according to the service requirement.
S5074, drawing arrows on the downstream pipe section according to the result of downstream analysis, wherein the arrows represent the flow direction of water flow.
To plot arrows on downstream pipe segments to represent the flow direction of the water flow, the element sets may be created and updated using classes FeatureSet and FeatureLayerCollection in ARCGIS API for Python, according to the following detailed description:
An empty element set, features, is first created and the downstream analysis results (i.e., downstream pipe segments) are traversed, creating elements for each downstream pipe segment that start and end points. The Polyline class is used to create the geometry of the pipe segment and the Point class is used to create the geometry of the start and end points. Next, the elements of each start and end point are added to the features list. The element set is then combined with the spatial reference (SPATIAL REFERENCE) using the FeatureSet classes. Finally, the element set is updated into the layer by the manager.
And rendering the symbolized pipeline elements into a map layer. The method can select proper parameters such as color, line type, transparency and the like according to service requirements, so that the arrows are clearly visible in the map without influencing the display of other layers.
And finally, outputting the map symbolized by the arrow according to the service requirement. The map can be stored as a picture file or a layer file in a geographic information system database, so that subsequent query and analysis operations are convenient.
S508, buffer analysis, referring to FIG. 6, including steps S5081-S5083;
s5081, acquiring pipeline element information related to a pipeline section according to the pipeline section selected by a user;
can be carried out according to the following specific embodiments:
first, in the operational layer, the user clicks on the desired pipe segment from the visualized pipe network. The pipe section selected by the user is determined by the user's input or click operation.
And secondly, according to the pipe section selected by the user, acquiring pipeline element information related to the pipe section by inquiring a database or reading a corresponding data file. Such information includes pipe segment attribute data, geometry, start and end coordinates, and the like.
S5082, taking a pipe section selected by a user as a starting point, and acquiring a buffer area radius set by the user;
And interacting with a user, and acquiring the buffer area radius set by the user. An input box or slider may be provided for the user to enter or select the appropriate value as the buffer radius.
S5083, calculating all pipe section information in the range of the buffer area around the pipe section selected by the user according to the set buffer area radius.
To implement buffer analysis, the buffer () function and the query () function in ARCGIS API for Python may be used to calculate all pipe segment information in the buffer range around the pipe segment selected by the user, according to the following detailed description:
The space geometry information of the pipe section selected by the user is firstly obtained by taking the unique identifier (such as OBJECTID) of the pipe section as a query condition.
Secondly, a buffer parameter buffer_params is constructed, wherein the buffer parameter buffer_params comprises information such as buffer radius, space reference and the like.
Then, buffer analysis is performed using the buffer () function, resulting in spatial geometry information of the buffer.
Next, a query parameter query_parameters is constructed, specifying information such as spatial geometric range, spatial relationship, and return field to be queried.
In addition, a query is performed using the query () function, resulting in all pipe segment information within the buffer.
Finally, pipe segment elements (features) in the query result are extracted, and their OBJECTID and Type are output.
Based on the analysis results, the geometry within the buffer is processed and extracted, such as clipping, merging, deduplication, etc., to generate a final buffer range.
And applying the calculated buffer area range to pipe section space inquiry. And screening all pipe sections positioned in the buffer area or intersected with the buffer area according to the spatial relation (such as intersection, inclusion and the like) between the buffer area range and other pipe sections.
S509, flow direction analysis, referring to FIG. 7, comprising steps S5091-S5093;
S5091, a piping layer for carrying out flow direction analysis according to the requirement selected by a user, and acquiring pipeline element information of the piping layer;
The following are specific embodiments:
first, it is necessary to acquire piping layer data selected by a user to be subjected to flow direction analysis. This may be by the geographic information system software or programming language reading the corresponding data file or by the interface retrieving remote data.
And extracting pipeline element information from the selected pipeline layer data. This may be done by means of a function provided by the geographic information system software, a library of programming languages, or a database query, etc.
S5092, establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
in the embodiment of the present application, step S5092 is similar to step S5062 described above, and is not repeated here.
S5093, calculating flow direction information of each pipe section according to the topological relation, and drawing arrows to indicate the flow direction of water flow.
Firstly, calculating flow direction information of each pipe section according to a topological relation and drawing arrows to indicate the flow direction of water flow, tracking operation can be performed by using trace () functions and FeatureSet classes provided in ARCGIS API for Python, and the method is realized by combining rendering and symbolizing functions in ArcGIS Pro, and the specific implementation modes are as follows:
Next, a trace parameter trace_params is constructed. For example, the option starts tracking from all starting points and tracks downstream.
Next, a trace operation is performed using the trace () function, and a set of elements in the trace result is extracted (FeatureSet).
The element set of tracking results is then added to the user operable layer.
Finally, arrow symbolization is provided so that the arrows indicate the flow direction of the water flow when viewed on the user operable layer.
S510, analyzing service area, referring to FIG. 8, comprising steps S5101-S5103;
S5101, acquiring a pipeline element layer selected by a user, wherein the pipeline element layer comprises a pipeline and a sewage treatment plant;
Pipeline element layer data including location and attribute information of pipelines and sewage treatment plants needs to be prepared. The data may be imported into the geographic information system software or processed using a programming language.
S5102, calculating all pipe section information in the buffer area range of each sewage treatment plant according to the buffer area radius set by a user;
Firstly, calculating all pipe section information in the buffer area range of each sewage treatment plant, and carrying out space query and analysis by using an ArcGIS library of Python, wherein the specific implementation mode is as follows:
Secondly, setting the radius (in meters) of the buffer area, and inquiring the buffer area of each sewage treatment plant. By using sewer _play_layer.query () function, the buffer can be queried according to specified conditions and distances, and the query result will contain buffer geometry information.
Next, a spatial query is performed for each sewage treatment plant buffer to obtain all pipe segments within the buffer. By using sewer _pipeline_layer.query () function, a geometric filter can be specified, thereby restricting the query results within the buffer.
The query result is then added to an empty FeatureSet for subsequent processing or storage.
Finally, the pipeline_window_buffer_ featureset object may be used for further data processing, such as extracting attributes or performing other analysis operations. And extracting attribute information of all pipe sections in the buffer area. The length, type, sewage treatment plant and other information of the pipe section can be extracted and stored in a pipe section information table.
S5103, for each sewage treatment plant, calculating the service area of the sewage treatment plant according to the pipe section length contained in the sewage treatment plant and the pipe section length in the buffer zone range.
To calculate the service area of each sewage treatment plant, the ArcGIS library of Python can be used for space query and analysis, and the specific implementation modes are as follows:
First, a length calculation is performed for a pipe section included in each sewage treatment plant. And screening pipe sections associated with the sewage treatment plant according to the attribute information of the sewage treatment plant, calculating the total length of the pipe sections, and adding the attribute information of the sewage treatment plant and the pipe section length into one FeatureSet.
And finally, calculating the service area of the sewage treatment plant, namely summing the areas of all buffer areas.
S511, coverage density analysis;
According to the position of the operable layer clicked by the user, displaying the sewage pipe network coverage density analysis of the administered area, and carrying out the sewage pipe network coverage density analysis of the administered area by using density tools in an ArcGIS library and SPATIAL ANALYST expansion modules according to the following specific steps:
First, geographical data including sewage networks and areas under jurisdiction need to be prepared. The data may include pipe segment data of a sewage network and boundary data of a administered area. And import this data into the geographic information system software or process it using a programming language.
Next, the user clicks on a location on the operable layer to determine the selected analysis region. And (3) demarcating the area in a certain range around the user according to the clicking position of the user to form an area to be analyzed. And creates a dot element from the location clicked by the user and adds it to the temporary layer.
The sewage network coverage density analysis is performed using a calculate_density function. In this function, an input layer is designated as a temporary layer, an output result name, a boundary polygon layer as a sewage piping layer, a calculation method as planar calculation, a cell size, an analysis radius, a pixel type, and an output type.
And S6, visualizing the result of the spatial analysis, and displaying in a map and chart form.
The following embodiments are possible:
Firstly, using geographic information system software to superimpose the analysis result on a map, and setting different symbols, colors, sizes and the like according to different attributes so as to intuitively display the analysis result. For example, sewage treatment plants and drainage users can be represented by different symbols, pipe sections can be represented by different colors, and different widths can be set according to the flow rate. Meanwhile, labeling information such as place names, road names and the like can be added to the map, so that the map is clearer.
And secondly, generating a chart, such as a bar chart, a pie chart and the like, from the analysis result so as to more intuitively display the analysis result. For example, the water discharge amount in different areas may be represented by a bar graph, the contribution rate of different pollution sources may be represented by a pie graph, and the like. These charts can be designed and customized as desired to make the data more readable and interpretable.
In addition, the interactive function of the geographic information system software is utilized to combine the map and the chart, so that the functions of interactive browsing and inquiring analysis results of users are provided. For example, the user may click on different elements on the map, displaying their associated attribute information and analysis results. Meanwhile, the user can screen and filter the data according to the own requirements so as to better understand and analyze the data.
The implementation principle of the embodiment is as follows:
Firstly, a user selects a geographical area needing spatial analysis, namely, a corresponding geographical range is selected, secondly, a geographical area background layer in a geographical area database and a pipeline element layer in a pipeline element database are called, the geographical area background layer and the pipeline element layer are combined to generate a user operable layer, an operation instruction of the user is monitored, corresponding spatial analysis options are executed, and a spatial analysis result is obtained. Spatial analysis options include distance measurement, area measurement, cross section analysis, profile analysis, connectivity analysis, upstream analysis, downstream analysis, buffer analysis, flow direction analysis, service area analysis, coverage density analysis.
The embodiment of the application also provides a space analysis system of the intelligent drainage based on the GIS, which comprises a geographic range selection module, a geographic area data calling module, a pipeline element data calling module, a user operable layer generation module and a space analysis execution module.
The geographic range selection module is used for selecting a corresponding geographic range according to a geographic region needing to be spatially analyzed, wherein the geographic range comprises a city and a neighborhood;
the geographic region data calling module is used for calling a geographic region background layer in the geographic region database, wherein the geographic region background layer contains geographic element information, and the geographic element information comprises roads and rivers;
The pipeline element data calling module is used for calling a pipeline element layer in the pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage user;
the user operable layer generation module is used for combining the geographical area background layer and the pipeline element layer to generate a user operable layer;
The space analysis execution module is used for executing corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis.
In this embodiment, the geographic range selecting module is configured to select a geographic range and transmit geographic range data to the geographic area data calling module; the geographic area data calling module is used for calling a geographic area background layer in the geographic area database and transmitting the geographic area background layer to the user operable layer generating module; the pipeline element data calling module is used for calling a pipeline element layer in the pipeline element database and transmitting the pipeline element layer to the user operable layer generating module; the user operable layer generation module combines the geographical area background layer and the pipeline element layer to generate a user operable layer, and transmits the user operable layer to the spatial analysis execution module; and the space analysis execution module executes corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result.
In one possible embodiment, a spatial analysis system for intelligent drainage based on GIS further comprises: and the result visualization module is used for visualizing the result of the spatial analysis and displaying the result in the form of a map and a chart. The space analysis execution module comprises a distance calculation unit, an area calculation unit, a cross section analysis unit, a vertical section analysis unit, a connectivity analysis unit, an upstream analysis unit, a downstream analysis unit, a buffer area analysis unit, a flow direction analysis unit, a service area analysis unit and a coverage density analysis unit.
It should be noted that: in the device provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the embodiments of the apparatus and the method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the embodiments of the method are detailed in the method embodiments, which are not repeated herein.
The embodiment of the application provides a space analysis system for intelligent drainage based on GIS. The spatial analysis system of GIS-based intelligent drainage may include: at least one processor, at least one network interface, a user interface, a memory, at least one communication bus.
The processor is configured to invoke a spatial analysis method of GIS-based smart drainage stored in the memory, which when executed by the one or more processors, causes a spatial analysis system of GIS-based smart drainage to perform the method as described in one or more of the embodiments above.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the spatial analysis method of intelligent drainage based on GIS in the above embodiment, and in order to avoid repetition, the description is omitted here.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
The present embodiment is only for explanation of the present invention and is not to be construed as limiting the present invention, and modifications to the present embodiment, which may not creatively contribute to the present invention as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present invention.

Claims (10)

1. The space analysis method of the intelligent drainage based on the GIS is characterized by comprising the following steps of:
Selecting a corresponding geographic range according to a geographic area needing space analysis, wherein the geographic range comprises a city and a neighborhood;
Invoking a geographic area background layer in a geographic area database, wherein the geographic area background layer contains geographic element information, and the geographic element information comprises roads and rivers;
Calling a pipeline element layer in a pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage household;
combining the geographical area background layer and the pipeline element layer to generate a user operable layer;
And executing corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis.
2. The method according to claim 1, wherein the method further comprises:
the results of the spatial analysis are visualized and presented in the form of maps and charts.
3. The method of claim 1, wherein the connectivity analysis comprises:
Calculating a communication path between the starting and stopping pipeline points through a shortest path algorithm according to the starting and stopping pipeline points selected by a user;
And generating corresponding path line elements according to the calculated communication path, and adding the path line elements to the user operable layer.
4. The method of claim 1, wherein the upstream analysis comprises:
Acquiring pipeline element information related to the pipe section or position information of a drainage user according to the pipe section or the drainage user selected by the user;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
Taking a pipe section or a drainage user selected by a user as a starting point, tracking the upstream gradually according to the topological network by tracking the topological relation until the source is reached or the upstream cannot be tracked any more;
and drawing arrows on the upstream pipe section according to the result obtained by upstream analysis, wherein the arrows represent the flow direction of water flow.
5. The method of claim 1, wherein the downstream analysis comprises:
Acquiring pipeline element information related to the pipe section or position information of a drainage user according to the pipe section or the drainage user selected by the user;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
taking a pipe section or a drainage user selected by a user as a starting point, gradually tracking downstream according to the topological network by tracking the topological relation until the source is reached or the drainage user cannot track downstream any more;
and drawing arrows on the downstream pipe section according to the result obtained by downstream analysis, wherein the arrows represent the flow direction of water flow.
6. The method of claim 1, wherein the buffer analysis comprises:
Acquiring pipeline element information related to the pipeline section according to the pipeline section selected by the user;
Taking a pipe section selected by a user as a starting point, and acquiring a buffer area radius set by the user;
And calculating all pipe section information in the range of the buffer area around the pipe section selected by the user according to the set buffer area radius.
7. The method of claim 1, wherein the flow direction analysis comprises:
Acquiring pipeline element information of a pipeline layer according to the pipeline layer which is selected by a user and needs to be subjected to flow direction analysis;
Establishing a topological relation of pipeline elements according to the connection relation between the pipeline elements to form a topological network;
and calculating the flow direction information of each pipe section according to the topological relation, and drawing arrows to indicate the flow direction of water flow.
8. The method of claim 1, wherein the service area analysis comprises:
acquiring a pipeline element layer selected by a user, wherein the pipeline element layer comprises a pipeline and a sewage treatment plant;
according to the radius of the buffer zone set by the user, calculating all pipe section information in the buffer zone range of each sewage treatment plant;
For each sewage treatment plant, calculating the service area of the sewage treatment plant according to the length of the pipe section contained in the sewage treatment plant and the length of the pipe section in the buffer zone range.
9. A spatial analysis system for intelligent drainage based on GIS, comprising:
the geographic range selection module is used for selecting a corresponding geographic range according to a geographic area required to be spatially analyzed, wherein the geographic range comprises a city and a neighborhood;
The geographic region data calling module is used for calling a geographic region background layer in the geographic region database, wherein the geographic region background layer contains geographic element information, and the geographic element information comprises roads and rivers;
the pipeline element data calling module is used for calling a pipeline element layer in the pipeline element database, wherein the pipeline element layer comprises a pipeline section, a sewage treatment plant and a drainage user;
A user operable layer generation module for combining the geographic area background layer and the pipeline element layer to generate a user operable layer;
The space analysis execution module is used for executing corresponding space analysis options according to the operation instruction of the user to obtain a space analysis result, wherein the space analysis options comprise distance calculation, area calculation, cross section analysis, vertical section analysis, connectivity analysis, upstream analysis, downstream analysis, buffer area analysis, flow direction analysis, service area analysis and coverage density analysis.
10. The system of claim 9, wherein the system further comprises:
and the result visualization module is used for visualizing the result of the spatial analysis and displaying the result in the form of a map and a chart.
CN202410164543.0A 2024-02-05 2024-02-05 GIS-based intelligent drainage space analysis method and system Pending CN117952778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410164543.0A CN117952778A (en) 2024-02-05 2024-02-05 GIS-based intelligent drainage space analysis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410164543.0A CN117952778A (en) 2024-02-05 2024-02-05 GIS-based intelligent drainage space analysis method and system

Publications (1)

Publication Number Publication Date
CN117952778A true CN117952778A (en) 2024-04-30

Family

ID=90794305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410164543.0A Pending CN117952778A (en) 2024-02-05 2024-02-05 GIS-based intelligent drainage space analysis method and system

Country Status (1)

Country Link
CN (1) CN117952778A (en)

Similar Documents

Publication Publication Date Title
Zhu et al. BIM/GIS data integration from the perspective of information flow
US20190301963A1 (en) Processing data for predicting pipe failure
Bansal Use of GIS and topology in the identification and resolution of space conflicts
CN111639408B (en) AR technology-based urban pipe network pipeline 3D model display method and system
CN105550758A (en) GIS-based underground pipeline operation and maintenance system
Bansal Use of GIS to consider spatial aspects in construction planning process
CN105320811A (en) Method for establishing topological connected model of urban underground electricity pipe network
Bansal et al. Generating, evaluating, and visualizing construction schedule with geographic information systems
CN110929363B (en) Communication line investigation design method and system
Bansal Integrated framework of BIM and GIS applications to support building lifecycle: A move toward nD modeling
CN109726259A (en) A kind of waste pipe-network design optimization system and method based on GIS technology
KR101846294B1 (en) Rainfall center tracking method based on weather radar
Balogun et al. Geovisualization of sub-surface pipelines: a 3D approach
CN117952778A (en) GIS-based intelligent drainage space analysis method and system
Patel et al. A review of _urban water networks management using GIS
de Lange Geoinformation Systems
Katti et al. Design of Sanitary Sewer Network using Sewer GEMS V8i Software
JP6568989B1 (en) Fixed asset management system
Slongo et al. The IFC file format as a means of integrating BIM and GIS: the case of the management and maintenance of underground networks
Zheng Hydraulic fabric: an information framework for river channel cross section data
Kherde et al. Integrating Geographical Information Systems (GIS) with Hydrological Modelling—Applicability and Limitations
CN109145437A (en) A kind of management method of underground utilities, system, equipment and readable storage medium storing program for executing
Bel-Ghaddar et al. Combining model-driven engineering and sewerage networks: towards a generic representation
Jnana et al. Web GIS-Based Water Distribution Network Management using Google Maps
Sürücü BIM for infrastructure: A spatial perspective to utility network management using BIM applications

Legal Events

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