CN115033612A - Underground pipe network longitudinal section analysis method realized based on POSTGRESQL - Google Patents

Underground pipe network longitudinal section analysis method realized based on POSTGRESQL Download PDF

Info

Publication number
CN115033612A
CN115033612A CN202210788963.7A CN202210788963A CN115033612A CN 115033612 A CN115033612 A CN 115033612A CN 202210788963 A CN202210788963 A CN 202210788963A CN 115033612 A CN115033612 A CN 115033612A
Authority
CN
China
Prior art keywords
point
array
temprow
data
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210788963.7A
Other languages
Chinese (zh)
Other versions
CN115033612B (en
Inventor
赵雅鹏
江彬
樊伟平
齐迹
何高波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Arsc Underground Space Technology Development Co ltd
Original Assignee
Arsc Underground Space Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Arsc Underground Space Technology Development Co ltd filed Critical Arsc Underground Space Technology Development Co ltd
Priority to CN202210788963.7A priority Critical patent/CN115033612B/en
Publication of CN115033612A publication Critical patent/CN115033612A/en
Application granted granted Critical
Publication of CN115033612B publication Critical patent/CN115033612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A underground pipe network vertical section analysis method based on POSTGRESQL is realized, and comprises the following steps of inputting a pipe table name and serial numbers of two sections of pipes to be inquired; step two, the number of serial numbers of two sections of pipelines in a pipeline table is inquired by sql, if the serial numbers are equal to 2, the step three is entered, and if the serial numbers are not equal to 2, the return to a null record is exited; step three, judging whether the two pipe sections are adjacent according to the starting and ending point numbers of the two pipe sections, entering the step four when the two pipe sections are adjacent, and entering the step five when the two pipe sections are not adjacent; fourthly, the sql inquires numbers of two pipe sections in a pipeline table, lengths of the pipe sections, horizontal projection distance and other attribute information in the table to return; and step five, the two pipe sections are not adjacent, all the path paths from the starting pipe section to the ending pipe section are inquired, and the serial number, the length of the pipe section, the horizontal projection distance and other attribute information in the table are recorded in the traversing process. If the traversal reaches the end pipe section, the input serial numbers of the two pipe sections, the pipe section length, the horizontal projection distance and other attribute information in the table are combined to be used as a vertical section result to be returned, and meanwhile, the traversal is ended. The method realizes the query analysis algorithm of the vertical section attributes and the spatial information of two or more sections of the communication pipelines, and has the characteristics of no need of processing data, quick query of the reached path and recording of the vertical section attributes and the spatial attributes of the pipe network in the traversal process.

Description

Underground pipe network longitudinal section analysis method realized based on POSTGRESQL
Technical Field
The patent belongs to the technical field of geographic information, relates to an underground pipeline network analysis module, and relates to an underground pipe network vertical section analysis method based on POSTGRESQL.
Background
The Postgresql database is a powerful open source relational database. POSTGIS is a plug-in to the Postgresql database, where open source GIS space data processing and algorithm modules are provided. A space data processing process function is defined by combining a POSTGIS plug-in with a Postgresql database process function, and a desired space data processing result can be obtained by only querying the Postgresql database through a simple sql function at the back end. The underground pipe network belongs to a network vector data set, is very suitable for POSTGIS storage, and can realize the network analysis of the underground pipe network by combining a POSTGIS space analysis algorithm and a Postgresql database self-defined process function. This patent is based on this development.
The underground pipe network vertical section analysis belongs to undirected graph network analysis. A star and Dijkstra algorithms are provided in a POSTGRESQL database for undirected graph analysis, underground pipe network vertical section analysis can be performed based on the two algorithms, and the defects are shown in the following steps:
1. the pipeline data needs to be processed into a data structure conforming to a POSTGRESQL network data set;
2. after the communication path is inquired, the pipeline length and the horizontal projection length are calculated according to the analysis specification of the longitudinal section of the pipe network and the pipeline attribute which is not the final result but needs to be correlated;
because all the through paths can be traversed, and the analysis of the longitudinal section of the pipe network only needs to find the through paths, the query efficiency is not high under the requirement.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a method for analyzing the vertical section of the underground pipe network based on POSTGRESQL, which realizes the query and analysis algorithm of the vertical section attributes and the spatial information of two or more sections of the connected pipelines and has the characteristics of no need of processing data, quick query of the arrived path and recording of the vertical section attributes and the spatial attributes of the pipe network in the traversal process.
In order to achieve the purpose, the invention adopts the technical scheme that:
a underground pipe network longitudinal section analysis method based on POSTGRESQL comprises the following steps:
step 1, inputting a pipeline table name and serial numbers of two sections of pipelines to be inquired;
step 2, the number of the serial numbers of the two sections of pipelines in a pipeline table is inquired by sql, if the serial numbers of the two sections of pipelines are equal to 2, the step 3 is entered, and if the serial numbers of the two sections of pipelines are not equal to 2, the step exits and returns to a null record;
step 3, judging whether the two pipe sections are adjacent according to the starting and ending point numbers of the two pipe sections, entering the step 4 when the two pipe sections are adjacent, and entering the step 5 when the two pipe sections are not adjacent;
step 4, the sql inquires the serial numbers of two pipe sections in the pipeline table, the lengths of the pipe sections, the horizontal projection distance and other attribute information in the table to return;
and 5, the two pipe sections are not adjacent, all the path paths from the starting pipe section to the ending pipe section are inquired, the serial number, the length of the pipe section, the horizontal projection distance and other attribute information in the table are recorded in the traversing process, if the traversing reaches the ending pipe section, the input serial number, the length of the pipe section, the horizontal projection distance and the other attribute information in the table are used as a longitudinal section result to be returned, and meanwhile, the traversing is ended.
The step of step 5 is as follows:
step 5.1: initializing each variable:
adding line1_ s _ point and line1_ e _ point, and further recording all queried node arrays all _ check _ point _ array; adding an Objson object character string of pipeline1, carrying out a path array point _ path _ array, wherein a firstPoint in the Objson is line1_ s _ point, and a lastPoint is line1_ e _ point; adding an Objson object character string of pipeline1, carrying out a path array point _ path _ array, wherein a firstPoint in the Objson is line1_ e _ point, and a lastPoint is line1_ s _ point; adding line1_ s _ point and line1_ e _ point, and traversing node array current _ check _ point _ array;
and step 5.2: circularly judging whether the current _ check _ point _ array is greater than 0 or not, if so, entering the step 5.3, and otherwise, returning to the empty record;
step 5.3: identify init _ source, initialize cursor identify init _ source =0, function: identifying an opportunity to empty current _ check _ point _ array;
step 5.4: circularly traversing records with starting points or end points equal to current _ check _ point _ array in the pipeline table, recording duplication, and traversing each record temprow;
step 5.5: judging whether temprow reaches the tail of the cycle, if yes, entering step 5.2, and if not, entering step 5.6;
the step of step 5.6 is as follows:
step 5.6.1: acquiring a current traversal pieTable record temprow; meanwhile, whether init _ source is equal to 0 is judged, and if so, current _ check _ point _ array is assigned to null; then the init _ source is assigned to be 1 again; according to the starting and ending point temprow.s _ point of temprow, temprow.e _ point, if all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, go to step 5.6.2, and if all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, go to step 5.6.3.
The steps of step 5.6.2 are as follows:
step 5.6.2.1: judging that the all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, and entering step 5.6.2.2 if the condition is met;
step 5.6.2.2: if the temperature s _ point is equal to line2_ e _ point or line2_ s _ point, the process proceeds to step 5.6.2.3 if the condition is satisfied, and proceeds to step 5.6.2.4 if the condition is not satisfied
Step 5.6.2.3: traversing each piece of data in point _ path _ array, querying json data of which the last lastpoint of the current json data is equal to temprow.e _ point, splicing the Objson object of temprow and the Objson object of line2 after the data, returning records, and exiting two-layer loop
Step 5.6.2.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last piece of data with lastpoint equal to temprow.e _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.2.5;
step 5.6.2.5: adding temprow.s _ point to the arrays of all _ check _ point _ array and current _ check _ point _ array, and then entering step 5.5 again;
the step of step 5.6.3 is as follows:
step 5.6.3.1: judging that the all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, and entering step 5.6.3.2 if the condition is met;
step 5.6.3.2: if the temperature _ point is equal to line2_ e _ point or line2_ s _ point, the process goes to step 5.6.3.3 if the condition is satisfied, and the process goes to step 5.6.3.4 if the condition is not satisfied;
step 5.6.3.3: traversing each piece of data in the point _ path _ array, inquiring json data of which the last lastpoint of the current json data is equal to temprow.s _ point, splicing an Objson object of temprow and an Objson object of line2 after the data, returning to records, and exiting from two-layer circulation;
step 5.6.3.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last piece of data with lastpoint equal to temprow.s _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.3.5;
step 5.6.3.5: e _ point is added to the all _ check _ point _ array and current _ check _ point _ array arrays, and then step 5.5 is entered again.
And the step 2, the step 4, the step 5.2, the step 5.6.2.3 and the step 5.6.3.3 are all output.
The step 5.2 is a first layer cycle, and the step 5.5 is a second layer cycle.
The invention has the beneficial effects that:
1. the POSTGRESQL database self-defined function is adopted to realize the analysis of the vertical section of the pipe network, the method is novel, and the method is effectively integrated with the database.
2. The method realizes the analysis of two or more than two sections of pipe network longitudinal sections, the analysis result carries all information required by the display of the pipe network longitudinal sections, the method is flexible, and the method can meet the analysis requirements of all the pipe network longitudinal sections.
3. And (4) storing the original pipe point and pipeline data into a POSTGRESQL database, and calling the method to complete the analysis of the longitudinal section of the pipe network. Compared with the tap hypergraph software in the domestic GIS industry, the pipe network data is analyzed after being topologically constructed. Therefore, the method has the characteristic that analysis can be carried out without processing data.
4. The pipe network analysis method is developed based on a POSTGRESQL database process function, and the query efficiency is higher than that of a language (C + + \\ JAVA and the like) and database development mode. Compared with the domestic GIS industry faucet hypergraph software, the vertical section pipe network analysis efficiency is improved remarkably.
Drawings
FIG. 1 is a diagram of the overall flow of a profile analysis algorithm;
FIG. 2 is a common data structure definition in a profile analysis algorithm flow;
FIG. 3 is an overall flowchart of step five;
FIG. 4 is a flow chart of each substep of step five;
FIG. 5 is an overall flowchart of step 5.6;
FIG. 6 is a diagram showing the structure of each sub-step of step 5.6
FIG. 7 is a structural diagram of each sub-step of step 5.6.2;
fig. 8 is a diagram showing the structure of each sub-step of step 5.6.3.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
As shown in fig. 1, the overall flow structure diagram of the profile analysis algorithm has five logic steps: step 1, inputting a pipeline table name (marked as pipeline table) and numbers (marked as pipeline1 and pipeline 2) of two sections of pipelines to be inquired; step 2, the number of the serial numbers of the two sections of pipelines in a pipeline table is inquired by sql, if the serial numbers of the two sections of pipelines are equal to 2, the step 3 is entered, and if the serial numbers of the two sections of pipelines are not equal to 2, the step exits and returns to a null record; step 3, judging whether the two pipeline segments are adjacent according to the numbers of the starting point and the end point of the pipeline1 (marked as line1_ s _ point), the end point (marked as line1_ e _ point), the starting point of the pipeline2 (marked as line2_ s _ point) and the end point (marked as line2_ e _ point), entering the step 4 when the two pipeline segments are adjacent, and entering the step 5 when the two pipeline segments are not adjacent; step 4, sql queries the pipeline table for the Objson object with pipeline number pipeline1 (as in fig. 2) and returns the Objson object with pipeline number pipeline2 (as in fig. 2);
step 5, as shown in fig. 3, is an overall flowchart of step 5. As shown in fig. 4 as a block diagram of the algorithm steps in fig. 3, the sub-steps are as follows:
step 5.1: variables are initialized.
Adding line1_ s _ point and line1_ e _ point, and recording all queried node arrays (denoted as all _ check _ point _ array); adding an Objson object (the structure of which is shown in fig. 2) character string of pipeline1, and a path array (marked as point _ path _ array), wherein a firstPoint in the Objson is line1_ s _ point, and a lastPoint is line1_ e _ point; adding an Objson object character string of pipeline1, and entering a path array (marked as point _ path _ array), wherein a firstPoint in the Objson is line1_ e _ point, and a lastPoint is line1_ s _ point; adding line1_ s _ point and line1_ e _ point, and traversing the node array (marked as current _ check _ point _ array);
step 5.2: and circularly judging whether the condition is that current _ check _ point _ array is larger than 0, if so, entering the step 5.3, and otherwise, returning to the empty record.
Step 5.3: identification (marked as init _ source), initializing cursor identification init _ source =0, action: identify the opportunity to clear current _ check _ point _ array.
Step 5.4: circularly traversing the records with the starting point or the end point equal to current _ check _ point _ array in the pipeline table, recording the duplicate, and traversing each record (the record is recorded as temprow)
Step 5.5: judging whether temprow reaches the tail of the cycle, if yes, entering step 5.2, and if not, entering step 5.6
Step 5.6: as in fig. 5, as step 5.6 the overall flowchart. As shown in fig. 6 as a block diagram of the algorithm steps in fig. 5, the sub-steps are as follows:
step 5.6.1: acquiring a current traversal pieTable record temprow; meanwhile, whether init _ source is equal to 0 is judged, and if so, current _ check _ point _ array is assigned to null; then the init _ source is assigned to be 1 again; according to the judgment of the starting point and the ending point of temprow (denoted as temprow.s _ point, temprow.e _ point), if all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, step 5.6.2 is entered, and if all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, step 5.6.3 is entered into step 5.6.3
Step 5.6.2: as shown in fig. 7 as an overall flowchart of step 5.6.2, the sub-steps are as follows:
step 5.6.2.1: judging that all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, if the condition is satisfied, go to step 5.6.2.2
Step 5.6.2.2: if temprow.s _ point is equal to line2_ e _ point or line2_ s _ point, the process proceeds to step 5.6.2.3 if the condition is satisfied, and proceeds to step 5.6.2.4 if the condition is not satisfied
Step 5.6.2.3: traversing each piece of data in point _ path _ array, inquiring json data of which the last lastpoint of the current json data is equal to temprow.e _ point, splicing the Objson object of temprow and the Objson object of line2 after the data, returning records, and exiting from two-layer loop
Step 5.6.2.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last data with lastpoint equal to temprow.e _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.2.5
Step 5.6.2.5: add temprow.s _ point to the all _ check _ point _ array and current _ check _ point _ array arrays, then go to step 5.5 again
Step 5.6.3: as shown in fig. 8 as an overall flowchart of step 5.6.3, the sub-steps are as follows:
step 5.6.3.1: judging that the all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, if the condition is satisfied, the flow proceeds to step 5.6.3.2
Step 5.6.3.2: if the temprow.e _ point is equal to line2_ e _ point or line2_ s _ point, the process proceeds to step 5.6.3.3 if the condition is satisfied, and proceeds to step 5.6.3.4 if the condition is not satisfied
Step 5.6.3.3: traversing each piece of data in point _ path _ array, querying json data of which the last lastpoint of the current json data is equal to temprow.s _ point, splicing the Objson object of temprow and the Objson object of line2 after the data, returning records, and exiting two-layer loop
Step 5.6.3.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last data with lastpoint equal to temprow.s _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.3.5
Step 5.6.3.5: e _ point is added to the all _ check _ point _ array and current _ check _ point _ array arrays, and then step 5.5 is entered again.
In the above flow, step 2, step 4, step 5.2, step 5.6.2.3, and step 5.6.3.3 are all outputs. Step 5.2 is a first tier cycle and step 5.5 is a second tier cycle.

Claims (7)

1. A underground pipe network longitudinal section analysis method based on POSTGRESQL is characterized by comprising the following steps:
step 1, inputting a pipeline table name and serial numbers of two sections of pipelines to be inquired;
step 2, the number of the serial numbers of the two sections of pipelines in a pipeline table is inquired by sql, if the serial numbers of the two sections of pipelines are equal to 2, the step 3 is entered, and if the serial numbers of the two sections of pipelines are not equal to 2, the step exits and returns to a null record;
step 3, judging whether the two pipe sections are adjacent according to the starting and ending point numbers of the two pipe sections, entering the step 4 when the two pipe sections are adjacent, and entering the step 5 when the two pipe sections are not adjacent;
step 4, the sql inquires the serial numbers of two pipe sections in the pipeline table, the lengths of the pipe sections, the horizontal projection distance and other attribute information in the table to return;
and 5, the two pipe sections are not adjacent, all the path paths from the starting pipe section to the ending pipe section are inquired, the serial number, the length of the pipe section, the horizontal projection distance and other attribute information in the table are recorded in the traversing process, if the traversing reaches the ending pipe section, the input serial number, the length of the pipe section, the horizontal projection distance and the other attribute information in the table are used as a longitudinal section result to be returned, and meanwhile, the traversing is ended.
2. The underground pipe network profile analysis method based on POSTGRESQL as claimed in claim 1, wherein the step 5 is as follows:
step 5.1: initializing each variable:
adding line1_ s _ point and line1_ e _ point, and further recording all queried node arrays all _ check _ point _ array; adding an Objson object character string of pipeline1, carrying out a path array point _ path _ array, wherein a firstPoint in the Objson is line1_ s _ point, and a lastPoint is line1_ e _ point; adding an Objson object character string of pipeline1, carrying out a path array point _ path _ array, wherein a firstPoint in the Objson is line1_ e _ point, and a lastPoint is line1_ s _ point; adding line1_ s _ point and line1_ e _ point, and traversing node array current _ check _ point _ array;
step 5.2: circularly judging whether the current _ check _ point _ array is greater than 0 or not, if so, entering the step 5.3, and otherwise, returning to the empty record;
step 5.3: identify init _ source, initialize cursor identify init _ source =0, function: identifying an opportunity to empty current _ check _ point _ array;
step 5.4: circularly traversing records with starting points or end points equal to current _ check _ point _ array in the pipeline table, recording duplication removal, and traversing each record temprow;
step 5.5: and (5) judging whether temprow reaches the tail of the cycle, if so, entering the step 5.2, and if not, entering the step 5.6.
3. The underground pipe network profile analysis method realized based on POSTGRESQL according to claim 2, wherein the step 5.6 is as follows:
step 5.6.1: acquiring a current traversal pieTable record temprow; meanwhile, judging whether init _ source is equal to 0 or not, and if so, assigning current _ check _ point _ array to null; then the init _ source is assigned to be 1 again; according to the starting and ending point temprow.s _ point of temprow, temprow.e _ point, if all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, go to step 5.6.2, and if all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, go to step 5.6.3.
4. The underground pipe network profile analysis method realized based on POSTGRESQL according to claim 3, wherein the step 5.6.2 is as follows:
step 5.6.2.1: judging that the all _ check _ point _ array contains temprow.e _ point and does not contain temprow.s _ point, and entering step 5.6.2.2 if the condition is met;
step 5.6.2.2: if temprow.s _ point is equal to line2_ e _ point or line2_ s _ point, the process proceeds to step 5.6.2.3 if the condition is satisfied, and proceeds to step 5.6.2.4 if the condition is not satisfied
Step 5.6.2.3: traversing each piece of data in point _ path _ array, inquiring json data of which the last lastpoint of the current json data is equal to temprow.e _ point, splicing the Objson object of temprow and the Objson object of line2 after the data, returning records, and exiting from two-layer loop
Step 5.6.2.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last piece of data with lastpoint equal to temprow.e _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.2.5;
step 5.6.2.5: add temprow.s _ point to the array all _ check _ point _ array and current _ check _ point _ array, and then go to step 5.5 again.
5. The underground pipe network profile analysis method realized on the basis of POSTGRESQL according to claim 3, wherein the step 5.6.3 is as follows:
step 5.6.3.1: judging that the all _ check _ point _ array contains temprow.s _ point and does not contain temprow.e _ point, and if the condition is met, entering step 5.6.3.2;
step 5.6.3.2: if the temperature _ point is equal to line2_ e _ point or line2_ s _ point, the process goes to step 5.6.3.3 if the condition is satisfied, and the process goes to step 5.6.3.4 if the condition is not satisfied;
step 5.6.3.3: traversing each piece of data in the point _ path _ array, inquiring json data of which the last lastpoint of the current json data is equal to temprow.s _ point, splicing an Objson object of temprow and an Objson object of line2 after the data, returning to records, and exiting from two-layer circulation;
step 5.6.3.4: constructing an Objson object according to temprow, traversing each piece of data in point _ path _ array, screening out all the last piece of data with lastpoint equal to temprow.s _ point, respectively splicing each piece of data with the Objson object to generate new data, adding each piece of new data to a point _ path _ array, and then entering step 5.6.3.5;
step 5.6.3.5: e _ point is added to the all _ check _ point _ array and current _ check _ point _ array arrays, and then step 5.5 is entered again.
6. The underground pipe network profile analysis method based on POSTGRESQL as claimed in claims 1, 2, 4 and 5, wherein the steps 2, 4, 5.2, 5.6.2.3 and 5.6.3.3 are all outputs.
7. The underground pipe network profile analysis method based on POSTGRESQL as claimed in claim 2, wherein the step 5.2 is a first layer cycle, and the step 5.5 is a second layer cycle.
CN202210788963.7A 2022-07-06 2022-07-06 Underground pipe network longitudinal section analysis method based on POSTGRESQL Active CN115033612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210788963.7A CN115033612B (en) 2022-07-06 2022-07-06 Underground pipe network longitudinal section analysis method based on POSTGRESQL

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210788963.7A CN115033612B (en) 2022-07-06 2022-07-06 Underground pipe network longitudinal section analysis method based on POSTGRESQL

Publications (2)

Publication Number Publication Date
CN115033612A true CN115033612A (en) 2022-09-09
CN115033612B CN115033612B (en) 2024-06-14

Family

ID=83128414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210788963.7A Active CN115033612B (en) 2022-07-06 2022-07-06 Underground pipe network longitudinal section analysis method based on POSTGRESQL

Country Status (1)

Country Link
CN (1) CN115033612B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170195188A1 (en) * 2016-01-05 2017-07-06 Schneider Electric Usa Inc. System and methods for creating a geospatial network model in a client environment
CN107958104A (en) * 2017-11-08 2018-04-24 天津大学 By open GIS and the management of database sharing water supply network and hydraulic model method
CN108021709A (en) * 2017-12-28 2018-05-11 广州中工水务信息科技有限公司 A kind of drainage pipeline networks retrospective analysis method generally changed based on pipeline and search plain engine
WO2022100447A1 (en) * 2020-11-13 2022-05-19 华南理工大学 Automatic parsing and path analysis method for unit test code structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170195188A1 (en) * 2016-01-05 2017-07-06 Schneider Electric Usa Inc. System and methods for creating a geospatial network model in a client environment
CN107958104A (en) * 2017-11-08 2018-04-24 天津大学 By open GIS and the management of database sharing water supply network and hydraulic model method
CN108021709A (en) * 2017-12-28 2018-05-11 广州中工水务信息科技有限公司 A kind of drainage pipeline networks retrospective analysis method generally changed based on pipeline and search plain engine
WO2022100447A1 (en) * 2020-11-13 2022-05-19 华南理工大学 Automatic parsing and path analysis method for unit test code structure

Also Published As

Publication number Publication date
CN115033612B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
US8316060B1 (en) Segment matching search system and method
CN103970902B (en) Method and system for reliable and instant retrieval on situation of large quantities of data
CN102184299B (en) Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system
CN104050202A (en) Method and device for searching in database
CN111368368B (en) Method and device for constructing ship piping component library, storage medium and terminal
CN106874425B (en) Storm-based real-time keyword approximate search algorithm
CN111382347A (en) Object feature processing and information pushing method, device and equipment
CN114491172B (en) Rapid retrieval method, device and equipment for tree structure nodes and storage medium
CN116991869A (en) Method for automatically generating database query statement based on NLP language model
CN111506621A (en) Data statistical method and device
CN112434024A (en) Relational database-oriented data dictionary generation method, device, equipment and medium
US11573987B2 (en) System for detecting data relationships based on sample data
JP6418431B2 (en) Method for efficient one-to-one coupling
CN112948911A (en) System and method for converting S3D bridge model into MapGIS model
CN110750560A (en) System and method for optimizing network multi-connection
CN115033612A (en) Underground pipe network longitudinal section analysis method realized based on POSTGRESQL
CN110389953B (en) Data storage method, storage medium, storage device and server based on compression map
CN111984745A (en) Dynamic expansion method, device, equipment and storage medium for database field
CN114780443A (en) Micro-service application automatic test method and device, electronic equipment and storage medium
CN110825846B (en) Data processing method and device
CN116795859A (en) Data analysis method, device, computer equipment and storage medium
CN115860697B (en) Automatic data management system based on intelligent recognition
Wang et al. Fast Cycle Structure Detection for Power Grids Based on Graph Computing
CN115033621B (en) POSTGRESQL-based underground pipe network upstream and downstream tracking analysis method
CN108984634A (en) A kind of efficient distribution subscription method under cloud environment

Legal Events

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