Pipe network data processing method, device and equipment and readable storage medium
By adding temporary nodes on the target pipe segment and replacing the temporary nodes with isolated target nodes, the pipeline network data is automatically updated, solving the problems of low efficiency and poor accuracy in pipeline network data processing in the existing technology, and achieving efficient and accurate data updates.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GOLDCARD HIGH TECH
- Filing Date
- 2023-03-01
- Publication Date
- 2026-07-14
AI Technical Summary
Existing pipeline data processing methods are inefficient and have poor data accuracy. In particular, when processing isolated nodes, data needs to be manually entered or modified, which can easily introduce errors and is not applicable to certain scenarios.
Add temporary nodes to the target pipe segment and replace the temporary nodes with the target isolated nodes to automatically update the pipe network data and avoid manual modification.
It improves the efficiency and accuracy of pipeline network data processing, reduces errors introduced by manual operation, and is applicable to various types of pipeline networks.
Smart Images

Figure CN116303501B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of geographic information system technology, and in particular to a pipeline data processing method, apparatus, equipment and readable storage medium. Background Technology
[0002] Geographic Information System (GIS) technology can be used to effectively manage various resource and environmental information with spatial attributes. Taking water supply network data as an example, GIS technology can be used to perform operations such as data entry and editing of water supply network data, so as to carry out information management of water supply network.
[0003] In applications such as historical data conversion or underground pipeline object detection, pipeline network data often contains errors. The existence of isolated nodes is a common error. Currently, the method for processing pipeline network data with isolated nodes involves deleting the pipe segment to which the isolated node belongs, recreating two new pipe segments connected to the isolated node, and then merging these two new segments with the original pipeline into a new pipeline. However, this method has low pipeline network data processing efficiency and low data accuracy. Summary of the Invention
[0004] This application provides a pipeline network data processing method, apparatus, equipment, and readable storage medium to solve the problems of low efficiency and low accuracy in pipeline network data processing.
[0005] Firstly, this application provides a pipeline network data processing method, including:
[0006] The target isolated node to be processed is determined from the pipeline network data, and the target pipeline segment to which the target isolated node belongs is determined; the target pipeline segment is the pipeline segment from the first node to the second node.
[0007] A temporary node is added to the target pipe segment, and the target pipe segment is redrawn to obtain a temporary target pipe segment; the temporary target pipe segment includes: a first temporary pipe segment from the first node to the temporary node, and a second temporary pipe segment from the second node to the temporary node;
[0008] The temporary node is replaced with the target isolated node, and the target pipe segment is redrawn to obtain the updated target pipe segment; the updated target pipe segment includes: a first pipe segment from the first node to the target isolated node, and a second pipe segment from the second node to the target isolated node;
[0009] The updated target pipe segment is used to replace the target pipe segment to obtain the updated pipeline network data.
[0010] Optionally, replacing the temporary node with the target isolated node includes:
[0011] The temporary node is initially moved to a preset location range of the target isolated point;
[0012] The temporary node, after its initial movement, is moved again to the location of the target isolated node using a magnetic attraction method.
[0013] Replace the temporary node with the target isolated node.
[0014] Optionally, the method of using magnetic attraction to move the temporary node back to the location of the target isolated node after the initial movement includes:
[0015] Using a magnetic attraction method, the temporary node, after its initial movement, is moved again to the location of the nearest isolated node;
[0016] Determine whether the position of the temporary node after the second movement is the same as the location of the target isolated point;
[0017] If so, then replace the temporary node with the target isolated node;
[0018] If not, the temporary node is moved again to the preset location range of the target isolated point until the position of the temporary node after the second movement is the location of the target isolated point.
[0019] Optionally, determining the target isolated node to be processed from the pipeline network data, and the target pipeline segment to which the target isolated node belongs, includes:
[0020] Based on the pipeline topology of the pipeline data, at least one candidate isolated node is determined;
[0021] The target isolated node is determined from the at least one candidate isolated node;
[0022] The target pipe segment is determined based on the pipeline network data.
[0023] Optionally, the temporary node is the center node on the target pipe segment;
[0024] Alternatively, the temporary node may be a node determined from the target pipe segment based on the distance between the target isolated node and the target pipe segment.
[0025] Optionally, replacing the target pipe segment with the updated target pipe segment to obtain the updated pipeline network data includes:
[0026] The updated target pipe segment is displayed;
[0027] In response to a user-triggered data change command for the target pipe segment, the updated target pipe segment is used to replace the target pipe segment, resulting in updated pipeline network data.
[0028] Optionally, after displaying the updated target pipe segment, the method further includes:
[0029] In response to the user-triggered reprocessing instruction for the target isolated node, the temporary node is replaced with the target isolated node to obtain the updated target pipe segment again;
[0030] And / or, in response to a user-triggered updated target pipe segment removal command, delete the updated target pipe segment to revert to the original target pipe segment.
[0031] Secondly, this application provides a pipeline network data processing device, comprising:
[0032] The determination module is used to determine the target isolated node to be processed from the pipeline network data, and the target pipe segment to which the target isolated node belongs; the target pipe segment is the pipe segment from the first node to the second node;
[0033] A new module is added to the target pipe segment to add a temporary node and redraw the target pipe segment to obtain a temporary target pipe segment; the temporary target pipe segment includes: a first temporary pipe segment from the first node to the temporary node, and a second temporary pipe segment from the second node to the temporary node;
[0034] The replacement module is used to replace the temporary node with the target isolated node and redraw the target pipe segment to obtain the updated target pipe segment; the updated target pipe segment includes: a first pipe segment from the first node to the target isolated node, and a second pipe segment from the second node to the target isolated node;
[0035] The update module is used to replace the target pipe segment with the updated target pipe segment to obtain updated pipeline network data.
[0036] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0037] The memory stores computer-executed instructions;
[0038] The processor executes computer execution instructions stored in the memory to implement the pipeline data processing method as described in any one of the first aspects.
[0039] Fourthly, this application provides a computer-readable storage medium, comprising: computer-executable instructions stored in the computer-readable storage medium, wherein the computer-executable instructions, when executed by a processor, are used to implement the pipeline data processing method as described in any one of the first aspects.
[0040] Fifthly, this application provides a computer program product, including a computer program that, when executed by the processor, implements the pipeline data processing method as described in any of the first aspects.
[0041] In a sixth aspect, this application provides a chip on which a computer program is stored, and when the computer program is executed by the chip, it implements the pipeline data processing method as described in any of the first aspects.
[0042] The pipeline network data processing method, apparatus, equipment, and readable storage medium provided in this application obtain an updated target pipeline segment by adding a temporary node to the target pipeline segment and replacing the temporary node with an isolated target node. The isolated target node is then processed into a node on the updated target pipeline segment. Simultaneously, the GIS system can automatically update the pipeline network data based on the updated target pipeline segment without requiring manual modification of the pipeline network data, thereby improving the efficiency and accuracy of pipeline network data processing. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0044] Figure 1 This is a schematic diagram of a pipeline data processing method for isolated nodes in the prior art;
[0045] Figure 2 A flowchart illustrating a pipeline data processing method provided in an embodiment of this application;
[0046] Figure 3 A schematic diagram of pipeline data provided in an embodiment of this application;
[0047] Figure 4 A schematic diagram of a front-end interface provided for an embodiment of this application;
[0048] Figure 5 This is another front-end interface diagram provided for an embodiment of this application;
[0049] Figure 6 This is another schematic diagram of a front-end interface provided in an embodiment of this application;
[0050] Figure 7 This is another schematic diagram of a front-end interface provided in an embodiment of this application;
[0051] Figure 8 A flowchart illustrating a method for replacing a temporary node with a target isolated node, provided in an embodiment of this application;
[0052] Figure 9 A flowchart illustrating another pipeline data processing method provided in this application embodiment;
[0053] Figure 10 A schematic diagram of the structure of a pipeline data processing device provided in an embodiment of this application;
[0054] Figure 11 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application.
[0055] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0057] First, the terms used in this application will be explained:
[0058] GIS is a technology that, with the support of a computer system, collects, stores, manages, processes, analyzes, displays, and describes geographic distribution data in the entire or part of the Earth's surface space.
[0059] Pipeline network: A network system of pipes used to transport or discharge liquids or gases, such as the pipeline system that supplies and distributes water to users in a water supply project.
[0060] Nodes: These represent equipment on a pipeline or the connection points of the pipeline. Taking a water supply network as an example, equipment such as water meters and water pumps, or the turning points of pipelines, can be represented by nodes.
[0061] Pipe segment: Used to connect nodes; multiple pipe segments form a pipeline.
[0062] An isolated node is a node that is not located on a pipeline or pipe segment.
[0063] Endpoint node: This refers to a node located at one end of a pipeline, that is, the start or end point of the pipeline.
[0064] GIS technology can be used to display pipeline network data in a geographic graphical format, enabling information-based management of pipeline network data. This management system can be called a GIS system.
[0065] In applications such as converting legacy pipeline data, or pipeline data stored in other systems, into pipeline data required by GIS systems, or obtaining pipeline data after object detection of underground pipelines, pipeline data often contains errors and needs to be checked and processed before it can be used. The existence of isolated nodes is a common error, therefore, pipeline data containing isolated nodes needs to be processed.
[0066] Figure 1 This is a schematic diagram of a current method for processing network data for isolated nodes. Figure 1 As shown, taking an isolated node as P, which belongs to the target pipe segment CD, and the target pipe segment belongs to the target pipeline AB as an example, where A and B represent the two endpoint nodes of the target pipeline, the existing pipeline network data processing method for isolated nodes will be explained.
[0067] S101. Determine the target pipe segment CD and target pipeline AB to which the isolated node P belongs.
[0068] S102. Delete the target pipe segment CD to which the isolated node P belongs. Then the target pipeline AB is split into two pipelines AC and DB.
[0069] It should be noted that users need to manually delete the target pipe segment data and re-enter the pipe data for the newly split pipe AC and DB, such as pipe number, endpoint coordinates, pipe length, etc.
[0070] S103. Connect the two endpoint nodes C and D to the isolated node P mentioned above, respectively, to form two new pipelines CP and PD.
[0071] It should be noted that the new pipeline CP and PD pipeline data need to be re-entered by the user.
[0072] S104. Select a pipeline as the main pipeline, and merge the above two pipelines AC and DB with the new pipelines CP and PD into the same pipeline to complete the repair of the isolated node.
[0073] It should be noted that after merging into the same pipeline, the user needs to merge the pipeline data of AC, DB, CP and PD mentioned above. For example, the pipeline number of the main pipeline can be used as the pipeline number of the newly merged pipeline.
[0074] However, this method has the following problems: (1) Since the method requires users to manually enter or modify pipeline data, it is easy to affect the integrity and accuracy of the data, and the efficiency is low; (2) The method cannot be applied in some scenarios. For example, if the target pipeline only includes one target pipe segment, the target pipe segment cannot be deleted; (3) If there is an error operation, such as the data information of other pipe segments is deleted by mistake, the user needs to manually restore the data. That is, the rollback operation is cumbersome and may introduce more errors.
[0075] In summary, the existing pipeline data processing methods have low data accuracy and processing efficiency.
[0076] In view of this, this application provides a pipeline network data processing method, which adds a temporary node on the target pipeline segment and replaces the temporary node with an isolated node to process the isolated node as a node on the target pipeline segment and automatically updates the pipeline network data. This avoids the aforementioned problem of needing to manually enter or modify pipeline network data, improves the accuracy of pipeline network data, and increases the efficiency of pipeline network data processing.
[0077] It should be noted that the embodiments of this application are not limited to the type of pipeline network. When any type of pipeline network data encounters the technical problems described in this application, the pipeline network data processing method provided in the embodiments of this application can be used to solve them.
[0078] The implementing entity of this application is a GIS system. This GIS system can be deployed independently on an electronic device in any environment (e.g., deployed independently on an edge server in an edge environment), deployed entirely in a cloud environment, or distributed across different environments. For example, the GIS system can be logically divided into multiple parts, each with different functions. The parts of the GIS system can be deployed in any two or three of the following environments: an electronic device (located on the user side), an edge environment, and a cloud environment. The edge environment includes a set of edge electronic devices located close to the electronic device, such as edge servers and edge stations with computing power. The various parts of the GIS system deployed in different environments or on different devices work together to realize the functions of the GIS system. It should be understood that this application does not restrict the specific environments in which the parts of the GIS system are deployed. In practical applications, deployment can be adapted based on the computing power of the electronic device, the resource availability of the edge and cloud environments, or specific application requirements.
[0079] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems will be described in detail below with reference to specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0080] Figure 2 This is a flowchart illustrating a pipeline data processing method provided in an embodiment of this application. Figure 3 This is a schematic diagram of pipeline data provided for an embodiment of this application. Figure 3 As shown, the following explanation uses the isolated target node Q, the temporary node M, and the target pipe segment EF to which the isolated target node belongs as an example. Figure 2 As shown, the method includes:
[0081] S201. Determine the target isolated node to be processed from the pipeline network data, and the target pipeline segment to which the target isolated node belongs.
[0082] One possible implementation involves determining at least one candidate isolated node based on the pipeline topology of the aforementioned pipeline data; and then determining the target isolated node from among these candidate isolated nodes. The candidate isolated node refers to an isolated node that has been identified as an isolated node but needs to be processed.
[0083] For example, the aforementioned pipeline network data includes a set of attribute data for all nodes in the pipeline network, as well as the pipeline network topology. The set of attribute data for the nodes includes, but is not limited to, node number, name, and coordinate information; the pipeline network topology includes pipeline attribute data, such as pipeline number, name, length, endpoint coordinates, a set of attribute data for nodes located on the pipeline, and attribute data for pipe segments located on the pipeline.
[0084] Based on the pipeline topology of the aforementioned pipeline data and the attribute data set of all nodes, at least one isolated node not located on the pipeline can be identified, i.e., a candidate isolated node. For example, nodes in the attribute data set of all nodes can be filtered according to the node numbers located on the pipeline. If there is a node in the attribute data set of all nodes without a corresponding number, then that node is a candidate isolated node; alternatively, it can be determined based on the coordinate information of the nodes located on the pipeline, which is not limited in this application.
[0085] From the above at least one candidate isolated node, the GIS system may randomly select one candidate isolated node as the target isolated node, or it may select the candidate isolated node with the smaller number as the target isolated node based on the number of each candidate isolated node. This application does not limit this.
[0086] Another possible implementation is that the aforementioned GIS system can provide a front-end interface on the user side for map-based display of pipeline network data. The pipeline network data includes the coordinate information of all the aforementioned candidate isolated nodes, and all candidate isolated nodes are specially marked on the front-end interface of the GIS system, such as by highlighting or labeling. The GIS system receives a user's instruction to select a candidate isolated node triggered on the front-end interface and responds to this instruction, identifying the selected candidate isolated node as the target isolated node. It should be noted that this application does not limit the way the user triggers the instruction to select a candidate isolated node on the front-end interface. For example, the user could randomly select a candidate isolated node, or the user could select a candidate isolated node based on its display position on the front-end interface, such as the candidate isolated node currently displayed on the leftmost side of the interface. This application does not impose any limitations on this.
[0087] refer to Figure 3 The isolated target node determined by the above method can be point Q.
[0088] The target pipe segment mentioned above is the pipe segment from the first node to the second node, for reference. Figure 3 The first node can be E, the second node can be F, and the target pipe segment is EF.
[0089] As mentioned above, the pipeline network data includes pipeline attribute data, which includes pipe segment attribute data located on the pipeline. This pipe segment attribute data may include, for example, pipe segment number, name, node coordinates, and length. Based on the aforementioned pipeline network data, the target pipe segment to which the target isolated node belongs can be determined.
[0090] Please note, for reference only. Figure 3 The target isolated node Q was originally a node of pipe segment EQ and also a node of pipe segment QF. However, in the actual pipe network data, pipe segment EQ and pipe segment QF do not exist. Only pipe segment EF exists. Pipe segment EF is taken as the target pipe segment to which the target isolated node Q belongs.
[0091] S202. Add a temporary node to the target pipe segment and redraw the target pipe segment to obtain a temporary target pipe segment.
[0092] The aforementioned temporary node refers to a temporary node on the target pipe segment. The newly added temporary node will not change the pipe segment attribute data of the target pipe segment. The temporary node can be the central node on the target pipe segment; it can also be a node determined from the target pipe segment based on the distance between the target isolated node and the target pipe segment, for example, the temporary node is the point on the target pipe segment closest to the target isolated node; or it can be any point on the target pipe segment.
[0093] Regarding how to add a temporary node on the aforementioned target pipe segment, the following methods can be adopted:
[0094] One possible implementation is that after the GIS system determines the target pipe segment to which the isolated target node belongs, it automatically adds a temporary node to the target pipe segment. The location of the temporary node can be any of the aforementioned temporary nodes.
[0095] Another possible implementation is that the aforementioned GIS system can provide a front-end interface on the user side. Figure 4 This is a schematic diagram of a front-end interface provided for an embodiment of this application. For example... Figure 4 As shown, the GIS system receives a user's command to add a temporary node via the front-end interface and responds by adding a temporary node M on the target pipe segment. The location of temporary node M can be any of the aforementioned temporary nodes. It should be noted that... Figure 4 Therefore, the temporary node M is used as the central node of the target pipe section for illustration.
[0096] Alternatively, the GIS system may receive a user's instruction, triggered through the front-end interface, to add a temporary node at a specified location on the target pipe segment, and respond to the instruction by adding a temporary node at the specified location on the target pipe segment.
[0097] After adding a temporary node to the target pipe segment, the GIS system will automatically redraw the target pipe segment based on the current node, resulting in the temporary target pipe segment. The temporary target pipe segment includes: the first temporary pipe segment from the first node to the temporary node, and the second temporary pipe segment from the second node to the temporary node, as shown in the reference. Figure 4 The first temporary target pipe segment is EM and the second temporary pipe segment is MF.
[0098] S203. Replace the temporary node with the aforementioned isolated target node, and redraw the target pipe segment to obtain the updated target pipe segment.
[0099] One possible implementation is that after adding a temporary node at the location closest to the target isolated node on the target pipe segment, the GIS system will automatically move the temporary node to the target isolated node. Correspondingly, the temporary target pipe segment will also move along with the temporary node. It should be noted that moving the temporary node to the target isolated node means moving the temporary node to the position indicated by the coordinates of the target isolated node; that is, the coordinates of the moved temporary node are the same as the coordinates of the target isolated node.
[0100] Another possible implementation is that the aforementioned GIS system can provide a front-end interface on the user side. Figure 5 This is another front-end interface diagram provided for an embodiment of this application. For example... Figure 5 As shown, the aforementioned GIS system receives an initial command from the user, triggered through the front-end interface, to move the temporary node M to a preset position range within the target isolated node Q. Responding to this command, the system initially moves the temporary node M to the preset range. Then, the GIS system uses a magnetic attraction method to move the initially moved temporary node M back to the target isolated node Q, replacing the temporary node M with the target isolated node Q. The preset position range can be a bounding box centered on the coordinates of the target isolated node; this application does not limit the shape and size of this bounding box.
[0101] After replacing the temporary node with the aforementioned isolated target node, the GIS system will automatically redraw the target pipe segment based on the current node, resulting in the updated target pipe segment. The updated target pipe segment includes: the first pipe segment from the first node to the isolated target node, and the second pipe segment from the second node to the isolated target node, as shown in the reference. Figure 5 The first pipe section is EQ and the second pipe section is QF.
[0102] It should be noted that the redrawing of the target pipe segment mentioned in this application embodiment is achieved by connecting the nodes on the target pipe segment. That is, the nodes on the target pipe segment are connected together. The node can be the aforementioned temporary node, or it can be a target isolated node that replaces the temporary node, or it can be an existing node on the target pipe segment.
[0103] S204. Replace the target pipe segment with the updated target pipe segment to obtain the updated pipeline network data.
[0104] The updated pipeline data mentioned above is modified based on the updated target pipeline segment, including the updated pipeline segment number, name, node number, node name, pipeline segment length, etc.
[0105] It should be noted that the updated pipeline data mentioned above are all based on the attribute data of the target pipe segments and the attribute data of the target isolated points, and no other information needs to be entered.
[0106] Using the above method, isolated target nodes can be processed into nodes on the updated target pipe segment, resulting in updated pipeline network data. Compared to the previously mentioned method of deleting the target pipe segment, creating new pipe segments connected to the isolated target nodes, and then merging them into a new pipeline, this method improves the efficiency of pipeline network data processing. Furthermore, the GIS system can automatically update the pipeline network data based on the updated target pipe segment, avoiding the need for manual modification of the pipeline network data, thus improving the efficiency and accuracy of pipeline network data processing.
[0107] Optionally, after obtaining the updated target pipe segment, one possible implementation is that the GIS system can interact with an intermediate system, for example, by sending the updated target pipe segment to the intermediate system to determine whether the updated target pipe segment is suitable. The intermediate system can be the GIS system itself, or it can be any other system capable of performing the function of determining whether the updated target pipe segment is suitable; this application does not limit the scope of the application.
[0108] If the GIS system receives a suitable instruction triggered by the intermediate system, it replaces the target pipe segment with the updated target pipe segment to obtain updated pipeline data. If the GIS system receives an inappropriate instruction triggered by the intermediate system, it can perform the aforementioned processing steps on the target pipe segment again to obtain the updated target pipe segment again.
[0109] Another possible implementation is that the aforementioned GIS system can provide a front-end interface on the user side. Figure 6 This is another schematic diagram of a front-end interface provided in an embodiment of this application. After obtaining the updated target pipe segment, the GIS system can display the updated target pipe segment on the front-end interface, such as... Figure 6 As shown, this allows users to determine whether the updated target pipe segment needs adjustment.
[0110] If so, here's one possible implementation method; please continue to refer to it. Figure 6 The aforementioned GIS system receives a reprocessing instruction from the user triggered via the front-end interface for the isolated target node. In response to this instruction, it replaces the temporary node with the isolated target node to obtain the updated target pipe segment again. It should be noted that the replacement can be performed using any of the replacement methods described in step S203. For another possible implementation, please refer to [link / reference]. Figure 6 The aforementioned GIS system receives a removal command for the updated target pipe segment triggered by the user through the front-end interface, and in response to the removal command, deletes the updated target pipe segment to revert to the state before any processing was performed on the target pipe segment. Figure 3The state shown is as described above. Then, the pipeline data processing method described in the preceding steps is repeated.
[0111] If not, please continue to refer to the following: Figure 6 The aforementioned GIS system receives a data change instruction for the target pipe segment triggered by the user through the front-end interface, and in response to the data change instruction, replaces the target pipe segment with the updated target pipe segment to obtain the updated pipeline network data. Figure 7 This is another front-end interface diagram provided in an embodiment of this application. The target pipe segment is replaced with the updated target pipe segment as described above. Figure 7 As shown.
[0112] By employing the aforementioned processing methods after obtaining the updated target pipe section, the updated target pipe section can be checked and adjusted to ensure the accuracy of the obtained updated pipeline network data.
[0113] The pipeline data processing method provided in this application obtains the updated target pipeline segment by adding a temporary node on the target pipeline segment and replacing the temporary node with an isolated target node. The isolated target node is then processed into a node on the updated target pipeline segment. At the same time, the GIS system can automatically update the pipeline data based on the updated target pipeline segment without the need for manual modification of the pipeline data, thereby improving the efficiency and accuracy of pipeline data processing.
[0114] The following explains how to use the aforementioned target isolated node to replace the aforementioned temporary node.
[0115] Figure 8 This is a flowchart illustrating a method for replacing a temporary node with a target isolated node, provided as an embodiment of this application. Figure 8 As shown, the method includes:
[0116] S301. Move the temporary node to the preset position range of the target isolated point for the first time.
[0117] S302. Using a magnetic attraction method, the temporary node that was moved initially is moved again to the location of the nearest isolated node.
[0118] The location of the nearest isolated node can be obtained, for example, using the Euclidean distance calculation formula.
[0119] Using a magnetic method, the GIS system can automatically move the temporary node to the nearest isolated node. If the GIS system moves the temporary node to the target isolated node again in response to a user-triggered manual move command, the new position of the temporary node will be limited by the map zoom level of the GIS system. That is, the map of the GIS system cannot be zoomed in infinitely; therefore, the position of the temporary node after the move cannot be exactly the same as the position of the target isolated node. Therefore, using a magnetic method to automatically move the temporary node again avoids the limitation of the map zoom level.
[0120] S303. Determine whether the position of the temporary node after the second movement is the same as the location of the target isolated point.
[0121] That is, determine whether the position coordinates of the temporary node after the above-mentioned relocation are the same as the position coordinates of the above-mentioned isolated target point.
[0122] If yes, proceed to step S305; otherwise, proceed to step S304.
[0123] S304. Move the temporary node again to the preset position range of the target isolated point until the position of the temporary node after the second movement is the position of the target isolated point.
[0124] S305. Replace the temporary node with the target isolated node.
[0125] The pipeline data processing method provided in this application moves temporary nodes to target isolated nodes by magnetic attraction, which avoids the limitation of map zoom level when manually moving temporary nodes, so that the temporary nodes and target isolated nodes completely overlap. At the same time, the addition of position judgment between the target isolated point and the temporary node can make the replacement more accurate, and thus the pipeline data more accurate.
[0126] The following example uses the aforementioned GIS system, including its front-end interface, to illustrate how users can interact with the GIS system through the front-end interface to explain how to process pipeline network data.
[0127] Figure 9 This is a flowchart illustrating another pipeline data processing method provided in an embodiment of this application. Figure 9 As shown:
[0128] S401. Determine the target isolated node to be processed from the pipeline network data, and the target pipeline segment to which the target isolated node belongs.
[0129] S402, Trigger the instruction to add a temporary node on the above target pipe segment.
[0130] S403. In response to the triggered instruction to add a temporary node on the target pipe segment, a temporary node is added on the target pipe segment, and the target pipe segment is redrawn to obtain a temporary target pipe segment.
[0131] S404. Move the temporary node to the preset position range of the target isolated point for the first time.
[0132] S405. Using a magnetic attraction method, the temporary node that was moved initially is moved again to the location of the target isolated node.
[0133] S406. Replace the temporary node with the aforementioned isolated target node, and redraw the target pipe segment to obtain the updated target pipe segment.
[0134] S407. Determine whether the updated target pipe section needs to be adjusted.
[0135] If yes, proceed to step S408; otherwise, proceed to step S409.
[0136] S408. The user triggers a reprocessing instruction using the front-end interface and returns to the execution step S404.
[0137] S409. The user triggers a data change command using the front-end interface and executes step S410.
[0138] S410. In response to the user-triggered data change instruction for the target pipe segment, the updated target pipe segment is used to replace the target pipe segment, and the updated pipe network data is obtained.
[0139] The pipeline data processing method provided in this application utilizes a front-end interface to enable interaction between the user and the GIS system. It can display the graphic changes at each step in real time on the front-end interface, allowing the user to judge whether it is appropriate and make timely adjustments, thereby making the pipeline data more accurate.
[0140] Figure 10 This is a schematic diagram of a pipeline data processing device provided in an embodiment of this application. Figure 10 As shown, the device includes: a determination module 11, an addition module 12, a replacement module 13, and an update module 14.
[0141] The determining module 11 is used to determine the target isolated node to be processed from the pipeline network data, and the target pipe segment to which the target isolated node belongs; the target pipe segment is the pipe segment from the first node to the second node;
[0142] A new module 12 is added to add a temporary node on the target pipe segment and redraw the target pipe segment to obtain a temporary target pipe segment; the temporary target pipe segment includes: a first temporary pipe segment from the first node to the temporary node, and a second temporary pipe segment from the second node to the temporary node;
[0143] Replacement module 13 is used to replace the temporary node with the target isolated node and redraw the target pipe segment to obtain an updated target pipe segment; the updated target pipe segment includes: a first pipe segment from the first node to the target isolated node, and a second pipe segment from the second node to the target isolated node;
[0144] The update module 14 is used to replace the target pipe segment with the updated target pipe segment to obtain updated pipeline network data.
[0145] In one possible implementation, the replacement module 13 is used to initially move the temporary node to a preset position range of the target isolated point; then, using a magnetic attraction method, move the temporary node again to the position of the target isolated node; and finally, replace the temporary node with the target isolated node.
[0146] In this implementation, the replacement module 13 is specifically used to use a magnetic attraction method to move the temporary node after the initial movement to the location of the nearest isolated node; determine whether the location of the temporary node after the second movement is the location of the target isolated point; if so, replace the temporary node with the target isolated node; if not, move the temporary node again to the preset location range of the target isolated point until the location of the temporary node after the second movement is the location of the target isolated point.
[0147] In one possible implementation, the determining module 11 is configured to determine at least one candidate isolated node based on the pipeline topology of the pipeline data; determine the target isolated node from the at least one candidate isolated node; and determine the target pipe segment based on the pipeline data.
[0148] One possible implementation is that the temporary node is the central node on the target pipe segment; or, the temporary node is a node determined from the target pipe segment based on the distance between the target isolated node and the target pipe segment.
[0149] In one possible implementation, the update module 14 is used to display the updated target pipe segment; in response to a user-triggered data change command for the target pipe segment, the updated target pipe segment is used to replace the target pipe segment to obtain updated pipeline network data.
[0150] In this implementation, the update module 14 is specifically used to replace the temporary node with the target isolated node in response to the user-triggered reprocessing instruction for the target isolated node, so as to obtain the updated target pipe segment again; and / or, in response to the user-triggered removal instruction for the updated target pipe segment, delete the updated target pipe segment to revert to the target pipe segment.
[0151] The pipeline data processing device provided in this application can execute the pipeline data processing method in the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0152] Figure 11 This is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of this application. Figure 11 As shown, the electronic device 500 may include at least one processor 501 and a memory 502, such as a computer, tablet computer or other electronic device with processing capabilities.
[0153] Memory 502 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions. Memory 502 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0154] The processor 501 is used to execute computer execution instructions stored in the memory 502 to implement the pipeline data processing method described in the foregoing method embodiments. The processor 501 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0155] The electronic device 500 may also include a communication interface 504, through which it can communicate and interact with external devices. These external devices may be, for example, electronic devices such as computers or tablets.
[0156] In practical implementation, if the communication interface 504, memory 502, and processor 501 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.
[0157] Optionally, in a specific implementation, if the communication interface 504, memory 502, and processor 501 are integrated on a single chip, then the communication interface 504, memory 502, and processor 501 can communicate through an internal interface.
[0158] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Specifically, the computer-readable storage medium stores program instructions, which are used for the pipeline data processing method in the above embodiments.
[0159] This application also provides a computer program product including executable instructions stored in a readable storage medium. At least one processor of an electronic device 500 can read the executable instructions from the readable storage medium, and the at least one processor executes the executable instructions to cause the electronic device 500 to implement the pipeline data processing methods provided in the various embodiments described above.
[0160] This application also provides a chip on which a computer program is stored. When the computer program is executed by the chip, it implements the pipeline data processing method provided in various embodiments.
[0161] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0162] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for processing pipeline network data, characterized in that, The method includes: The target isolated node to be processed is determined from the pipeline network data, and the target pipeline segment to which the target isolated node belongs is determined; the target pipeline segment is the pipeline segment from the first node to the second node. A temporary node is added to the target pipe segment, and the target pipe segment is redrawn to obtain a temporary target pipe segment; the temporary target pipe segment includes: a first temporary pipe segment from the first node to the temporary node, and a second temporary pipe segment from the second node to the temporary node; wherein, the temporary node is the center node on the target pipe segment; or, the temporary node is a node determined from the target pipe segment based on the distance between the target isolated node and the target pipe segment; The temporary node is replaced with the target isolated node, and the target pipe segment is redrawn to obtain the updated target pipe segment; the updated target pipe segment includes: a first pipe segment from the first node to the target isolated node, and a second pipe segment from the second node to the target isolated node; Replace the target pipe segment with the updated target pipe segment to obtain the updated pipeline network data; The step of replacing the temporary node with the target isolated node includes: The temporary node is initially moved to a preset location range of the target isolated node; Using a magnetic attraction method, the temporary node, after its initial movement, is moved again to the location of the nearest isolated node; it is then determined whether the location of the temporary node after the second movement is the location of the target isolated node; if so, the temporary node is replaced by the target isolated node; if not, the temporary node is moved again to the preset location range of the target isolated node, until the location of the temporary node after the second movement is the location of the target isolated node. Replace the temporary node with the target isolated node.
2. The method according to claim 1, characterized in that, The step of determining the target isolated node to be processed from the pipeline network data, and the target pipeline segment to which the target isolated node belongs, includes: Based on the pipeline topology of the pipeline data, at least one candidate isolated node is determined; The target isolated node is determined from the at least one candidate isolated node; The target pipe segment is determined based on the pipeline network data.
3. The method according to claim 1, characterized in that, The step of replacing the target pipe segment with the updated target pipe segment to obtain updated pipeline network data includes: The updated target pipe segment is displayed; In response to a user-triggered data change command for the target pipe segment, the updated target pipe segment is used to replace the target pipe segment, resulting in updated pipeline network data.
4. The method according to claim 3, characterized in that, After displaying the updated target pipe segment, the method further includes: In response to the user-triggered reprocessing instruction for the target isolated node, the temporary node is replaced with the target isolated node to obtain the updated target pipe segment again; And / or, in response to a user-triggered updated target pipe segment removal command, delete the updated target pipe segment to revert to the original target pipe segment.
5. A pipeline network data processing device, characterized in that, The device includes: The determination module is used to determine the target isolated node to be processed from the pipeline network data, and the target pipe segment to which the target isolated node belongs; the target pipe segment is the pipe segment from the first node to the second node; A new module is added to add a temporary node on the target pipe segment and redraw the target pipe segment to obtain a temporary target pipe segment; the temporary target pipe segment includes: a first temporary pipe segment from the first node to the temporary node, and a second temporary pipe segment from the second node to the temporary node; wherein, the temporary node is the center node on the target pipe segment; or, the temporary node is a node determined from the target pipe segment based on the distance between the target isolated node and the target pipe segment; The replacement module is used to replace the temporary node with the target isolated node and redraw the target pipe segment to obtain the updated target pipe segment; the updated target pipe segment includes: a first pipe segment from the first node to the target isolated node, and a second pipe segment from the second node to the target isolated node; The update module is used to replace the target pipe segment with the updated target pipe segment to obtain the updated pipeline network data; When replacing the temporary node with the target isolated node, the replacement module is specifically used to initially move the temporary node to a preset position range of the target isolated node; then, using a magnetic attraction method, move the temporary node again to the position of the nearest isolated node; determine whether the position of the temporary node after the second movement is the position of the target isolated node; if yes, replace the temporary node with the target isolated node; if not, move the temporary node again to the preset position range of the target isolated node until the position of the temporary node after the second movement is the position of the target isolated node; and finally replace the temporary node with the target isolated node.
6. An electronic device, characterized in that, The electronic device includes: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the pipeline data processing method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the pipeline data processing method as described in any one of claims 1 to 4.