A method, system, storage medium and intelligent terminal for topological verification of a water supply pipeline
By analyzing and verifying the water supply pipeline and point elements in the local database, the problems of low efficiency and poor reliability of topological verification in the existing system are solved, and efficient and accurate water supply pipeline network management is achieved.
Patent Information
- Application Number
- CN202310387262.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2043-04-06
AI Technical Summary
The existing water supply pipeline network topology verification system is inefficient and poorly reliable, and is easily restricted by development components and data deployment environments, which is not conducive to engineering applications.
By obtaining the current online transaction information in the server, analyzing pipeline and pipe point elements, verifying it in the local database based on preset distance tolerance and topology rules, reducing the types and quantity of data, rationally making use of the correlation between pipe points and pipelines, and establishing reasonable topology rules.
It significantly improves the efficiency of topology verification of water supply pipeline data, improves the scientificity and accuracy of topology verification, reduces unnecessary space inspections, and reduces the space for topology verification.
Smart Images

Figure CN116432456B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technologies, and in particular, to a water supply pipeline topology verification method, system, storage medium, and intelligent terminal. Background Art
[0002] With the continuous development of urban construction and the continuous expansion of the urban area, the planning and management of pipeline networks such as drainage, gas, and heating in the urban area have become increasingly important. Taking the urban drainage pipeline network as an example, since the drainage pipeline facilities include two types: node facilities and pipeline facilities, and the node facilities include various object forms such as rainwater inlets, inspection wells, valves, and gates; and the pipeline facilities also include various object forms such as drainage pipes and drainage channels, the drainage pipeline network is extremely complex.
[0003] In order to facilitate the management and maintenance of the drainage pipeline network, generally, first, the topological relationship of the drainage pipeline network is constructed according to the connection of the node facilities and the pipeline facilities, and then the pipeline network is planned, managed, and maintained according to the topological relationship of the drainage pipeline network.
[0004] Regarding the above related technologies, the inventor believes that most of the existing systems adopt an implementation mechanism of secondary development based on ArcEngine, and the efficiency of directly performing topological operations on the pipeline data stored in the database is relatively low, and it is easily restricted by the development components and the data deployment environment, with poor reliability, which is not conducive to the engineering application of water supply pipe network data management, and there is still room for improvement. Summary of the Invention
[0005] In order to improve the problems that the efficiency of directly performing topological operations on the pipeline data stored in the database is relatively low, and it is easily restricted by the development components and the data deployment environment, with poor reliability, which is not conducive to the engineering application of water supply pipe network data management, the present application provides a water supply pipeline topology verification method, system, storage medium, and intelligent terminal.
[0006] In a first aspect, the present application provides a water supply pipeline topology verification method, adopting the following technical solution:
[0007] A water supply pipeline topology verification method includes:
[0008] Obtain the current online transaction information in the server;
[0009] Analyze the current online pipeline element information and the current online pipe point element information in the current online transaction information;
[0010] Determine the current online transaction space information based on the current online pipeline element information and the current online pipe point element information;
[0011] Determine the extended space information based on the current online transaction space information and the preset distance tolerance information;
[0012] Create a local water supply pipeline database, and import the current online pipeline element information and the current online pipe point element information into the local water supply pipeline database to form local pipeline element information and local pipe point element information;
[0013] Perform topological verification on the local pipeline element information and the local pipe point element information in the extended space information based on the preset topological rules;
[0014] If there is a topological error, output the topological error information;
[0015] If the topology is successful, define the locally pipeline element information after topological verification as the actual pipeline element information, and define the locally pipe point element information after topological verification as the actual pipe point element information;
[0016] Update the current online transaction information according to the image information corresponding to the actual pipeline element information and the actual pipe point element information, and synchronize it to the server.
[0017] By adopting the above technical solution, fully considering the data update characteristics and topological verification characteristics in the actual business of water supply pipelines, downloading the water supply pipeline and pipe point facility data stored in the server-side database by category according to the update scope to the local computer, and merging them according to the point and line element types in GIS, can greatly reduce the types and quantities of data participating in topological verification, and significantly improve the efficiency of topological verification of online updated water supply pipeline data.
[0018] Optionally, the topological rules are: the coordinates of the pipe points corresponding to the local pipe point element information must be the same as the coordinates of the endpoints of the pipelines corresponding to the local pipeline element information, and the coordinates of the two endpoints of the pipelines corresponding to the local pipeline element information must be the same as the coordinates of the pipe points corresponding to two of the local pipe point element information respectively, and the topological level corresponding to the local pipeline element information is higher than the topological level corresponding to the local pipe point element information.
[0019] By adopting the above technical solution, reasonably utilize the relevance and characteristics of pipe points and pipelines in reality, thereby establishing topological rules, making the topological process more reasonable and improving the scientificity of topology.
[0020] Optionally, the method for determining the extended space information based on the current online transaction space information and the preset distance tolerance information includes:
[0021] Analyze the space dimension information in the current online transaction space information;
[0022] Determine the theoretical distance tolerance information based on the spatial dimension information and the preset ratio information, and update the distance tolerance information according to the theoretical distance tolerance information;
[0023] Analyze the fixed boundary information, fixed internal wall information, and active boundary information in the current online transaction space information;
[0024] Calculate the internal wall inclination information and the influence boundary information based on the fixed internal wall information and the active boundary information;
[0025] Perform matching analysis according to the influence coefficient information stored in the preset influence database and the internal wall inclination information to determine the influence coefficient corresponding to the internal wall inclination information, and define this influence coefficient as the fixed influence coefficient information;
[0026] Calculate the actual distance tolerance information based on the theoretical distance tolerance information and the fixed influence coefficient information, and update the distance tolerance information according to the actual distance tolerance information;
[0027] Do not extend the boundary corresponding to the fixed boundary information, extend the boundary belonging to the influence boundary information in the active boundary information according to the actual distance tolerance information, and extend the boundary not belonging to the influence boundary information in the active boundary information according to the theoretical distance tolerance information to determine the extended space information.
[0028] By adopting the above technical solution, it is determined whether the corresponding spatial boundary is constantly stationary to determine whether distance tolerance extension still needs to be done. When the boundary itself is constantly stationary and cannot be penetrated, then no matter how the pipe points and pipelines change, they cannot extend through the boundary line or fall into the adjacent area, reducing the inspection of unnecessary space and improving the topological verification efficiency.
[0029] Optionally, the method for updating the distance tolerance information includes:
[0030] Judge whether there are three or more distance tolerance information in the same boundary information in the current online transaction space information, and define this same boundary information as the selected boundary information;
[0031] If not, update the distance tolerance information according to the actual distance tolerance information;
[0032] If so, form optional extension straight line information according to any two distance tolerance information;
[0033] Determine the quantity information corresponding to the distance tolerance information falling on the optional extension straight line information according to the optional extension straight line information;
[0034] Filter out the optional extension straight line information with the largest quantity information, and define this optional extension straight line information as the final extension straight line information;
[0035] Calculate the difference information based on the final extended straight line information and the selected boundary information;
[0036] Update the distance tolerance information according to the difference information.
[0037] By adopting the above technical solution, a straight line forming the distance tolerance information is found by finding a straight line that occupies most of the data, avoiding the situation of repeatedly calculating the coordinates of the boundary line each time the spatial boundary line is called, reducing the computational amount of the computer and improving the analysis efficiency.
[0038] Optionally, the method for topologically verifying the local pipeline element information and the local pipe point element information in the extended space information includes:
[0039] Obtain the historical transaction information;
[0040] Sort the historical transaction information in a preset time sequence to obtain the historical transaction number information;
[0041] Analyze the historical numbered pipeline element information and the historical numbered pipe point element information in the historical transaction number information;
[0042] Analyze the current online pipeline element information, the current online pipe point element information, the historical numbered pipeline element information, and the historical numbered pipe point element information based on the time sequence to form the historical numbered pipeline element evolution trend information and the historical numbered pipe point element evolution trend information;
[0043] Determine the expected pipeline element information based on the historical numbered pipeline element evolution trend information;
[0044] Determine the expected pipe point element information based on the historical numbered pipe point element evolution trend information;
[0045] Determine the expected pipeline topological space information corresponding to the local pipeline element information according to the expected pipeline element information and the preset local space tolerance information;
[0046] Determine the expected pipe point topological space information corresponding to the local pipe point element information according to the expected pipe point element information and the local space tolerance information;
[0047] Perform topological verification on the corresponding local pipeline element information within the expected pipeline topological space information;
[0048] Perform topological verification on the corresponding local pipe point element information within the expected pipe point topological space information.
[0049] By adopting the above technical solution, the approximate area where the current location is located is deduced by observing the evolution process of historical data before this time, and then topological verification is carried out within the approximate area, greatly reducing the space for topological verification and improving the efficiency of topological verification.
[0050] Optionally, the method for topological verification of corresponding local pipeline element information in the expected pipeline topological space information includes:
[0051] Judge whether to output topological error information or actual pipeline element information;
[0052] If so, the topological verification is completed;
[0053] If not, determine the expected extended pipeline topological space information according to the expected pipeline topological space information and local space tolerance information;
[0054] Judge whether the expected extended pipeline topological space information exceeds the extended space information;
[0055] If so, analyze the actual pipeline topological space information based on the extended space information and the expected extended pipeline topological space information;
[0056] Update the expected pipeline topological space information according to the actual pipeline topological space information and then re-topologize, and re-judge whether to output topological error information or actual pipeline element information;
[0057] If not, update the expected pipeline topological space information according to the expected pipeline topological space information and then re-topologize, and re-judge whether to output topological error information or actual pipeline element information.
[0058] By adopting the above technical solution, when the expected space is inaccurate, topological verification is carried out by gradually expanding the space range, ensuring the accuracy of topological verification on the premise of minimizing the space for topological verification.
[0059] Optionally, if there is a topological error, the method for outputting topological error information includes:
[0060] After analyzing historical transaction information before outputting topological error information, obtain the approximate transaction information closest to the current online transaction information;
[0061] Judge whether there is an output of corresponding topological error information for the approximate transaction information;
[0062] If it exists, accumulate the number of times of topological error information, and define this number of times as error number information;
[0063] Judge whether the error number information is greater than the preset critical number information;
[0064] If it is greater than, output topological method error information;
[0065] If it is less than, continue to search for the historical transaction information that is closest to the current online transaction information except for the proximity transaction information, update the historical transaction information to the proximity transaction information, and continue to determine whether there is an output of the corresponding topology error information for the proximity transaction information;
[0066] If not, output the topology error information, define the current online transaction information after topology verification as the historical transaction information, and synchronize it to the server.
[0067] By adopting the above technical solution, by repeatedly checking for errors, it is possible to determine whether there is an error in the topology method, avoiding the situation where the topology error occurs due to a system error while the data itself is correct, and improving the accuracy of topology verification.
[0068] In a second aspect, the present application provides a water supply pipeline topology verification system, adopting the following technical solution:
[0069] A water supply pipeline topology verification system includes:
[0070] An acquisition module for acquiring current online transaction information and historical transaction information;
[0071] A memory for storing a program of the control method of any of the above water supply pipeline topology verification methods;
[0072] A processor, and the program in the memory can be loaded and executed by the processor to implement the control method of any of the above water supply pipeline topology verification methods.
[0073] By adopting the above technical solution, fully considering the data update characteristics and topology verification characteristics in the actual business of the water supply pipeline, downloading the water supply pipeline and pipe point facility data classified and stored in the server-side database to the local computer according to the update range, and merging them according to the point and line feature types in GIS, it is possible to greatly reduce the types and quantities of data participating in topology verification, and significantly improve the efficiency of topology verification for the online updated water supply pipeline data.
[0074] In a third aspect, the present application provides an intelligent terminal, adopting the following technical solution:
[0075] An intelligent terminal includes a memory and a processor, and a computer program capable of being loaded and executed by the processor for any of the above water supply pipeline topology verification methods is stored on the memory.
[0076] By adopting the above technical solution, fully considering the data update characteristics and topology verification characteristics in the actual business of water supply pipelines, downloading the water supply pipeline and pipe point facility data classified and stored in the server-side database to the local computer according to the update scope, and merging them according to the point and line feature types in GIS, it can greatly reduce the types and quantities of data participating in topology verification, and significantly improve the efficiency of topology verification for the online updated water supply pipeline data.
[0077] Fourthly, the present application provides a computer storage medium which can store corresponding programs and has the characteristics of large storage capacity and fast analysis.
[0078] The computer-readable storage medium adopts the following technical solution:
[0079] The computer-readable storage medium stores a computer program that can be loaded and executed by a processor to perform any one of the above water supply pipeline topology verification methods.
[0080] By adopting the above technical solution, fully considering the data update characteristics and topology verification characteristics in the actual business of water supply pipelines, downloading the water supply pipeline and pipe point facility data classified and stored in the server-side database to the local computer according to the update scope, and merging them according to the point and line feature types in GIS, it can greatly reduce the types and quantities of data participating in topology verification, and significantly improve the efficiency of topology verification for the online updated water supply pipeline data.
[0081] In summary, the present application includes at least the following beneficial technical effects:
[0082] 1. Downloading the water supply pipeline and pipe point facility data classified and stored in the server-side database to the local computer according to the update scope can greatly reduce the types and quantities of data participating in topology verification, and significantly improve the efficiency of topology verification for the online updated water supply pipeline data;
[0083] 2. By determining whether the corresponding spatial boundary is constantly stationary to determine whether distance tolerance extension is still required, unnecessary space checks are reduced, and the topology verification efficiency is improved;
[0084] 3. By deriving the approximate area where it is located and then performing topology verification within the approximate area, the space for topology verification is greatly reduced, and the topology verification efficiency is improved. Description of the Drawings
[0085] Figure 1 is a flowchart of a water supply pipeline topology verification method in an embodiment of the present application.
[0086] Figure 2It is a flowchart of a method for determining extended space information according to current online transaction space information and preset distance tolerance information in an embodiment of the present application.
[0087] Figure 3 It is a flowchart of a method for updating distance tolerance information in an embodiment of the present application.
[0088] Figure 4 It is a flowchart of a method for performing topological verification on local pipeline element information and local pipe point element information in extended space information in an embodiment of the present application.
[0089] Figure 5 It is a flowchart of a method for performing topological verification on corresponding local pipeline element information in predicted pipeline topological space information in an embodiment of the present application.
[0090] Figure 6 It is a flowchart of a method for outputting topological error information if there is a topological error in an embodiment of the present application.
[0091] Figure 7 It is a system module diagram of a water supply pipeline topological verification method in an embodiment of the present application. Detailed implementation manners
[0092] In order to make the objectives, technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the attached Figures 1-7 figures and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0093] An embodiment of the present application discloses a water supply pipeline topological verification method. Referring to Figure 1 , a water supply pipeline topological verification method includes:
[0094] Step 100: Obtain the current online transaction information in the server.
[0095] The current online transaction information is the information of the data of the water supply network stored in the current server, including the information of pipe points and pipelines.
[0096] Step 101: Analyze the current online pipeline element information and the current online pipe point element information in the current online transaction information.
[0097] The current online pipeline element information is the information of the elements belonging to the pipeline in the current online transaction information, such as: water pipe pipeline. The current online pipe point element information is the information of the elements belonging to the pipe point in the current online transaction information, such as: valve, fire hydrant, water meter, water meter box, tee, cross, exhaust valve, discharge port, water source, connection point, reserved port, etc. The current pipe point elements need to include three basic attributes: Shape, DID (the ID corresponding to the element in the database), and PipeType (the category to which the element belongs); the pipeline elements need to include two basic attributes: Shape and DID. Among them, Shape stores the spatial location information of the pipeline elements, and DID stores the unique identification code of the pipeline elements on the server side (usually the pipeline code).
[0098] Step 102: Determine the current online transaction spatial information based on the current online pipeline element information and the current online pipe point element information.
[0099] The current online transaction spatial information is the information about the size and coordinate range of the space where the current online pipeline element information and the current online pipe point element information are located. The determination method is to count the minimum and maximum values of the X coordinates and the minimum and maximum values of the Y coordinates of these elements, calculate the four boundaries, and obtain the spatial range involved in the editing transaction.
[0100] Step 103: Determine the extended spatial information according to the current online transaction spatial information and the preset distance tolerance information.
[0101] The distance tolerance information is the maximum error allowed in the actual pipeline editing in the system set by humans. The extended spatial information is the new space after adding the distance tolerance information. The determination method is to keep the center of the current online transaction spatial information unchanged, and then extend it in all directions along the directions perpendicular to the four side lines.
[0102] Step 104: Create a local water supply pipeline database, and import the current online pipeline element information and the current online pipe point element information into the local water supply pipeline database to form local pipeline element information and local pipe point element information.
[0103] The local water supply pipeline database is to establish a database containing local data to facilitate carrying the current online pipeline element information and the current online pipe point element information downloaded from the server. The local pipeline element information is the current online pipeline element information downloaded to the local. The local pipe point element information is the current online pipe point element information downloaded to the local.
[0104] Among them, before downloading, it is necessary to create a water supply pipeline element class and a water supply pipe point element class in the local water supply pipeline database, and then import the current online pipeline element information and the current online pipe point element information into them according to the category.
[0105] Step 105: Perform topology verification on the local pipeline element information and local pipe point element information in the extended space information based on preset topology rules.
[0106] The content of the topology rules is that the coordinates of the pipe points corresponding to the local pipe point element information must be the same as the coordinates of the endpoints of the pipelines corresponding to the local pipeline element information, and the coordinates of the two endpoints of the pipelines corresponding to the local pipeline element information must be the same as the coordinates of the pipe points corresponding to two of the local pipe point element information respectively, and the topology level corresponding to the local pipeline element information is higher than the topology level corresponding to the local pipe point element information.
[0107] Step 1051: If there is a topology error, output topology error information.
[0108] The topology error information is information indicating that there is an error in the pipeline or pipe point topology. The output content includes the topology error type, the pipe point code (server-side representation code) or pipeline code involved in the topology error, and the pipe point category or pipeline category involved in the topology error.
[0109] Step 1052: If the topology is successful, define the local pipeline element information after topology verification as the actual pipeline element information, and define the local pipe point element information after topology verification as the actual pipe point element information.
[0110] Step 106: Update the current online transaction information according to the image information corresponding to the actual pipeline element information and actual pipe point element information, and synchronize it to the server.
[0111] After confirming that the topology is correct, synchronize the graphic information of the pipe points and pipelines in the local water supply pipeline database to the server.
[0112] Refer to Figure 2 , the method for determining the extended space information according to the current online transaction space information and the preset distance tolerance information includes:
[0113] Step 200: Analyze the space dimension information in the current online transaction space information.
[0114] The space dimension information is the information of the space dimension in the current online transaction space information, which can be two-dimensional or three-dimensional, depending on the specific situation.
[0115] Step 201: Determine the theoretical distance tolerance information according to the space dimension information and the preset scale information, and update the distance tolerance information according to the theoretical distance tolerance information.
[0116] The ratio information is the information of the artificially set ratio, which is more flexible than the fixed value. Moreover, if a fixed value is set, when the spatial dimension information is large or small, the extended space may be negligible or multiplied. Therefore, setting a ratio is more in line with the actual content. The theoretical distance tolerance information is the information of the theoretical distance tolerance according to the spatial dimension information.
[0117] Step 202: Analyze the fixed boundary information, fixed internal wall information, and active boundary information in the current online transaction space information.
[0118] The fixed boundary information is the information of the boundary that is fixed and does not change. It meets two conditions. One is that it is located on the boundary, and the other is that it is fixed. For example, the concrete exterior wall of the basement. The fixed internal wall information is the information of the wall that is fixed and does not change. For example, the abandoned wall remaining in the soil. The active boundary information is the information of the boundary without restrictions. The analysis method is to manually detect the ground and store it on the server.
[0119] Step 203: Calculate the internal wall inclination information and the influence boundary information according to the fixed internal wall information and the active boundary information.
[0120] The internal wall inclination information is the inclination degree information between the fixed internal wall information and one of the active boundary information, and also includes the distance information, the length information of the internal wall, and the relative position information on the boundary. The calculation method is to use the active boundary information as the horizontal axis in the coordinate system, then take two points on the fixed internal wall information to make perpendicular lines to the active boundary information, and then determine the inclination degree according to the differences in the abscissa and ordinate of the two points as the side lines of the right triangle. The influence boundary information is the information of the boundary affected by the existence of the fixed internal wall information.
[0121] Step 204: Perform matching analysis according to the influence coefficient information stored in the preset influence database and the internal wall inclination information to determine the influence coefficient corresponding to the internal wall inclination information, and define this influence coefficient as the fixed influence coefficient information.
[0122] The fixed influence coefficient information is the information of the coefficient that affects the change of the boundary due to different inclination degrees. When the middle part is fixed, in essence, the whole is divided into two regions. Then only the part on one side extends away. According to the proportional method, although the whole space is regarded as a whole space, in fact, the local space is extending. Therefore, an influence coefficient is set to control the actual extended region. The mapping relationship between the influence coefficient information and the internal wall inclination information is stored in the database and is calculated by the staff in this field based on theoretical data and their own experience. When the system receives the corresponding internal wall inclination information, it automatically searches for the corresponding influence coefficient in the database and outputs it with the fixed influence coefficient information.
[0123] Step 205: Calculate the actual distance tolerance information according to the theoretical distance tolerance information and the fixed influence coefficient information, and update the distance tolerance information according to the actual distance tolerance information.
[0124] The actual distance tolerance information is the information of the actual allowable distance tolerance under the influence of the fixed influence coefficient information. The calculation method is the product of the two.
[0125] Step 206: Do not extend the boundary corresponding to the fixed boundary information, extend the boundary belonging to the influence boundary information in the active boundary information according to the actual distance tolerance information, and extend the boundary not belonging to the influence boundary information in the active boundary information according to the theoretical distance tolerance information to determine the extended space information.
[0126] Extend different regions in different extension ways, avoiding the situation that some regions that will not extend themselves are still processed in the extension way, reducing the calculation amount.
[0127] Refer to Figure 3 , the method for updating the distance tolerance information includes:
[0128] Step 300: Judge whether there are three or more distance tolerance information in the same boundary information in the current online transaction space information, and define this same boundary information as the selected boundary information.
[0129] The purpose of the judgment is to determine whether the boundary line of the extended space is parallel to or a straight line with the boundary line of the original space.
[0130] Step 3001: If not, update the distance tolerance information according to the actual distance tolerance information.
[0131] If not, it means it is parallel or a straight line, which means the actual distance tolerance information has a certain pattern and the analysis process is not complicated, and the distance tolerance information can be directly updated according to the actual distance tolerance information.
[0132] Step 3002: If so, form optional extended line information based on any two distance tolerance information.
[0133] The optional extended line information is the information of the line formed by the coordinate points corresponding to any two distance tolerance information. Here, it is a one-to-one correspondence. Taking the corner of the boundary line as the origin, the boundary line as the horizontal x-axis, and then taking the value corresponding to the distance tolerance information as the y-axis, so as to determine the information of the line formed by the distance tolerance information.
[0134] Step 301: Determine the quantity information corresponding to the distance tolerance information falling on the optional extended line information according to the optional extended line information.
[0135] The quantity information is the information of the quantity of the distance tolerance information falling on the optional extended line information.
[0136] Step 302: Screen out the optional extended line information with the largest quantity information, and define this optional extended line information as the final extended line information.
[0137] The purpose of screening is to reduce calculations. The final extended line information is essentially the information of the boundary of the extended space.
[0138] Step 303: Calculate the difference information according to the final extended line information and the selected boundary information.
[0139] The difference information is the distance value between any corresponding points of the final extended line information and the selected boundary information. The calculation method is to arbitrarily select an abscissa and then calculate the difference of the ordinates.
[0140] Step 304: Update the distance tolerance information according to this difference information.
[0141] Since the information of the boundary of the extended space has been determined, the distance tolerance information can be updated according to the difference information. Here, because when there are three or more distance tolerance information, it is very likely that the extended boundary line is a curve. However, since it is cumbersome to search for the distance tolerance information each time, a straight line containing the majority is directly used to determine the distance tolerance, which is more convenient and efficient while ensuring a certain degree of accuracy.
[0142] Refer to Figure 4 , the method for topologically verifying the local pipeline element information and local pipe point element information in the extended space information includes:
[0143] Step 400: Obtain historical transaction information.
[0144] Historical transaction information is the information of pipeline elements and pipe point elements stored after each query on the server. After each topology operation, whether successful or not, it will be stored as historical transaction information.
[0145] Step 401: Sort the historical transaction information in the preset time order to obtain historical transaction number information.
[0146] Historical transaction number information is the information of the numbers of transactions sorted in time order. Here, it is essentially the mapping relationship between historical transactions and time.
[0147] Step 402: Analyze the historical numbered pipeline element information and historical numbered pipe point element information in the historical transaction number information.
[0148] Historical numbered pipeline element information is the information of the elements belonging to the pipeline in the historical transaction information belonging to this number after the historical transaction information is numbered in time order. When the historical numbered pipe point element information is the information of the elements belonging to the pipe point in the historical transaction information belonging to this number after the historical transaction information is numbered in time order. The analysis method is the same as that in Step 101 and will not be elaborated here.
[0149] Step 403: Analyze the current online pipeline element information, current online pipe point element information, historical numbered pipeline element information, and historical numbered pipe point element information based on the time order to form historical numbered pipeline element evolution trend information and historical numbered pipe point element evolution trend information.
[0150] Historical numbered pipeline element evolution trend information is the information of the trend of changes in the pipeline formed after sorting in time order. Here, a spline curve can be formed for the coordinates of each point on the pipeline, and then the evolution trend predicted based on the previous development trend. Historical numbered pipe point element evolution trend information is the information of the trend of changes in the pipe points formed after sorting in time order. Similar to the formation of historical numbered pipeline element evolution trend information, it will not be elaborated here.
[0151] Step 404: Determine the predicted pipeline element information based on the historical numbered pipeline element evolution trend information.
[0152] Predicted pipeline element information is the information of the elements of the position and shape that the pipeline element information is about to evolve into at the current time according to the development of the historical numbered pipeline element evolution trend information. The determination method is that each point on the pipeline determines the predicted position according to the evolution trend at the end, and then all the predicted positions are connected in series to form the predicted pipeline.
[0153] Step 405: Determine the predicted pipe point element information based on the historical numbered pipe point element evolution trend information.
[0154] Same as step 404, which will not be elaborated here.
[0155] Step 406: Determine the predicted pipeline topological space information corresponding to the local pipeline element information according to the predicted pipeline element information and the preset local space tolerance information.
[0156] The local space tolerance information is the information of the allowed deviation values set manually. Here, it can also be a proportional value, and the method is similar to the determination method of the distance tolerance information, which will not be elaborated here. The predicted pipeline topological space information is the information of the space where a single pipeline is predicted to exist. The calculation method is to extend the predicted pipeline element information by the local space tolerance information in all directions.
[0157] Step 407: Determine the predicted pipe point topological space information corresponding to the local pipe point element information according to the predicted pipe point element information and the local space tolerance information.
[0158] Same as step 406, which will not be elaborated here.
[0159] Step 408: Perform topological verification on the corresponding local pipeline element information within the predicted pipeline topological space information.
[0160] Step 409: Perform topological verification on the corresponding local pipe point element information within the predicted pipe point topological space information.
[0161] Performing topological verification on pipelines and pipe points within the area of each single pipeline and pipe point reduces the space for topological verification of single pipe points and pipelines, making the topology faster and more efficient.
[0162] Refer to Figure 5 , the method for performing topological verification on the corresponding local pipeline element information within the predicted pipeline topological space information includes:
[0163] Step 500: Determine whether to output topological error information or actual pipeline element information.
[0164] The purpose of the determination is to determine whether there is a result to output.
[0165] Step 5001: If so, complete the topological verification.
[0166] Step 5002: If not, determine the predicted extended pipeline topological space information according to the predicted pipeline topological space information and the local space tolerance information.
[0167] The predicted extended pipeline topological space information is the information of the space after the predicted pipeline topological space information continues to extend the local space tolerance information outward. If not, it indicates that it is uncertain whether the topology is completed at this time. The reason for this situation is that there is a spatial intersection between the actual pipeline element information and the predicted pipeline topological space information, and the predicted pipeline topological space information does not completely contain the actual pipeline element information, so it is necessary to continue to extend outward.
[0168] Step 501: Determine whether the predicted extended pipeline topological space information exceeds the extended space information.
[0169] The purpose of the determination is to determine whether the maximum boundary has been reached and no further extension is possible.
[0170] Step 5011: If so, analyze the actual pipeline topological space information based on the extended space information and the predicted extended pipeline topological space information.
[0171] The actual pipeline topological space information is the extended pipeline topological space information finally within the extended space information due to the predicted extended pipeline topological space information exceeding the extended space information. The analysis method is to select the local space of the predicted extended pipeline topological space information that falls within the extended space information. If so, it indicates that the boundary of the entire space has been reached at this time, indicating that no further extension outward is possible.
[0172] Step 5012: If not, update the predicted pipeline topological space information according to the predicted pipeline topological space information, re-topologize, and re-determine whether to output topological error information or actual pipeline element information.
[0173] If not, it indicates that further extension is still possible at this time.
[0174] Step 502: Update the predicted pipeline topological space information according to the actual pipeline topological space information, re-topologize, and re-determine whether to output topological error information or actual pipeline element information.
[0175] Refer to Figure 6 , if there is a topological error, the methods for outputting topological error information include:
[0176] Step 600: After analyzing the historical transaction information before outputting the topological error information, obtain the approximate transaction information that is closest to the current online transaction information.
[0177] The approximate transaction information is the information of the transaction that is closest to the current online transaction information in chronological order.
[0178] Step 601: Determine whether there is an output of the corresponding topological error information for the approximate transaction information.
[0179] The purpose of the judgment is also incorrect to determine whether there are the same element categories.
[0180] Step 6011: If there is, accumulate the number of times of the topological error information, and define this number of times as the error count information.
[0181] The error count information is the number of times of the topological error information. The accumulation method here is to add 1 to the error count information when it appears once. If this topological error information disappears and the output is topological success information, then the error count information will be cleared to 0.
[0182] Step 6012: If there is no such situation, output the topological error information and define the current online transaction information after topological verification as historical transaction information and synchronize it to the server.
[0183] Step 602: Determine whether the error count information is greater than the preset critical count information.
[0184] The critical count information is the count information set by humans.
[0185] Step 6021: If it is greater, output the topological method error information.
[0186] The topological method error information is the information of topological method error, which also refers to the information of topological rule error here. If it is greater, it means that the number of topological errors is too large. Since the user will perform maintenance and verification after each topology, the topological error situation will be corrected, which means that there are basically no situations where there are multiple errors in the subsequent process. Then it is very likely that there is a problem with the system during the topology process, and generally this problem appears in the topological method, that is, the topological rule.
[0187] Step 6022: If it is less, continue to find the historical transaction information that is closest to the current online transaction information except for the proximity transaction information, update this historical transaction information as the proximity transaction information, and continue to determine whether there is an output of the corresponding topological error information for the proximity transaction information;
[0188] Based on the same inventive concept, an embodiment of the present invention provides a water supply pipeline topology verification system.
[0189] Refer to Figure 7 , a water supply pipeline topology verification system, including:
[0190] An acquisition module, configured to acquire current online transaction information and historical transaction information;
[0191] A memory, configured to store a program of a control method for a water supply pipeline topology verification method;
[0192] A processor, the program in the memory can be loaded and executed by the processor and implement a control method for a water supply pipeline topology verification method.
[0193] Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the system, device, and unit described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be elaborated here.
[0194] The embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded and executed by a processor to implement a water supply pipeline topology verification method.
[0195] Computer storage media include, for example, various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.
[0196] Based on the same inventive concept, the embodiment of the present invention provides an intelligent terminal, including a memory and a processor, where the memory stores a computer program that can be loaded and executed by the processor to implement a water supply pipeline topology verification method.
[0197] The above are all preferred embodiments of the present application. The protection scope of the present application is not limited thereby. Any feature disclosed in this specification (including the abstract and drawings), unless specifically described, can be replaced by other equivalent or similar-purpose alternative features. That is, unless specifically described, each feature is only an example in a series of equivalent or similar features.
Claims
1. A topological verification method for a water supply pipeline, characterized in that Including: Obtain the current online transaction information in the server; Analyze the current online pipeline element information and current online pipe point element information in the current online transaction information; Determine the current online transaction space information based on the current online pipeline element information and current online pipe point element information; Determine the extended space information according to the current online transaction space information and the preset distance tolerance information; Create a local water supply pipeline database, and import the current online pipeline element information and current online pipe point element information into the local water supply pipeline database to form local pipeline element information and local pipe point element information; Perform topology verification on the local pipeline element information and local pipe point element information in the extended space information based on the preset topology rules; If there is a topology error, output the topology error information; If the topology is successful, define the local pipeline element information after topology verification as actual pipeline element information, and define the local pipe point element information after topology verification as actual pipe point element information; Update the current online transaction information according to the image information corresponding to the actual pipeline element information and actual pipe point element information, and synchronize it to the server.
2. The method for verifying the topology of a water supply pipeline according to claim 1, wherein The topology rules are: the coordinates of the pipe points corresponding to the local pipe point element information must be the same as the coordinates of the endpoints of the pipelines corresponding to the local pipeline element information, and the coordinates of the two endpoints of the pipelines corresponding to the local pipeline element information must be the same as the coordinates of the pipe points corresponding to two of the local pipe point element information respectively, and the topology level corresponding to the local pipeline element information is higher than the topology level corresponding to the local pipe point element information.
3. The method for verifying the topology of a water supply pipeline according to claim 1, characterized in that The method for determining the extended space information according to the current online transaction space information and the preset distance tolerance information includes: Analyze the space size information in the current online transaction space information; Determine the theoretical distance tolerance information according to the space size information and the preset ratio information, and update the preset distance tolerance information according to the theoretical distance tolerance information; Analyze the fixed boundary information, fixed internal wall information, and movable boundary information in the current online transaction space information; Calculate the internal wall inclination information and influence boundary information according to the fixed internal wall information and movable boundary information; Perform matching analysis according to the influence coefficient information stored in the preset influence database and the internal wall inclination information to determine the influence coefficient corresponding to the internal wall inclination information, and define this influence coefficient as the fixed influence coefficient information; Calculate the actual distance tolerance information according to the theoretical distance tolerance information and the fixed influence coefficient information, and update the preset distance tolerance information according to the actual distance tolerance information; Do not extend the boundary corresponding to the fixed boundary information, extend the boundary belonging to the influence boundary information in the movable boundary information according to the actual distance tolerance information, and extend the boundary not belonging to the influence boundary information in the movable boundary information according to the theoretical distance tolerance information to determine the extended space information.
4. The topology verification method for a water supply pipeline according to claim 3, characterized in that, The method for updating the distance tolerance information includes: Judge whether there are three or more distance tolerance information in the same boundary information in the current online transaction space information, and define this same boundary information as the selected boundary information; If not, update the distance tolerance information according to the actual distance tolerance information; If so, form optional extension line information based on any two distance tolerance information; Determine the quantity information corresponding to the distance tolerance information falling on the optional extension line information according to the optional extension line information; Filter out the optional extension line information with the largest quantity information, and define this optional extension line information as the final extension line information; Calculate the difference information according to the final extension line information and the selected boundary information; Update the distance tolerance information according to this difference information.
5. The topological verification method for a water supply pipeline according to claim 1, wherein The method for performing topological verification on the local pipeline element information and local pipe point element information in the extension space information includes: Obtain historical transaction information; Sort the historical transaction information in the preset time order to obtain historical transaction number information; Analyze the historical numbered pipeline element information and historical numbered pipe point element information in the historical transaction number information; Analyze the current online pipeline element information, current online pipe point element information, historical numbered pipeline element information, and historical numbered pipe point element information based on the time order to form historical numbered pipeline element evolution trend information and historical numbered pipe point element evolution trend information; Determine the predicted pipeline element information based on the historical numbered pipeline element evolution trend information; Determine the predicted pipe point element information based on the historical numbered pipe point element evolution trend information; Determine the predicted pipeline topological space information corresponding to the local pipeline element information according to the predicted pipeline element information and the preset local space tolerance information; Determine the predicted pipe point topological space information corresponding to the local pipe point element information according to the predicted pipe point element information and the local space tolerance information; Perform topological verification on the corresponding local pipeline element information within the predicted pipeline topological space information; Perform topological verification on the corresponding local pipe point element information within the predicted pipe point topological space information.
6. The method for verifying the topology of a water supply pipeline according to claim 5, wherein The method for performing topological verification on the corresponding local pipeline element information within the predicted pipeline topological space information includes: Judge whether to output topological error information or actual pipeline element information; If so, complete the topological verification; If not, determine the predicted extended pipeline topological space information according to the predicted pipeline topological space information and the local space tolerance information; Judge whether the predicted extended pipeline topological space information exceeds the extension space information; If so, analyze the actual pipeline topological space information based on the extension space information and the predicted extended pipeline topological space information; Update the predicted pipeline topological space information according to the actual pipeline topological space information and then re-topologize, and re-judge whether to output topological error information or actual pipeline element information; If not, update the predicted pipeline topological space information according to the predicted pipeline topological space information and then re-topologize, and re-judge whether to output topological error information or actual pipeline element information.
7. A method for verifying the topology of a water supply pipeline according to claim 5, characterized in that, If there is a topological error, the method for outputting topological error information includes: After analyzing the historical transaction information before outputting the topological error information, obtain the proximity transaction information closest to the current online transaction information; Judge whether there is an output of corresponding topological error information for the proximity transaction information; If so, accumulate the number of times of topological error information, and define this number of times as the error number information; Judge whether the error number information is greater than the preset critical number information; If it is greater than, output the topology method error message; If it is less than, continue to find the historical transaction information that is closest to the current online transaction information except for the proximity transaction information, update the historical transaction information to the proximity transaction information, and continue to determine whether there is an output of the corresponding topology error message for the proximity transaction information; If it does not exist, output the topology error message and define the current online transaction information after topology verification as the historical transaction information and synchronize it to the server.
8. A water supply pipeline topology verification system, characterized in that Including: An acquisition module for acquiring the current online transaction information and the historical transaction information; A memory for storing a program of a control method for a water supply pipeline topology verification method according to any one of claims 1 to 7; A processor, the program in the memory can be loaded and executed by the processor and implement a control method for a water supply pipeline topology verification method according to any one of claims 1 to 7.
9. Smart terminal, characterized in that, Including a memory and a processor, and a computer program capable of being loaded and executed by the processor for a water supply pipeline topology verification method according to any one of claims 1 to 7 is stored on the memory.
10. A computer-readable storage medium, characterized in that, Stored with a computer program capable of being loaded and executed by the processor for a water supply pipeline topology verification method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional automatic modeling method for underground pipelines
CN108074283A
Vector data topological relation checking method
CN115422196A