CN117196542B - City gas pipe network topology integrity checking method, device, equipment and medium - Google Patents

City gas pipe network topology integrity checking method, device, equipment and medium Download PDF

Info

Publication number
CN117196542B
CN117196542B CN202311461732.6A CN202311461732A CN117196542B CN 117196542 B CN117196542 B CN 117196542B CN 202311461732 A CN202311461732 A CN 202311461732A CN 117196542 B CN117196542 B CN 117196542B
Authority
CN
China
Prior art keywords
data
pipeline
node
checking
isolated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311461732.6A
Other languages
Chinese (zh)
Other versions
CN117196542A (en
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.)
Shanghai Three Zero Four Zero Technology Co ltd
Original Assignee
Shanghai Three Zero Four Zero 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 Shanghai Three Zero Four Zero Technology Co ltd filed Critical Shanghai Three Zero Four Zero Technology Co ltd
Priority to CN202311461732.6A priority Critical patent/CN117196542B/en
Publication of CN117196542A publication Critical patent/CN117196542A/en
Application granted granted Critical
Publication of CN117196542B publication Critical patent/CN117196542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for checking the topological integrity of an urban gas pipe network, which relate to the technical field of urban gas pipe network data checking and comprise the following steps: acquiring the pipe network topology of a target urban gas pipe network, and node data and pipeline data in the pipe network topology; checking node data, pipeline data, topological areas constructed by the node data and the pipeline data in the pipeline topology according to preset topology checking conditions, and respectively acquiring isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological areas; and generating an integrity check list aiming at the network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas network topology. By locating the inspection in all aspects from node to pipe to area in the pipe network topology, the probability of missed inspection can be reduced while avoiding duplicate inspection.

Description

City gas pipe network topology integrity checking method, device, equipment and medium
Technical Field
The invention relates to the technical field of urban gas pipe network data inspection, in particular to an urban gas pipe network topology integrity inspection method, an urban gas pipe network topology integrity inspection device, urban gas pipe network topology integrity inspection equipment and medium.
Background
The urban gas pipe network, the pipeline and the auxiliary facilities have strong concealment and high safety, and meanwhile, the pipe network terminal is connected with tens of thousands of nodes such as gas sources, users, voltage regulating stations, valve wells, plugs, ball valves and the like, so that the urban gas pipe network is huge and complex; with the wide application of the geographic information system GIS (Geographic Information Systems, geographic information system) in the urban gas field, the complex topological structure causes certain deviation between pipe network and pipeline data and real GIS data, thereby not only affecting the accurate simulation calculation of the urban gas pipe network, but also affecting the urban gas pipe network simulation and the integrity management of the pipeline, and preventing the process of intelligent urban treatment; in the prior art, currently, a gas company adopts an EXCEL form and combines a manual verification mode to screen the data of a point form and a line form, then a professional further designs a treatment mode for dirty data, and finally the inspection result is uniformly processed by using the EXCEL. The topology is checked using the QGIS (Quantum GIS) system to import GIS data. In the prior art, by importing urban pipe network topology data into a QGIS system, the problems related to the pipeline and the nodes can be roughly seen. However, for manual inspection, when the data volume is huge, the miss rate and the error rate of the manual inspection are greatly improved; when the redundancy of the abnormal data is too high, all redundancy conditions are difficult to be checked manually; the manual inspection is long in time consumption and high in cost, and the current requirements on different urban topologies are difficult to meet; the time division of the same area is not clear when a plurality of persons cooperate to treat the same area, and more repeated inspection situations occur. For inspection by using a QGIS system, only the outline of a certain area topology and the connection between dotted lines can be visualized, and the situation of isolation and point missing in the topology can not be intuitively reflected; a list of questions in the topology data cannot be listed.
In summary, how to automatically check pipeline data and node data in urban gas pipeline network topology data so that the pipeline network topology data is more similar to real GIS data is a technical problem to be solved in the field.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device, and a medium for checking the topology integrity of an urban gas pipe network, which can realize the automatic checking of pipe data and node data in the topology data of the urban gas pipe network, so that the topology data of the pipe network is more similar to real GIS data. The specific scheme is as follows:
in a first aspect, the application discloses a method for checking topology integrity of an urban gas pipe network, comprising the following steps:
acquiring a pipe network topology of a target urban gas pipe network, and node data and pipeline data in the pipe network topology;
checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area;
And generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology.
Optionally, obtaining node data and pipeline data in the pipe network topology includes:
acquiring unique identifiers, node names, node coordinates and node types of all nodes in the pipe network topology;
and acquiring unique identification information, pipeline names, pipeline coordinates, pipeline inflow nodes and pipeline outflow nodes of each pipeline in the pipeline network topology.
Optionally, the checking the node data, the pipe data, the node data and the topology area constructed by the pipe data in the pipe network topology according to a preset topology checking condition to obtain isolated point data in the node data, defect data in the pipe data, isolated pipe data in the pipe data and isolated area data in the topology area respectively includes:
checking the node data in the pipe network topology, the pipeline inflow node and the pipeline outflow node in the pipeline data according to a preset node unique identification checking condition and a preset node coordinate checking condition so as to acquire isolated point data in the node data and defect data in the pipeline data;
Checking the undirected pipeline topology constructed by the pipeline data in the pipeline network topology according to a first preset pipeline connection quantity checking condition to acquire isolated pipeline data in the pipeline data;
and checking the topology area in the pipe network topology according to a second preset pipeline connection quantity checking condition and a node type checking condition to acquire isolated area data in the topology area.
Optionally, before checking the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data according to the preset node unique identifier checking condition and the preset node coordinate checking condition to obtain the isolated point data in the node data and the defect data in the pipe data, the method further includes:
generating point table data of the pipe network topology based on all the node data; generating line table data of the pipe network topology based on all the pipeline data;
counting the pipeline inflow nodes and the pipeline outflow nodes of each pipeline in the line table data, generating a node unique identifier set of the line table data based on the node unique identifiers of the pipeline inflow nodes and the node unique identifiers of the pipeline outflow nodes to obtain a first preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the isolated point data in the node data based on the first preset node unique identifier set;
Generating a node unique identifier set of the point table data based on node unique identifiers of all nodes in the point table data to obtain a second preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the defect data in the pipeline data based on the second preset node unique identifier set;
splicing the abscissa and the ordinate in the node coordinates of all the node data in the point table data to obtain the coordinate uniqueness mark of each node;
generating a node coordinate unique identifier set based on the coordinate unique identifiers of the nodes, and constructing preset node coordinate inspection conditions for inspecting the defect data in the pipeline data based on the node coordinate unique identifier set;
determining node coordinates corresponding to the pipeline inflow node and the pipeline outflow node respectively based on the pipeline coordinates of the pipelines in the pipeline data so as to determine unique identification of the pipeline coordinates of the pipelines;
and generating a pipeline coordinate unique identifier set based on the pipeline coordinate unique identifiers of the pipelines, and constructing preset node coordinate checking conditions for checking the isolated point data in the node data based on the pipeline coordinate unique identifier set.
Optionally, the checking the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data according to the preset node unique identifier checking condition and the preset node coordinate checking condition to obtain isolated point data in the node data and defect data in the pipe data includes:
traversing to obtain node unique identifiers of nodes in the point table data so as to obtain unique identifiers of target nodes;
judging whether the unique target node identifier exists in the first preset node unique identifier set, if not, marking the node corresponding to the unique target node identifier as isolated point data;
traversing to obtain the pipeline coordinates of each pipeline in the line table data, and obtaining the pipeline outflow node of the corresponding pipeline and the node unique identifier corresponding to the pipeline outflow node based on the pipeline coordinates so as to obtain the pipeline node unique identifier;
judging whether the unique identifier of the pipeline node exists in the second preset node unique identifier set, if not, marking the pipeline inflow node and/or the pipeline outflow node corresponding to the unique identifier of the pipeline node as defect data;
Traversing to obtain the coordinate uniqueness identification of each node in the point table data;
judging whether the coordinate unique identifiers of all the nodes exist in the pipeline coordinate unique identifier set, if not, marking the nodes corresponding to the coordinate unique identifiers of all the nodes as isolated point data;
traversing to obtain the unique identification of the pipeline coordinates of each pipeline in the line table data;
judging whether the pipeline coordinate unique identifiers of the pipelines exist in the node coordinate unique identifier set, and if not, marking the pipeline inflow nodes and/or the pipeline outflow nodes corresponding to the pipeline coordinate unique identifiers of the pipelines as defect data.
Optionally, the checking the undirected pipeline topology constructed by the pipeline data in the pipe network topology according to a first preset pipeline connection number checking condition to obtain isolated pipeline data in the pipeline data includes:
counting the number of pipelines in each connected subgraph of the undirected pipeline topology;
judging whether the number of the pipelines in each communication subgraph is smaller than a first preset pipeline connection number or not; if yes, acquiring the pipeline in the corresponding communication subgraph as a target pipeline;
Determining node types corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline based on the node unique identifiers corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline and the point table data;
judging whether target pipeline nodes with the node type being an air source type exist in all pipeline inflow nodes and pipeline outflow nodes; if not, marking the target pipeline as isolated pipeline data.
Optionally, the checking the topology area in the pipe network topology according to the second preset pipe connection number checking condition and the node type checking condition to obtain isolated area data in the topology area includes:
constructing a topological area taking a unique line table identifier as an attribute and the unique node identifiers of the pipeline inflow node and the pipeline outflow node of the pipeline data as edges based on line table data;
if the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with large air source;
if the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area without a large air source;
If the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with small air source;
if the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area with no air source and small;
and obtaining isolated area data in the topological area according to the labeling result of the topological area.
In a second aspect, the application discloses a city gas pipe network topology inspection device, including:
the data acquisition module is used for acquiring the pipe network topology of the target urban gas pipe network and node data and pipeline data in the pipe network topology;
the data checking module is used for checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions so as to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area;
And the list generation module is used for generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the disclosed urban gas pipe network topology integrity checking method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; the method comprises the steps of a method for checking the topological integrity of the urban gas network, wherein the method comprises the steps of realizing the method for checking the topological integrity of the urban gas network when the computer program is executed by a processor.
From this, the application discloses a city gas pipe network topology integrity checking method, including: acquiring a pipe network topology of a target urban gas pipe network, and node data and pipeline data in the pipe network topology; checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area; and generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology. It can be seen that by checking node data, pipe data, and topology regions in the pipe network topology according to preset topology conditions, then, isolated point data in the node data, defect data in the pipe data, isolated pipe data in the pipe data, isolated region data in the topology regions, and the like can be obtained respectively, by positioning checking the whole aspect from the node to the pipe to the region in the pipe network topology, the miss probability can be reduced, repeated checking is avoided, and defect data, isolated point data, isolated pipe data, and isolated region data can be intuitively reflected, so as to generate an integrity check list of the pipe network topology.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for checking the topological integrity of an urban gas network disclosed in the present application;
FIG. 2 is a flow chart of an isolated point data inspection method disclosed in the present application;
FIG. 3 is a flow chart of a method of inspecting defect data disclosed in the present application;
FIG. 4 is a diagram of a method for inspecting isolated pipe data and isolated area data in an urban gas pipe network topology as disclosed herein;
FIG. 5 is a flow chart of an isolated pipe data inspection method disclosed herein;
FIG. 6 is a flow chart of an isolated area data inspection disclosed herein;
FIG. 7 is a schematic structural diagram of an apparatus for detecting topology integrity of an urban gas network disclosed in the present application;
fig. 8 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present invention, 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 urban gas pipe network, the pipeline and the auxiliary facilities have strong concealment and high safety, and meanwhile, the pipe network terminal is connected with tens of thousands of nodes such as gas sources, users, voltage regulating stations, valve wells, plugs, ball valves and the like, so that the urban gas pipe network is huge and complex; with the wide application of the geographic information system GIS in the urban gas field, the complex topological structure causes certain deviation between pipe network and pipeline data and real GIS data, which not only affects the accurate simulation calculation of the urban gas pipe network, but also affects the urban gas pipe network simulation and the integrity management of the pipeline, thus preventing the process of intelligent urban management; in the prior art, currently, a gas company adopts an EXCEL form and combines a manual verification mode to screen the data of a point form and a line form, then a professional further designs a treatment mode for dirty data, and finally the inspection result is uniformly processed by using the EXCEL. The QGIS system is used to import GIS data to check topology. In the prior art, by importing urban pipe network topology data into a QGIS system, the problems related to the pipeline and the nodes can be roughly seen. However, for manual inspection, when the data volume is huge, the miss rate and the error rate of the manual inspection are greatly improved; when the redundancy of the abnormal data is too high, all redundancy conditions are difficult to be checked manually; the manual inspection is long in time consumption and high in cost, and the current requirements on different urban topologies are difficult to meet; the time division of the same area is not clear when a plurality of persons cooperate to treat the same area, and more repeated inspection situations occur. For inspection by using a QGIS system, only the outline of a certain area topology and the connection between dotted lines can be visualized, and the situation of isolation and point missing in the topology can not be intuitively reflected; a list of questions in the topology data cannot be listed.
Therefore, the invention provides a topology inspection scheme for the urban gas pipe network, which can realize the automatic inspection of pipeline data and node data in the topology data of the urban gas pipe network, so that the topology data of the pipe network is more similar to real GIS data.
Referring to fig. 1, the embodiment of the invention discloses a topology integrity checking method for an urban gas pipe network, which comprises the following steps:
step S11: and acquiring the pipe network topology of the target urban gas pipe network, and node data and pipeline data in the pipe network topology.
In this embodiment, a unique identifier, a node name, a node coordinate, and a node type of each node in the pipe network topology are obtained; and acquiring unique identification information, pipeline names, pipeline coordinates, pipeline inflow nodes and pipeline outflow nodes of each pipeline in the pipeline network topology. It may be understood that obtaining a pipe network topology of the target urban gas pipe network, that is, the pipe network topology is constructed for each node and each pipeline based on real GIS data of the target urban gas pipe network, where the node data and the pipeline data of each node and the pipeline may specifically include: each node unique identifier, node name, node coordinates, node type and node material; and attribute data such as unique identification information of each pipeline, pipeline names, pipeline coordinates, pipeline inflow nodes, pipeline outflow nodes, pipeline length, pipeline diameter, pipeline wall thickness and the like.
In this embodiment, the node data and the pipe data in the pipe network topology used for construction are obtained from a preset channel, where the preset channel specifically may include, but is not limited to: analyzer, flowmeter, bromine adding meter, sensor, equipment etc., wherein the flowmeter specifically can be: turbine flow meters, ultrasonic flow meters, millimeter wave flow meters, and the like, which are not particularly limited. The equipment can be pressure maintaining equipment for keeping the pressure inside the equipment stable, a pressure sensor for transmitting pressure signals in the equipment through a remote transmission technology, gas internet of things equipment in a gas transmission and distribution pipe network and the like.
In this embodiment, the nodes in the pipe network topology are specifically: the pipeline in the pipeline topology is specifically a pipeline between the nodes.
Step S12: and checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions so as to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area.
In this embodiment, the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data are inspected according to a preset node unique identifier inspection condition and a preset node coordinate inspection condition, so as to obtain isolated point data in the node data and defect data in the pipe data; it can be understood that the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data are inspected according to the preset node unique identification inspection condition and the preset node coordinate inspection condition, and specifically, each node in the node data, the pipe inflow node and the pipe outflow node in the pipe data are inspected respectively through the preset node unique identification inspection condition so as to obtain the isolated point data and the defect data in the node data. The isolated point data and the defect data acquired based on the preset node unique identification check condition are partial isolated point data and defect data. In addition, the part of isolated point data and the defect data need to be checked by utilizing a preset node coordinate checking condition to check the node data in the pipe network topology and the pipeline inflow node and the pipeline outflow node in the pipe network data so as to acquire the isolated point data and the defect data in the node data. It should be noted that, because the unique node identifiers of each node, the pipeline outflow node and the pipeline outflow node in the node data and the pipeline data and the node coordinates corresponding to each node are unique and can be in one-to-one correspondence with the terminal or the pipeline in the real data GIS data, the problems of isolated point data and inaccurate defect data missing detection and the like in the detection process can be avoided by the mode of carrying out double detection on the node data and the pipeline data by presetting the node unique identifier detection conditions and the preset node coordinate detection conditions. The outlier data is: the node data corresponding to the nodes which only exist in the node data but not exist in the pipeline inflow nodes or the pipeline outflow nodes in the pipeline data in the pipeline network topology are the isolated point data, which means that the condition that an air source, a user, a voltage regulating station or a common node is not connected through a pipeline occurs in the urban gas pipeline network data operation. The defect data are: the node data corresponding to the nodes which are not present in the node data but present in the pipeline inflow node or the pipeline outflow node in the pipeline data in the pipeline network topology are the defect data, which means that the condition that the end of the pipeline network is not provided with the nodes in the urban gas pipeline network data operation.
In this embodiment, before checking the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data according to the preset node unique identifier checking condition and the preset node coordinate checking condition to obtain the isolated point data in the node data and the defect data in the pipe data, the method further includes: generating point table data of the pipe network topology based on all the node data; generating line table data of the pipe network topology based on all the pipeline data; counting the pipeline inflow nodes and the pipeline outflow nodes of each pipeline in the line table data, generating a node unique identifier set of the line table data based on the node unique identifiers of the pipeline inflow nodes and the node unique identifiers of the pipeline outflow nodes to obtain a first preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the isolated point data in the node data based on the first preset node unique identifier set; generating a node unique identifier set of the point table data based on node unique identifiers of all nodes in the point table data to obtain a second preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the defect data in the pipeline data based on the second preset node unique identifier set; it can be appreciated that point table data of the pipe network topology is generated based on all the node data; and generating line table data of the pipe network topology based on all the pipeline data. Thus, node data and pipe data of each node and pipe are collected in a unified manner by performing dot-and line-tabulation on the node data and pipe data. And then counting the node unique identifiers of pipeline inflow nodes and pipeline outflow nodes of each pipeline in the line table data, generating a node unique identifier set of the line table data, and constructing preset node unique identifier check conditions for the isolated point data in the check point table data based on the node unique identifier set. Generating a node unique identification set of the point table data based on the node unique identifications of the nodes in the point table data, and then constructing preset node unique identification checking conditions for checking the defect data in the pipeline data based on the node unique identification set. It should be noted that the node unique identifications of the pipe inflow node and the pipe outflow node in the pipe data are determined by the respective node coordinates of the pipe inflow node and the pipe outflow node. The node coordinates of the pipeline inflow node and the pipeline outflow node of the pipeline are determined by splitting the pipeline coordinates of the pipeline, for example: the pipe coordinates of a certain pipe are expressed as: LINESTRING (13352755.4 4279141.9, 13353399.1 4279185.3), and the node coordinates of each of the pipe inflow node and the pipe outflow node obtained after splitting are expressed as: point1 (13352755.4 4279141.9), point2 (13353399.1 4279185.3).
In this embodiment, before checking the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data according to the preset node unique identifier checking condition and the preset node coordinate checking condition to obtain the isolated point data in the node data and the defect data in the pipe data, the method further includes: splicing the abscissa and the ordinate in the node coordinates of all the node data in the point table data to obtain the coordinate uniqueness mark of each node; generating a node coordinate unique identifier set based on the coordinate unique identifiers of the nodes, and constructing preset node coordinate inspection conditions for inspecting the defect data in the pipeline data based on the node coordinate unique identifier set; determining node coordinates corresponding to the pipeline inflow node and the pipeline outflow node respectively based on the pipeline coordinates of the pipelines in the pipeline data so as to determine unique identification of the pipeline coordinates of the pipelines; and generating a pipeline coordinate unique identifier set based on the pipeline coordinate unique identifiers of the pipelines, and constructing preset node coordinate checking conditions for checking the isolated point data in the node data based on the pipeline coordinate unique identifier set. It can be understood that the abscissa and the ordinate of the node coordinates of the node data in the point table data are spliced to obtain the coordinate unique identifier of each node in the point table. Generating a node coordinate unique identifier set based on the coordinate unique identifiers of the nodes, and constructing preset node coordinate inspection conditions for inspecting the defect data in the pipeline data based on the node coordinate unique identifier set. The specific flow of acquiring the node unique identification of each node in the point table is as follows: firstly, node coordinates of all nodes are obtained, the node coordinates of all nodes are determined according to real GIS data, and then x coordinates and y coordinates of the node coordinates are spliced to obtain a node with a coordinate uniqueness mark (xy_coordinate). The preset node coordinate checking condition for checking the independent points in the node data is also constructed in the above manner, wherein, as a pipeline simultaneously has a pipeline inflow node and a pipeline outflow node, on the basis of the respective abscissa and ordinate splicing of the pipeline inflow node and the pipeline node outflow node, the coordinate uniqueness marks of the pipeline inflow node and the pipeline node outflow node are obtained as (xy_source) and (xy_target), and then the coordinates of the pipeline inflow node and the pipeline outflow node are spliced again to obtain (xy_st).
In this embodiment, checking an undirected pipeline topology constructed by the pipeline data in the pipe network topology according to a first preset pipeline connection number checking condition to obtain isolated pipeline data in the pipeline data; and checking the topology area in the pipe network topology according to a second preset pipeline connection quantity checking condition and a node type checking condition to acquire isolated area data in the topology area. It can be understood that the undirected pipeline topology is constructed according to the unique node identifiers corresponding to the pipeline inflow node and the pipeline outflow node of each pipeline in the pipeline data, and then each connected sub-graph in the undirected pipeline topology is checked, that is, the pipeline number of each connected sub-graph in the undirected pipeline topology is checked based on the first preset pipeline connection number checking condition, so as to obtain the isolated pipeline data. And checking the topological area in the pipeline topology according to the second preset pipeline connection quantity checking condition and the node type checking condition which are the air source node type and the non-air source node type so as to acquire isolated area data in the topological area.
In this embodiment, the node unique identifier of the node in the point table data is obtained through traversal, so as to obtain the unique identifier of the target node; judging whether the unique target node identifier exists in the first preset node unique identifier set, if not, marking the node corresponding to the unique target node identifier as isolated point data; traversing to obtain the coordinate uniqueness identification of each node in the point table data; judging whether the coordinate unique identifiers of all the nodes exist in the pipeline coordinate unique identifier set, and if not, marking the nodes corresponding to the coordinate unique identifiers of all the nodes as isolated point data. It will be appreciated that referring to fig. 2, the orphan point data inspection is to find abnormal nodes in the pipe network topology from the point of view of both the node unique identifier and the coordinate unique identifier based on the node data in the point table data and the pipe data corresponding to the pipe inflow node and the pipe outflow node of the pipe in the line table data. Specifically, before pipe network simulation is performed, all node ID sets are obtained from the point table, then all source end node IDs and target end node IDs at two ends of a pipe are combined into a new node ID set (st_gids) without repetition, and then a difference set is made by using the new node ID set obtained from the point table after the node ID set and the two end points of the pipe are combined to obtain node ID sets which cannot be corresponding to all node IDs and the two end points of the pipe, wherein the specific process of determining the node ID set which cannot be corresponding by making the difference set is as follows: and (3) through circularly acquiring each node ID in the point table, judging whether the acquired node IDs exist in the st_gids set, if not, reserving, and acquiring all isolated point data from the ID identification angle after traversing is finished. In order to acquire all isolated points from the coordinate angle, the x-coordinate and y-coordinate of all the nodes in the point table are needed to be spliced into the coordinate unique identifier (xy_coordinate) of each node, the coordinates of the two end points of the same-structure pipeline are also respectively spliced to obtain the coordinate unique identifier (xy_source) of the source end and the coordinate unique identifier (xy_target) of the target end, and the coordinate unique identifiers xy_source and xy_target of the two ends of each pipeline are combined into a new coordinate unique identifier set (xy_st) so as to facilitate the acquisition of the isolated points with abnormal coordinate angles in the subsequent process. And then, using all xy_coordinates in the point table and a new coordinate uniqueness identification set (xy_st) obtained by combining xy_source and xy_target in the line table to make a difference set to obtain a coordinate uniqueness identification set which cannot be corresponding to the coordinates of the nodes and the coordinates of the two ends of the pipeline, specifically, judging whether each xy_coordinate exists in xy_st by circularly acquiring each xy_coordinate in the point table, if not, reserving, and acquiring the coordinate uniqueness identification set which cannot be corresponding after the circulation is finished. Based on the obtained coordinate uniqueness identification set which cannot be corresponding, all the matched node ID identifications are obtained from the point table, and finally all the node ID identifications obtained from the ID and coordinate angles are combined to obtain an isolated point inspection list, and meanwhile, the isolated point inspection list is stored, so that a user can conveniently perform program automation or manual operation on the network topology based on the isolated point inspection result to delete nodes without type attributes and add pipelines to the nodes with the type attributes. It should be noted that, in the process of performing the inspection of the isolated point data, the unique identifier of the target node is a node ID, that is, the node ID data of the node to be inspected, the first preset node unique identifier set is a st_gids set, that is, a non-repeated node unique identifier set of the pipe inflow node and the pipe outflow node of each pipe in the line table data, the coordinate unique identifier is xy_coordinate, that is, the node coordinate data of the node to be inspected, the pipe coordinate unique identifier set is xy_st, that is, a non-repeated pipe coordinate unique identifier set of the pipe inflow node and the pipe outflow node of each pipe in the line table data.
In this embodiment, the pipeline coordinates of each pipeline in the line table data are obtained through traversal, and node unique identifiers corresponding to the pipeline inflow nodes and the pipeline outflow nodes of the corresponding pipelines are obtained based on the pipeline coordinates, so as to obtain the pipeline node unique identifiers; judging whether the unique identifier of the pipeline node exists in the second preset node unique identifier set, if not, marking the pipeline inflow node and/or the pipeline outflow node corresponding to the unique identifier of the pipeline node as defect data; traversing to obtain the unique identification of the pipeline coordinates of each pipeline in the line table data; judging whether the pipeline coordinate unique identifiers of the pipelines exist in the node coordinate unique identifier set, and if not, marking the pipeline inflow nodes and/or the pipeline outflow nodes corresponding to the pipeline coordinate unique identifiers of the pipelines as defect data. It will be understood that, referring to fig. 3, before performing pipe network simulation, two end points of the pipe, that is, all source end node IDs and target end node IDs, are combined into a new non-repeated node ID set (st_gids), then all node ID sets in the point table data are acquired, and then a difference set is made between the combined node ID set (st_gids) and the node ID set acquired from the point table data to obtain node IDs of all two end point IDs of the pipe in the pipe data, specifically, each node ID in the st_gids is acquired circularly, whether the node IDs exist in the point table ID set is judged, if the node IDs do not exist, the node IDs are reserved, and then all the pipe IDs are found out based on the node IDs which cannot correspond, that is, any end of the two end points of the pipe is the node ID. In order to acquire all the defect data from the coordinate angle, the coordinates of the two end points of the pipeline are also respectively spliced to obtain the coordinate unique identifier (xy_source) of the source end and the coordinate unique identifier (xy_target) of the target end, the coordinate unique identifiers xy_source and xy_target of the two end points of each pipeline are combined into a new coordinate unique identifier set (xy_st), and the x coordinate and y coordinate of all the nodes in the same-point table are also spliced to the coordinate unique identifier (xy_coordinate) of each node so as to facilitate the acquisition of the isolated point with abnormal coordinate angle in the subsequent step. Next, a new coordinate uniqueness identification set (xy_st) obtained by combining xy_source and xy_target in line table data and all xy_coordinates in a point table are used for making a difference set to obtain a coordinate uniqueness identification set which cannot be corresponding to the coordinates of two ends of a pipeline and the coordinates of a node, specifically, each xyoordinate in the coordinate uniqueness identification set is obtained through circulation, whether the xyoordinate exists in the point table or not is judged, and if not, the xyoordinate exists in the point table, the coordinate uniqueness identification set is reserved. And then, based on the acquired unique identifiers of the coordinates which cannot be corresponding, finding all the matched pipeline ID identifiers from the line table data, and finally merging all the pipeline ID identifiers obtained from the ID and coordinate angles. Therefore, an online defect checking list is obtained and stored, so that a user can conveniently add nodes and attributes to the nodes by program automation or manual work on topology data based on an online defect checking result.
Step S13: and generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology.
In this embodiment, an integrity checklist for pipe network topology is generated according to an isolated point checklist, an on-line defect checklist, isolated pipe data, and isolated area data, and specifically, an isolated check summary is performed on the ID identifiers of the nodes in the point table data, the ID identifiers of the two endpoints in the line table data, and the coordinates of the node points to obtain a node ID identifier list; performing deletion inspection on ID identifications and coordinates of two endpoints of the line table data and ID identifications and coordinates in the point table data to obtain an on-line defect pipeline ID identification list; acquiring a pipeline ID identification list of the non-air source endpoint based on ID identifications of two endpoints in the line table data and node types in the point table data; obtaining a pipeline ID identification list of an isolated area without a large air source, a pipeline ID identification list of an isolated area without a small air source, a pipeline ID identification list of an isolated area with a large air source and a pipeline ID identification list of an isolated area with a small air source according to ID identifications of two endpoints in line table data and node types in point table data; and integrating the identification list to obtain a pipeline topology integrity primary checking list, namely an integrity checking list. The detected problem list is more detailed, and the isolated points and the defects on the line are positioned more accurately, so that the authenticity of the network topology simulation is improved, templates are provided for GIS data management and inspection of various cities in the whole country, and the construction of the intelligent city network is accelerated.
From this, the application discloses a city gas pipe network topology integrity checking method, including: acquiring a pipe network topology of a target urban gas pipe network, and node data and pipeline data in the pipe network topology; checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area; and generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology. It can be seen that by checking node data, pipe data, and topology regions in the pipe network topology according to preset topology conditions, then, isolated point data in the node data, defect data in the pipe data, isolated pipe data in the pipe data, isolated region data in the topology regions, and the like can be obtained respectively, by positioning checking the whole aspect from the node to the pipe to the region in the pipe network topology, the miss probability can be reduced, repeated checking is avoided, and defect data, isolated point data, isolated pipe data, and isolated region data can be intuitively reflected, so as to generate an integrity check list of the pipe network topology.
Referring to fig. 4, an embodiment of the present invention discloses a method for checking isolated pipe data and isolated area data in a specific urban gas pipe network topology, and compared with the previous embodiment, the present embodiment further describes and optimizes a technical scheme. Specific:
step S21: and acquiring the pipe network topology of the target urban gas pipe network, and node data and pipeline data in the pipe network topology.
In step S21, the detailed processing procedure is referred to the above disclosed embodiments, and will not be described herein.
Step S22: counting the number of pipelines in each connected subgraph of the undirected pipeline topology; judging whether the number of the pipelines in each communication subgraph is smaller than a first preset pipeline connection number or not; if yes, acquiring the pipeline in the corresponding communication subgraph as a target pipeline.
In this embodiment, referring to fig. 5, since the isolated pipes are pipes in the area where the number of pipes on each connected sub-graph in the pipe network topology is less than 5 and the air source type node is not included, this represents a situation where a small number of areas without air source air supply occur in the data operation of the urban gas pipe network. And the isolated pipeline inspection is to find the number of abnormal pipelines in the pipeline network topology based on the ID identification information of the two ends of the pipeline in the line table data and the attribute data of the node type in the point table data. Specifically, before pipe network simulation is carried out, constructing an undirected pipeline topology through pipeline inflow node IDs and pipeline outflow node IDs at two ends of a pipeline, then counting the number of pipelines on each connected subgraph in the undirected pipeline topology, judging whether connected subgraphs smaller than 5 pipelines exist in the undirected pipeline topology, and acquiring the pipeline inflow node IDs and the pipeline outflow node IDs at two ends of all the pipelines based on all the pipeline IDs in an isolated pipeline for the connected subgraphs smaller than 5 pipelines; if the number of the pipelines in the connected subgraph is more than 5, no processing is performed. The first preset pipeline connection number is 5, and the target pipelines are all pipelines in the communication subgraph with the pipeline connection number smaller than 5.
Step S23: determining node types corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline based on the node unique identifiers corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline and the point table data; judging whether target pipeline nodes with the node type being an air source type exist in all pipeline inflow nodes and pipeline outflow nodes; if not, marking the target pipeline as isolated pipeline data.
In this embodiment, for each pipe inflow node ID and pipe outflow node ID obtained in an isolated pipe, that is, after obtaining a target pipe, node type information corresponding to a pipe inflow node and a pipe outflow node in the target pipe in point table data is found out through circulation, if a pipe inflow node or a pipe outflow node in the target pipe has a target pipe node of an air source type, no processing is performed, if a connected subgraph does not have a node of an air source type, all pipe ID lists in the isolated pipe are listed and stored, so that a user can conveniently perform program automation or manual deletion operation on topology data based on the result of inspection of the isolated pipe.
Step S24: constructing a topological area taking a unique line table identifier as an attribute and the unique node identifiers of the pipeline inflow node and the pipeline outflow node of the pipeline data as edges based on line table data; and labeling the region types of each topological region based on the second preset pipeline connection number and the node types of the pipeline nodes so as to acquire isolated region data in the topological region according to the labeling result of the topological region.
In this embodiment, referring to fig. 6, since the urban gas network is a relatively complete topology, each gas source will supply gas and air to each downstream area. Thus, there should be at least one air source in each island. The isolated area is an independent area with 100 as a dividing line for the number of pipelines on each connected subgraph in the pipe network topology and whether air source nodes are in the connected subgraphs or not, which represents the situation that a plurality of independent areas exist in the topology in the urban gas pipe network data operation. And the isolated area inspection is to find different and independent connected subgraphs in the pipe network topology based on ID identification information at two ends of a pipeline in the line table data and type attributes of nodes in the point table data. Specifically, before pipe network simulation, an undirected graph, namely a topological area, is constructed by taking a line table ID as an attribute and taking a pipeline inflow node ID and a pipeline outflow node ID as edges based on line table data. And counting the number of the air source nodes with all the node types in the point table data as the air source type and the pipelines of each connected subgraph in the topology based on the type attribute of the nodes in the point table data, and further dividing the conditions of the air source nodes and the pipeline number into the following cases:
And if the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with large air source. That is, if the number of the pipelines in the connected subgraph is greater than 100 and the gas source nodes are contained at the same time, the connected subgraph can be divided into isolated areas with large gas sources.
If the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area without a large air source; that is, if the number of connected subgraphs is greater than 100 and no air source node is included, the connected subgraphs can be divided into isolated areas with large air source.
If the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with small air source; that is, if the number of connected subgraphs is less than 100 and the connected subgraphs contain air source nodes, the connected subgraphs can be divided into isolated areas with small air sources.
And if the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area with no air source and small. That is, if the number of connected subgraphs is less than 100 and no air source node is included, it can be divided into isolated areas with small air source. It should be noted that the second preset number of pipe connections is 100. And then, respectively listing and storing pipeline ID lists of different isolated areas, so that a user can conveniently perform program automation or manual operation on GIS topology data based on the isolated area inspection result to add pipeline connected sub-areas.
Therefore, the pipeline topology is checked through whether the pipeline number and the node type are of the air source type or not, so that the inspection of the isolated pipeline and the isolated area is realized, and the problem that the isolated pipeline network is difficult to inspect due to data loss and abnormality in the GIS data treatment process is solved.
Referring to fig. 7, the embodiment of the invention also discloses a device for checking the topology integrity of the urban gas pipe network, which comprises:
the data acquisition module 11 is used for acquiring the pipe network topology of the target urban gas pipe network and node data and pipeline data in the pipe network topology;
a data checking module 12, configured to check the node data, the pipe data, the node data, and the topology region constructed by the pipe data in the pipe network topology according to a preset topology checking condition, so as to obtain isolated point data in the node data, defect data in the pipe data, isolated pipe data in the pipe data, and isolated area data in the topology region, respectively;
the manifest generating module 13 is configured to generate an integrity check manifest for the network topology according to the isolated point data, the defect data, the isolated pipe data, and the isolated area data, so as to complete integrity check of the urban gas network topology.
Therefore, the application discloses obtaining the pipe network topology of the target urban gas pipe network, and node data and pipeline data in the pipe network topology; checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area; and generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology. It can be seen that by checking node data, pipe data, and topology regions in the pipe network topology according to preset topology conditions, then, isolated point data in the node data, defect data in the pipe data, isolated pipe data in the pipe data, isolated region data in the topology regions, and the like can be obtained respectively, by positioning checking the whole aspect from the node to the pipe to the region in the pipe network topology, the miss probability can be reduced, repeated checking is avoided, and defect data, isolated point data, isolated pipe data, and isolated region data can be intuitively reflected, so as to generate an integrity check list of the pipe network topology.
Further, the embodiment of the present application further discloses an electronic device, and fig. 8 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 8 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, where the computer program is loaded and executed by the processor 21 to implement relevant steps in the urban gas network topology integrity checking method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further comprise a computer program capable of performing other specific tasks in addition to the computer program capable of performing the urban gas network topology integrity checking method performed by the electronic device 20 as disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the electronic device and transmitted by the external device, data collected by the input/output interface 25 itself, and so on.
Further, the application also discloses a computer readable storage medium for storing a computer program; the computer program, when executed by the processor, realizes the method for checking the topological integrity of the urban gas network. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in random access Memory RAM (Random Access Memory), memory, read-Only Memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (Electric Erasable Programmable Read Only Memory), registers, hard disk, a removable disk, a CD-ROM (Compact Disc-Read Only Memory), or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for checking the topological integrity of the urban gas pipe network provided by the invention are described in detail, and specific examples are applied to the principle and the implementation mode of the invention, and the description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (8)

1. The method for checking the topological integrity of the urban gas pipe network is characterized by comprising the following steps of:
acquiring a pipe network topology of a target urban gas pipe network, and node data and pipeline data in the pipe network topology;
checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area;
generating an integrity check list aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish the integrity check of the urban gas pipe network topology;
the step of checking the node data, the pipeline data, the node data and the topology region constructed by the pipeline data in the pipe network topology according to a preset topology checking condition to respectively obtain isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated region data in the topology region, includes:
Checking the node data in the pipe network topology, the pipeline inflow node and the pipeline outflow node in the pipeline data according to a preset node unique identification checking condition and a preset node coordinate checking condition so as to acquire isolated point data in the node data and defect data in the pipeline data;
checking the undirected pipeline topology constructed by the pipeline data in the pipeline network topology according to a first preset pipeline connection quantity checking condition to acquire isolated pipeline data in the pipeline data;
checking a topology region in the pipe network topology according to a second preset pipeline connection quantity checking condition and a node type checking condition to acquire isolated region data in the topology region;
the method further comprises the steps of:
generating point table data of the pipe network topology based on all the node data; generating line table data of the pipe network topology based on all the pipeline data;
Counting the pipeline inflow nodes and the pipeline outflow nodes of each pipeline in the line table data, generating a node unique identifier set of the line table data based on the node unique identifiers of the pipeline inflow nodes and the node unique identifiers of the pipeline outflow nodes to obtain a first preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the isolated point data in the node data based on the first preset node unique identifier set;
generating a node unique identifier set of the point table data based on node unique identifiers of all nodes in the point table data to obtain a second preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the defect data in the pipeline data based on the second preset node unique identifier set;
splicing the abscissa and the ordinate in the node coordinates of all the node data in the point table data to obtain the coordinate uniqueness mark of each node;
generating a node coordinate unique identifier set based on the coordinate unique identifiers of the nodes, and constructing preset node coordinate inspection conditions for inspecting the defect data in the pipeline data based on the node coordinate unique identifier set;
Determining node coordinates corresponding to the pipeline inflow node and the pipeline outflow node respectively based on the pipeline coordinates of the pipelines in the pipeline data so as to determine unique identification of the pipeline coordinates of the pipelines;
and generating a pipeline coordinate unique identifier set based on the pipeline coordinate unique identifiers of the pipelines, and constructing preset node coordinate checking conditions for checking the isolated point data in the node data based on the pipeline coordinate unique identifier set.
2. The method for checking the topological integrity of the urban gas pipe network according to claim 1, wherein the step of obtaining the node data and the pipeline data in the pipe network topology comprises the following steps:
acquiring unique identifiers, node names, node coordinates and node types of all nodes in the pipe network topology;
and acquiring unique identification information, pipeline names, pipeline coordinates, pipeline inflow nodes and pipeline outflow nodes of each pipeline in the pipeline network topology.
3. The method for checking the topology integrity of an urban gas pipe network according to claim 1, wherein the checking the node data in the pipe network topology, the pipe inflow node in the pipe data, and the pipe outflow node according to a preset node unique identification checking condition and a preset node coordinate checking condition to obtain isolated point data in the node data and defect data in the pipe data comprises:
Traversing to obtain node unique identifiers of nodes in the point table data so as to obtain unique identifiers of target nodes;
judging whether the unique target node identifier exists in the first preset node unique identifier set, if not, marking the node corresponding to the unique target node identifier as isolated point data;
traversing to obtain the pipeline coordinates of each pipeline in the line table data, and obtaining node unique identifiers corresponding to the pipeline inflow nodes and the pipeline outflow nodes of the corresponding pipelines based on the pipeline coordinates so as to obtain pipeline node unique identifiers;
judging whether the unique identifier of the pipeline node exists in the second preset node unique identifier set, if not, marking the pipeline inflow node and/or the pipeline outflow node corresponding to the unique identifier of the pipeline node as defect data;
traversing to obtain the coordinate uniqueness identification of each node in the point table data;
judging whether the coordinate unique identifiers of all the nodes exist in the pipeline coordinate unique identifier set, if not, marking the nodes corresponding to the coordinate unique identifiers of all the nodes as isolated point data;
Traversing to obtain the unique identification of the pipeline coordinates of each pipeline in the line table data;
judging whether the pipeline coordinate unique identifiers of the pipelines exist in the node coordinate unique identifier set, and if not, marking the pipeline inflow nodes and/or the pipeline outflow nodes corresponding to the pipeline coordinate unique identifiers of the pipelines as defect data.
4. The method for checking the topology integrity of an urban gas network according to claim 1, wherein the checking the undirected pipeline topology constructed by the pipeline data in the network topology according to a first preset pipeline connection number checking condition to obtain isolated pipeline data in the pipeline data comprises:
counting the number of pipelines in each connected subgraph of the undirected pipeline topology;
judging whether the number of the pipelines in each communication subgraph is smaller than a first preset pipeline connection number or not; if yes, acquiring the pipeline in the corresponding communication subgraph as a target pipeline;
determining node types corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline based on the node unique identifiers corresponding to the pipeline inflow node and the pipeline outflow node of the target pipeline and the point table data;
Judging whether target pipeline nodes with the node type being an air source type exist in all pipeline inflow nodes and pipeline outflow nodes; if not, marking the target pipeline as isolated pipeline data.
5. The method for checking the topology integrity of an urban gas network according to claim 1, wherein the checking the topology area in the network topology according to the second preset pipe connection number checking condition and the node type checking condition to obtain isolated area data in the topology area comprises:
constructing a topological area taking a unique line table identifier as an attribute and the unique node identifiers of the pipeline inflow node and the pipeline outflow node of the pipeline data as edges based on line table data;
if the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with large air source;
if the number of the pipelines of the connected subgraph in the topological area exceeds the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area without a large air source;
If the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and the target pipeline nodes of the air source type exist in the connected subgraph, marking the topological area as an isolated area with small air source;
if the number of the pipelines of the connected subgraph in the topological area does not exceed the second preset pipeline connection number and no target pipeline node of the air source type exists in the connected subgraph, marking the topological area as an isolated area with no air source and small;
and obtaining isolated area data in the topological area according to the labeling result of the topological area.
6. An urban gas pipe network topology integrity checking device, comprising:
the data acquisition module is used for acquiring the pipe network topology of the target urban gas pipe network and node data and pipeline data in the pipe network topology;
the data checking module is used for checking the node data, the pipeline data, the node data and the topological area constructed by the pipeline data in the pipe network topology according to preset topology checking conditions so as to respectively acquire isolated point data in the node data, defect data in the pipeline data, isolated pipeline data in the pipeline data and isolated area data in the topological area;
The manifest generation module is used for generating an integrity check manifest aiming at the pipe network topology according to the isolated point data, the defect data, the isolated pipeline data and the isolated area data so as to finish integrity check of the urban gas pipe network topology;
the data checking module is specifically configured to check the node data in the pipe network topology, the pipe inflow node and the pipe outflow node in the pipe data according to a preset node unique identifier checking condition and a preset node coordinate checking condition, so as to obtain isolated point data in the node data and defect data in the pipe data; checking the undirected pipeline topology constructed by the pipeline data in the pipeline network topology according to a first preset pipeline connection quantity checking condition to acquire isolated pipeline data in the pipeline data; checking a topology region in the pipe network topology according to a second preset pipeline connection quantity checking condition and a node type checking condition to acquire isolated region data in the topology region;
the urban gas pipe network topology integrity checking device is used for generating point table data of the pipe network topology based on all the node data; generating line table data of the pipe network topology based on all the pipeline data; counting the pipeline inflow nodes and the pipeline outflow nodes of each pipeline in the line table data, generating a node unique identifier set of the line table data based on the node unique identifiers of the pipeline inflow nodes and the node unique identifiers of the pipeline outflow nodes to obtain a first preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the isolated point data in the node data based on the first preset node unique identifier set; generating a node unique identifier set of the point table data based on node unique identifiers of all nodes in the point table data to obtain a second preset node unique identifier set, and constructing preset node unique identifier checking conditions for checking the defect data in the pipeline data based on the second preset node unique identifier set; splicing the abscissa and the ordinate in the node coordinates of all the node data in the point table data to obtain the coordinate uniqueness mark of each node; generating a node coordinate unique identifier set based on the coordinate unique identifiers of the nodes, and constructing preset node coordinate inspection conditions for inspecting the defect data in the pipeline data based on the node coordinate unique identifier set; determining node coordinates corresponding to the pipeline inflow node and the pipeline outflow node respectively based on the pipeline coordinates of the pipelines in the pipeline data so as to determine unique identification of the pipeline coordinates of the pipelines; and generating a pipeline coordinate unique identifier set based on the pipeline coordinate unique identifiers of the pipelines, and constructing preset node coordinate checking conditions for checking the isolated point data in the node data based on the pipeline coordinate unique identifier set.
7. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the urban gas network topology integrity check method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor performs the steps of the urban gas network topology integrity check method according to any one of claims 1 to 5.
CN202311461732.6A 2023-11-06 2023-11-06 City gas pipe network topology integrity checking method, device, equipment and medium Active CN117196542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311461732.6A CN117196542B (en) 2023-11-06 2023-11-06 City gas pipe network topology integrity checking method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311461732.6A CN117196542B (en) 2023-11-06 2023-11-06 City gas pipe network topology integrity checking method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN117196542A CN117196542A (en) 2023-12-08
CN117196542B true CN117196542B (en) 2024-01-26

Family

ID=89002009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311461732.6A Active CN117196542B (en) 2023-11-06 2023-11-06 City gas pipe network topology integrity checking method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117196542B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761405A (en) * 2014-02-17 2014-04-30 福州市勘测院 Three-dimensional underground integrated pipelines auto-generating system with error self-checking function
CN110941888A (en) * 2019-12-16 2020-03-31 苏州嘉燃科技有限公司 Urban gas pipe network topology data file generation method based on pipe network simulation
CN114297810A (en) * 2021-12-28 2022-04-08 浙江大学滨海产业技术研究院 Method and system for analyzing and verifying DMA partition topology
WO2022241813A1 (en) * 2021-05-17 2022-11-24 深圳计算科学研究院 Graph database construction method and apparatus based on graph compression, and related component
CN115935026A (en) * 2023-01-13 2023-04-07 三峡智慧水务科技有限公司 Graph database-based automatic topology simplification method for SWMM drainage pipe network model
CN116595695A (en) * 2023-05-30 2023-08-15 深圳市爱路恩济能源技术有限公司 Method and device for constructing gas pipe network model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761405A (en) * 2014-02-17 2014-04-30 福州市勘测院 Three-dimensional underground integrated pipelines auto-generating system with error self-checking function
CN110941888A (en) * 2019-12-16 2020-03-31 苏州嘉燃科技有限公司 Urban gas pipe network topology data file generation method based on pipe network simulation
WO2022241813A1 (en) * 2021-05-17 2022-11-24 深圳计算科学研究院 Graph database construction method and apparatus based on graph compression, and related component
CN114297810A (en) * 2021-12-28 2022-04-08 浙江大学滨海产业技术研究院 Method and system for analyzing and verifying DMA partition topology
CN115935026A (en) * 2023-01-13 2023-04-07 三峡智慧水务科技有限公司 Graph database-based automatic topology simplification method for SWMM drainage pipe network model
CN116595695A (en) * 2023-05-30 2023-08-15 深圳市爱路恩济能源技术有限公司 Method and device for constructing gas pipe network model

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
供水管网综合信息服务平台的设计与实现;李鹏;付苑婷;;中国给水排水(08);全文 *
基于管线对偶图模型的供水管网可靠性分析;曾文;时圣磊;丁晶晶;;哈尔滨工业大学学报(08);全文 *
海底管道泄漏风险演化复杂网络分析;孟祥坤;陈国明;朱红卫;;中国安全生产科学技术(04);全文 *

Also Published As

Publication number Publication date
CN117196542A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
WO2021179593A1 (en) Deep learning-based three-dimensional pipeline reconstruction method, system, medium, and apparatus
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
EP3739810A1 (en) Modeling analysis method based on geographic targets
CN112039197A (en) Automatic mapping method of distribution room topological graph and computer readable storage medium
CN115080681B (en) GIS data checking method and system
CN110427573A (en) A kind of determination method, apparatus, equipment and the storage medium in unknown pollution sources region
CN113050472B (en) Intelligent zero-direct-discharge dynamic sewage supervision system based on pipe network early warning analysis technology
CN103677815A (en) Method for generating program to automatically test electrical performance of spacecraft low-frequency cable
US11898895B2 (en) Methods and systems for natural gas data computation outside gas internet of things based on energy measuring
CN109210383A (en) Urban Pipeline Carrying Natural Gas monitoring method and system based on NB-IOT
CN113743080A (en) Hierarchical address text similarity comparison method, device and medium
CN117196542B (en) City gas pipe network topology integrity checking method, device, equipment and medium
CN109447466B (en) Overall process visual management and control system based on power distribution network communication network construction
CN115034027B (en) GIS data point-line mapping method and system
CN114266170B (en) Gas supply range identification method and device in gas distribution pipe network
CN115345078B (en) Cable management method and device based on cable iteration model
CN116846463A (en) GIS-based communication optical cable fault point positioning method and device
CN116303870A (en) Gas flow value mapping method and system for gas pipe network data management
CN116451393A (en) Analog simulation realization method, system and device of gas pipe network and storage medium
CN110390170B (en) Gas pipe network communication inspection method and pipe network online editing system
CN110807066B (en) Method, device, terminal or server for associating data with model
CN115265923A (en) Leakage detection method and device and terminal
CN114491744A (en) Heating power pipeline full-information application method and system
CN112559544A (en) Professional pipeline and comprehensive pipeline fusion database building and updating method
CN117240305B (en) Pipe network topology data compression method, device and equipment and readable storage medium

Legal Events

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