Urban gas logic pipeline division method and device, medium and equipment
Through the urban gas logical pipeline division method based on geographic information system, the problem of inapplicability of the existing technology under complex structures is solved, and efficient and accurate logical pipeline division and management is achieved.
Patent Information
- Application Number
- CN202411720238.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-18
AI Technical Summary
The existing logical pipeline division method is not applicable when the urban gas medium-pressure pipeline network structure is complex, resulting in huge workload and inaccurate work.
By obtaining the urban gas physical pipeline distribution map based on the geographical information system, users select the starting point and end point, automatically generate the logical main line and branch line, and build a logical pipeline network according to preset rules.
It reduces subjective errors, improves the accuracy and efficiency of logical pipeline division, reduces labor costs, and facilitates pipeline management and emergency treatment.
Smart Images

Figure CN119647034A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of logical pipeline division, and in particular to a method, device, medium and equipment for dividing a city gas logical pipeline. Background Art
[0002] Logical pipeline division is part of the data collection and integration work in pipeline integrity management. Logical pipeline refers to a logical concept in the pipeline system, which is used to describe the pipeline data in the pipeline system. Generally speaking, the logical pipeline corresponds to the physical pipeline. In order to build a tree-like organization of the pipeline network, the physical pipeline is merged and classified according to certain rules to abstract the pipeline network hierarchy. Pipeline integrity refers to the state of the pipeline system maintaining its predetermined functions and performance during operation. Pipeline integrity includes the safety, reliability, maintainability, sustainability and other aspects of the pipeline system, involving the design, construction, operation and maintenance of the pipeline system. Pipeline integrity management has become the best pipeline safety management model widely recognized internationally. The implementation of integrity management is the main safety management content of major pipeline companies at home and abroad. The operating model of pipeline integrity management is to continuously identify and evaluate the risk factors faced by the pipeline, continuously eliminate the adverse factors identified, take various risk reduction measures, control the risk within a reasonable and acceptable range, and ultimately achieve the purpose of operating the pipeline safely, reliably and economically.
[0003] At present, logical pipeline division usually refers to the division of long-distance pipelines. Long-distance pipelines have simple structures and single flow directions. The current linear division method can meet the needs. However, the structure of the urban gas medium-pressure pipeline network is complex, with many branches and sometimes a mesh structure. If a logical pipeline is divided for each starting point and end point in a linear manner, the workload is huge. Therefore, the previous logical pipeline division method is not applicable to the division scenario of urban gas pipelines. Summary of the invention
[0004] In view of at least one of the above technical problems, an embodiment of the present invention provides a method and device, medium, and equipment for dividing a city gas logical pipeline.
[0005] According to the first aspect, the city gas logical pipeline division method provided by the embodiment of the present invention includes:
[0006] Based on the geographic information system, obtain the physical pipeline distribution map of urban gas;
[0007] Providing a node selection page so that a user can select a starting point and an end point on a city gas physical pipeline distribution map on the node selection page;
[0008] The physical pipeline connected between the starting point and the end point selected by the user is used as the logical main line;
[0009] Obtain the preset city gas logical pipeline division rules;
[0010] Automatically generate logical branches connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram;
[0011] The logical pipeline network of the city gas is constructed according to the logical main line and the logical branches connected to the logical main line.
[0012] In one embodiment, the physical pipeline connected between the starting point and the end point selected by the user is used as the logical main line, including:
[0013] Determining whether the physical pipeline between the starting point and the end point is connected;
[0014] If yes, the physical pipeline connecting the starting point and the end point selected by the user is used as the logical main line;
[0015] Otherwise, the user is prompted that a selection error has been made, so that the user can reselect the starting point and / or the end point.
[0016] In one embodiment, the city gas logical pipeline division rules include: the starting point and the end point do not participate in the division of logical branches; a physical pipeline belongs to only one logical pipeline; the number of logical branches connected to the logical main line does not exceed a preset upper limit.
[0017] In one embodiment, the method further comprises:
[0018] After generating a first logical branch connected to the logical main line, determine whether the first logical branch has its own logical branch based on the various equipment nodes on the physical pipeline corresponding to the first logical branch in the city gas physical pipeline distribution map; if so, generate the first logical branch's own logical branch and use the generated logical branch as the second logical branch, and the second logical branch is connected to the first logical branch.
[0019] In one embodiment, the method further comprises:
[0020] If the number of device nodes on a logical branch line exceeds a preset number, an editing function is provided so that the user can delete the logical branch line from the logical pipeline network corresponding to the logical main line through the editing function and use the logical branch line as another logical main line;
[0021] Automatically generate a logical branch line connected to another logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to another logical main line in the city gas physical pipeline distribution diagram;
[0022] A logic pipeline network corresponding to the other logic main line is generated according to the other logic main line and the logic branch lines connected to the other logic main line.
[0023] In one embodiment, the method further comprises:
[0024] After the logical branch line connected to the logical main line is automatically generated, the logical branch line is named according to the position of the device node based on which the logical branch line is generated in the physical city gas pipeline distribution map and the sequence number of the logical branch line;
[0025] When a logical branch query request is received, the logical branch corresponding to the corresponding device node is searched according to the device node information in the physical pipeline in the query request, and the found logical branch is highlighted in the logical pipeline network.
[0026] In one embodiment, the method further comprises:
[0027] When an operation request for regenerating a corresponding logical branch line for a logical main line is received, the logical branch line previously generated for the logical main line will be overwritten, and a reminder is given that the operation of regenerating the logical branch line will overwrite the previous logical branch line.
[0028] According to the second aspect, the city gas logical pipeline division device provided by the embodiment of the present invention includes:
[0029] The first acquisition module is used to acquire a physical pipeline distribution map of a city gas based on a geographic information system;
[0030] A first providing module is used to provide a node selection page, so that the user can select a starting point and an end point on the city gas physical pipeline distribution map on the node selection page;
[0031] A main line determination module, used to take the physical pipeline connected between the starting point and the end point selected by the user as a logical main line;
[0032] The second acquisition module is used to acquire the preset city gas logical pipeline division rules;
[0033] A first generating module, configured to automatically generate a logical branch line connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram;
[0034] The network construction module is used to construct the logical pipeline network of the city gas according to the logical main line and each logical branch line connected to the logical main line.
[0035] In one embodiment, the main line determination module is specifically used to: determine whether the physical pipeline between the starting point and the end point is connected; if so, use the physical pipeline connected between the starting point and the end point selected by the user as the logical main line; otherwise, prompt the user that there is a wrong selection, so that the user can reselect the starting point and / or end point.
[0036] In one embodiment, the city gas logical pipeline division rules include: the starting point and the end point do not participate in the division of logical branches; a physical pipeline belongs to only one logical pipeline; the number of logical branches connected to the logical main line does not exceed a preset upper limit.
[0037] In one embodiment, the device may further include:
[0038] The second generation module is used to determine whether the first logical branch has its own logical branch after generating the first logical branch connected to the logical main line, based on the various equipment nodes on the physical pipeline corresponding to the first logical branch in the city gas physical pipeline distribution map; if so, generate the first logical branch's own logical branch and use the generated logical branch as the second logical branch, and the second logical branch is connected to the first logical branch.
[0039] In one embodiment, the device may further include:
[0040] A function providing module is used to provide an editing function if the number of device nodes on a logical branch line exceeds a preset number, so that the user can delete the logical branch line from the logical pipeline network corresponding to the logical main line through the editing function, and use the logical branch line as another logical main line; automatically generate a logical branch line connected to another logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the other logical main line in the city gas physical pipeline distribution map; generate a logical pipeline network corresponding to the other logical main line according to the other logical main line and the logical branch line connected to the other logical main line.
[0041] In one embodiment, the device may further include:
[0042] A branch line naming module, for naming the logical branch line according to the position of the device node based on which the logical branch line is generated in the physical city gas pipeline distribution map and the sequence number of the logical branch line after the logical branch line connected to the logical main line is automatically generated;
[0043] The branch search module is used to search for the logical branch corresponding to the corresponding device node according to the device node information in the physical pipeline in the query request when receiving a logical branch query request, and highlight the found logical branch in the logical pipeline network.
[0044] In one embodiment, the device may further include:
[0045] The branch coverage module is used to cover the logical branch previously generated for a logical main line when receiving an operation request for regenerating a corresponding logical branch for a logical main line, and remind that the operation of regenerating the logical branch will cover the previous logical branch.
[0046] According to a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method provided in the first aspect.
[0047] According to a fourth aspect, an embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method provided in the first aspect is implemented.
[0048] In the city gas logical pipeline division method, device, medium, and equipment provided by the embodiment of the present invention, a user selects a starting point and an end point on a node selection page, and the physical pipeline connected between the starting point and the end point selected by the user is used as the logical main line, and then the logical branch lines connected to the logical main line are automatically generated according to the city gas logical pipeline division rules and the physical pipeline nodes corresponding to the logical main line in the city gas physical pipeline distribution map, and then the city gas logical pipeline network is constructed according to the logical main line and the logical branch lines connected to the logical main line. According to the city gas physical pipeline distribution map based on geographic information spatial data and the city gas logical pipeline division rules, logical branches are generated to construct a logical pipeline network. Compared with the manual division method, this method can reduce the error caused by subjectivity and improve the division accuracy. Moreover, since automatic division is achieved, the degree of human participation is relatively low, so the efficiency of logical pipeline division can be greatly improved and the labor cost can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a method for dividing city gas logical pipelines in one embodiment of the present invention;
[0050] Figure 2 is a schematic diagram of a logical pipeline network in one embodiment of the present invention;
[0051] Figure 3It is a structural block diagram of a city gas logical pipeline division device in one embodiment of the present invention. DETAILED DESCRIPTION
[0052] In a first aspect, an embodiment of the present invention provides a method for dividing a city gas logical pipeline. Figure 1 The method comprises the following steps S110 to S160:
[0053] S110, based on the geographic information system, obtaining a distribution map of the physical city gas pipelines;
[0054] Among them, the physical pipeline distribution map of urban gas refers to the pipeline network formed by the physical pipelines of urban gas, which can be specifically a pipeline network formed by medium-pressure physical pipelines. The subsequently generated logical pipeline network is also a medium-pressure logical pipeline network.
[0055] Among them, the geographic information system is GIS.
[0056] S120, providing a node selection page, so that the user can select a starting point and an end point on the city gas physical pipeline distribution map on the node selection page;
[0057] It can be seen that the nodes on the city gas physical pipeline distribution map will be displayed on the node selection page, including equipment nodes and surveying nodes. The surveying nodes refer to the measurement points added by field personnel on the physical pipeline between two devices in order to increase the accuracy of data measurement. Users can select a starting point and an end point on the node selection page, and the selected starting point and end point are equipment nodes.
[0058] S130, taking the physical pipeline connected between the starting point and the end point selected by the user as the logical main line;
[0059] It can be seen that the physical pipeline between the starting point and the end point must be connected, and the physical pipeline connected between the starting point and the end point selected by the user is used as the logical main line.
[0060] In one embodiment, the step of using the physical pipeline connected between the starting point and the end point selected by the user as the logical main line in S130 includes:
[0061] Determine whether the physical pipeline between the starting point and the end point is connected; if so, use the physical pipeline connected between the starting point and the end point selected by the user as the logical main line; otherwise, prompt the user that there is a wrong selection, so that the user can reselect the starting point and / or end point.
[0062] That is to say, it is necessary to determine whether the starting point and the end point selected by the user are physically connected. If so, the connected physical pipeline can be used as the logical main line. If not, the user will be reminded so that the user can reselect the starting point and / or end point until the selected starting point and end point are physically connected, thereby ensuring the accuracy of the subsequent logical pipeline network.
[0063] S140, obtaining a preset city gas logical pipeline division rule;
[0064] Among them, the city gas logical pipeline division rules refer to some rules set up to ensure the rationality of the logical pipeline division.
[0065] In one embodiment, the city gas logical pipeline division rules may include: the starting point and the end point do not participate in the division of logical branches; a physical pipeline belongs to only one logical pipeline; the number of logical branches connected to the logical main line does not exceed a preset upper limit.
[0066] It can be seen that the starting point and end point selected by the user will not generate logical branches. A physical pipeline belongs to only one logical pipeline, which can belong to a logical main line or a logical branch. A physical pipeline that has been divided into logical pipelines cannot be divided again unless all logical branches are regenerated for the logical main line. There is an upper limit requirement on the number of logical branches connected to the logical main line, for example, 200. If the number of logical branches of a logical main line exceeds 200, it is considered that the branch is too large, and the logical pipeline network generated later will also be more complicated. At this time, no logical branches will be generated, and the user can be reminded so that the user can reselect the starting point and end point. The number of device nodes in the physical pipeline between the reselected starting point and end point is reduced, so that the number of logical branches that can be generated is likely to be reduced, which can reduce the complexity of the logical pipeline network generated later.
[0067] It can be seen that the generated logical pipeline network only corresponds to a part of the physical pipelines in the city gas physical pipeline distribution map. Therefore, for a city gas physical pipeline distribution map, multiple separate logical pipeline networks can be generated, and each logical pipeline network has a logical main line and a logical branch line connected to the logical main line.
[0068] S150, automatically generating a logical branch line connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram;
[0069] Among them, the device node can be a node corresponding to a three-way device, a valve or a pressure regulating box. These devices can generate one or more branches on a main line. Therefore, according to the various device nodes on the physical pipeline corresponding to the logical main line and based on the restrictions of the city gas logical pipeline division rules, the corresponding logical branch line can be automatically generated on the logical main line, and the logical branch line is directly connected to the logical main line.
[0070] S160: construct a logical pipeline network of the city gas according to the logical main line and each logical branch line connected to the logical main line.
[0071] It can be seen that a logic main line and the logic branches connected to the logic main line can form a logic pipeline network. Through the above S110 to S160, multiple logic pipeline networks corresponding to multiple logic main lines can be obtained.
[0072] In one embodiment, the method may further include:
[0073] After generating a first logical branch connected to the logical main line, determine whether the first logical branch has its own logical branch based on the various equipment nodes on the physical pipeline corresponding to the first logical branch in the city gas physical pipeline distribution map; if so, generate the first logical branch's own logical branch and use the generated logical branch as the second logical branch, and the second logical branch is connected to the first logical branch.
[0074] That is to say, after a logical branch of the main logic line is generated, the logical branch is called the first logical branch, and it is further determined whether the logical branch has its own branch. If so, a logical branch corresponding to its own branch is generated, and the logical branch is called the second logical branch. It can be seen that in this way, based on the first-level logical branch of the main logic line, the second-level logical branch of the first-level logical branch can be further generated. Of course, the third-level logical branch of the second-level logical branch and the fourth-level logical branch of the third-level logical branch can also be generated. However, it cannot be generated indefinitely, and certain restrictions are required to ensure that the final logical pipeline network is not too complicated.
[0075] In one embodiment, the method may further include A1-A3:
[0076] A1. If the number of device nodes on a logical branch line exceeds a preset number, an editing function is provided so that the user can delete the logical branch line from the logical pipeline network corresponding to the logical main line through the editing function and use the logical branch line as another logical main line;
[0077] A2. Automatically generate a logical branch line connected to another logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the other logical main line in the city gas physical pipeline distribution diagram;
[0078] A3. Generate a logic pipeline network corresponding to the other logic main line according to the other logic main line and the logic branch lines connected to the other logic main line.
[0079] That is to say, if there are a large number of nodes on a logical branch line, more branches may be generated. Therefore, an editing function is provided. Based on this editing function, the user can delete the logical branch line from the logical pipeline network of the original logical main line, use the logical branch line as another logical main line, and then generate various logical branches of the other logical main line, thereby forming a logical pipeline network corresponding to the other logical main line.
[0080] In this way, a complex logic pipeline network to be formed can be decomposed into multiple relatively simple logic pipeline networks, which helps users understand the logic pipeline network.
[0081] In one embodiment, the method may further include:}
[0082] After the logical branch line connected to the logical main line is automatically generated, the logical branch line is named according to the position of the device node based on which the logical branch line is generated in the physical city gas pipeline distribution map and the sequence number of the logical branch line;
[0083] When a logical branch query request is received, the logical branch corresponding to the corresponding device node is searched according to the device node information in the physical pipeline in the query request, and the found logical branch is highlighted in the logical pipeline network.
[0084] It can be seen that when a logical branch is generated, the logical branch will be named. The naming method is the position of the device node corresponding to the starting point of the logical branch plus the serial number of the logical branch. This makes it easy to know the number of each logical branch in the logical pipeline network, and it is also helpful to query the corresponding logical branch based on the physical pipeline. When the user needs to query which logical branch a physical pipeline corresponds to in the logical pipeline network, the corresponding logical branch can be found in each logical branch according to the location information of the device node in the physical pipeline and the name of each logical branch. Then, the found logical branch is highlighted in the logical pipeline network, so that the user can intuitively understand the logical branch corresponding to the physical pipeline.
[0085] In one embodiment, the method may further include:
[0086] When an operation request for regenerating a corresponding logical branch line for a logical main line is received, the logical branch line previously generated for the logical main line will be overwritten, and a reminder is given that the operation of regenerating the logical branch line will overwrite the previous logical branch line.
[0087] It can be seen that when a user wants to generate a logical branch again for a logical main line, the previously generated logical branch will be overwritten, and the user will also be informed of the overwriting situation.
[0088] See also Figure 2 ,The process of building a logical pipeline network includes the following steps:
[0089] Step 1: The user selects node a and node b, so the physical pipeline between node a and node b is used as the logical main line;
[0090] Step 2: Generate logical branch 1;
[0091] Step 3: Generate logical branch 2 and its own logical branch, thus obtaining a logical pipeline network.
[0092] Step 4: However, there are many nodes on logical branch 2, and it has its own branches. Therefore, the user deletes logical branch 2 from the logical branches of the logical main line through the editing function, and uses logical branch 2 as another logical main line, and forms another logical pipeline network with the other logical main line and its own branches.
[0093] The embodiments of the present invention have the following beneficial effects:
[0094] 1. Improve the accuracy of logical pipeline division: Generate logical branches and construct a logical pipeline network based on the physical pipeline distribution map of urban gas based on geographic information spatial data and the logical pipeline division rules of urban gas. Compared with the manual division method, this method can reduce the error caused by subjectivity and improve the division accuracy.
[0095] 2. Improve the efficiency of logical pipeline partitioning: Since automatic partitioning is achieved, the degree of human participation is relatively low, which can greatly improve the efficiency of logical pipeline partitioning and reduce labor costs.
[0096] 3. Better management and maintenance of logical pipelines: Since multiple relatively simple logical pipeline networks can be obtained based on the physical distribution map of urban gas pipelines, it is very user-friendly for maintenance and management.
[0097] 4. Better emergency handling of logical pipelines: Since the logical pipeline division is based on the urban gas physical pipeline distribution map based on geographic information spatial data, pipeline emergency handling can be better carried out, the efficiency and accuracy of emergency handling can be improved, and the cost of emergency handling can be reduced.
[0098] In summary, the method provided by the embodiment of the present invention can improve the accuracy and efficiency of logical pipeline division, better perform pipeline management, maintenance, and emergency processing, and is of great significance for improving the safety and reliability of urban gas pipelines.
[0099] In a second aspect, an embodiment of the present invention provides a city gas logical pipeline division device, see Figure 3 , the device 100 comprises:
[0100] The first acquisition module 110 is used to acquire a city gas physical pipeline distribution map based on a geographic information system;
[0101] The first providing module 120 is used to provide a node selection page, so that the user can select a starting point and an end point on the city gas physical pipeline distribution map on the node selection page;
[0102] A main line determination module 130, configured to use the physical pipeline connected between the starting point and the end point selected by the user as a logical main line;
[0103] The second acquisition module 140 is used to acquire a preset city gas logical pipeline division rule;
[0104] The first generation module 150 is used to automatically generate a logical branch line connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram;
[0105] The network construction module 160 is used to construct the logical pipeline network of the city gas according to the logical main line and each logical branch line connected to the logical main line.
[0106] In one embodiment, the main line determination module is specifically used to: determine whether the physical pipeline between the starting point and the end point is connected; if so, use the physical pipeline connected between the starting point and the end point selected by the user as the logical main line; otherwise, prompt the user that there is a wrong selection, so that the user can reselect the starting point and / or end point.
[0107] In one embodiment, the city gas logical pipeline division rules include: the starting point and the end point do not participate in the division of logical branches; a physical pipeline belongs to only one logical pipeline; the number of logical branches connected to the logical main line does not exceed a preset upper limit.
[0108] In one embodiment, the device may further include:
[0109] The second generation module is used to determine whether the first logical branch has its own logical branch after generating the first logical branch connected to the logical main line, based on the various equipment nodes on the physical pipeline corresponding to the first logical branch in the city gas physical pipeline distribution map; if so, generate the first logical branch's own logical branch and use the generated logical branch as the second logical branch, and the second logical branch is connected to the first logical branch.
[0110] In one embodiment, the device may further include:
[0111] A function providing module is used to provide an editing function if the number of device nodes on a logical branch line exceeds a preset number, so that the user can delete the logical branch line from the logical pipeline network corresponding to the logical main line through the editing function, and use the logical branch line as another logical main line; automatically generate a logical branch line connected to another logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the other logical main line in the city gas physical pipeline distribution map; generate a logical pipeline network corresponding to the other logical main line according to the other logical main line and the logical branch line connected to the other logical main line.
[0112] In one embodiment, the device may further include:
[0113] A branch line naming module, for naming the logical branch line according to the position of the device node based on which the logical branch line is generated in the physical city gas pipeline distribution map and the sequence number of the logical branch line after the logical branch line connected to the logical main line is automatically generated;
[0114] The branch search module is used to search for the logical branch corresponding to the corresponding device node according to the device node information in the physical pipeline in the query request when receiving a logical branch query request, and highlight the found logical branch in the logical pipeline network.
[0115] In one embodiment, the device may further include:
[0116] The branch coverage module is used to cover the logical branch previously generated for a logical main line when receiving an operation request for regenerating a corresponding logical branch for a logical main line, and remind that the operation of regenerating the logical branch will cover the previous logical branch.
[0117] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0118] In a third aspect, an embodiment of the present invention provides a computer-readable medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the method provided in the first aspect.
[0119] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.
[0120] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0121] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0122] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0123] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0124] It is understandable that the explanation, specific implementation methods, beneficial effects, examples, etc. of the relevant contents in the computer-readable medium provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0125] In a fourth aspect, an embodiment of the present specification provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method in any embodiment of the specification.
[0126] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the computing device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0129] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for dividing city gas logical pipelines, characterized in that: include: Based on the geographic information system, obtain the physical pipeline distribution map of urban gas; Providing a node selection page so that a user can select a starting point and an end point on a city gas physical pipeline distribution map on the node selection page; The physical pipeline connected between the starting point and the end point selected by the user is used as the logical main line; Obtain the preset city gas logical pipeline division rules; Automatically generate logical branches connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram; The logical pipeline network of the city gas is constructed according to the logical main line and the logical branches connected to the logical main line.
2. The method according to claim 1, characterized in that The method of taking the physical pipeline connecting the starting point and the end point selected by the user as the logical main line includes: Determining whether the physical pipeline between the starting point and the end point is connected; If yes, the physical pipeline connecting the starting point and the end point selected by the user is used as the logical main line; Otherwise, the user is prompted that a selection error has been made, so that the user can reselect the starting point and / or the end point.
3. The method according to claim 1, characterized in that The city gas logical pipeline division rules include: the starting point and the end point do not participate in the division of logical branches; one physical pipeline belongs to only one logical pipeline; the number of logical branches connected to the logical main line does not exceed a preset upper limit.
4. The method according to claim 1, characterized in that Also includes: After generating a first logical branch connected to the logical main line, determine whether the first logical branch has its own logical branch based on the various equipment nodes on the physical pipeline corresponding to the first logical branch in the city gas physical pipeline distribution map; if so, generate the first logical branch's own logical branch and use the generated logical branch as the second logical branch, and the second logical branch is connected to the first logical branch.
5. The method according to claim 1, characterized in that Also includes: If the number of device nodes on a logical branch line exceeds a preset number, an editing function is provided so that the user can delete the logical branch line from the logical pipeline network corresponding to the logical main line through the editing function and use the logical branch line as another logical main line; Automatically generate a logical branch line connected to another logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to another logical main line in the city gas physical pipeline distribution diagram; A logic pipeline network corresponding to the other logic main line is generated according to the other logic main line and the logic branch lines connected to the other logic main line.
6. The method according to claim 1, characterized in that Also includes: After the logical branch line connected to the logical main line is automatically generated, the logical branch line is named according to the position of the device node based on which the logical branch line is generated in the physical city gas pipeline distribution map and the sequence number of the logical branch line; When a logical branch query request is received, the logical branch corresponding to the corresponding device node is searched according to the device node information in the physical pipeline in the query request, and the found logical branch is highlighted in the logical pipeline network.
7. The method according to claim 1, characterized in that Also includes: When an operation request for regenerating a corresponding logical branch line for a logical main line is received, the logical branch line previously generated for the logical main line will be overwritten, and a reminder is given that the operation of regenerating the logical branch line will overwrite the previous logical branch line.
8. A city gas logical pipeline division device, characterized in that: include: The first acquisition module is used to acquire a physical pipeline distribution map of a city gas based on a geographic information system; A first providing module is used to provide a node selection page, so that the user can select a starting point and an end point on the city gas physical pipeline distribution map on the node selection page; A main line determination module, used to take the physical pipeline connected between the starting point and the end point selected by the user as a logical main line; The second acquisition module is used to acquire the preset city gas logical pipeline division rules; A first generating module, configured to automatically generate a logical branch line connected to the logical main line according to the city gas logical pipeline division rule and each device node on the physical pipeline corresponding to the logical main line in the city gas physical pipeline distribution diagram; The network construction module is used to construct the logical pipeline network of the city gas according to the logical main line and each logical branch line connected to the logical main line.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. A computing device, characterized in that The method comprises a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 7 is implemented.