Three-dimensional pipe network incremental updating modeling method and device, storage medium and electronic equipment
By comparing two-dimensional vector pipeline data, and using quadtree tiles for incremental update modeling of three-dimensional pipelines, the problem of low efficiency in the update and maintenance of three-dimensional pipelines in existing technologies is solved, and rapid updates and efficient management are achieved.
Patent Information
- Application Number
- CN202211325010.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-10-27
AI Technical Summary
Existing 3D pipeline modeling technology cannot be updated and maintained quickly, resulting in low efficiency in the management of large-scale underground pipeline networks in cities.
By comparing the two-dimensional vector pipeline data before and after the pipeline network update within the target city area, the changed pipeline elements are identified, and a three-dimensional pipeline incremental update model is performed based on quadtree tiles. Relevant parameters are calculated, the three-dimensional tile index file is updated, and historical records are kept.
It enables rapid updates and maintenance of 3D pipe networks, reduces modeling computation, improves update efficiency, and supports efficient access and management of historical data.
Smart Images

Figure CN115641407B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of three-dimensional pipe network modeling, and particularly relates to a three-dimensional pipe network incremental update modeling method and device, a storage medium and an electronic device. BACKGROUND
[0002] With the rapid development of the national economy and the continuous progress of society, the construction of cities is also undergoing a new revolution. City construction not only extends in the direction of high altitude, but also develops in the direction of underground. Underground pipe network is important basic information for city planning, construction and management, and is also an important part of city infrastructure construction and management. Modern city underground pipe network includes water supply, rainwater, sewage, power, telecommunications, gas, heating, communication, broadcasting, military and other types, with characteristics of various types, wide range, complex layout and fast change.
[0003] For large-scale three-dimensional underground pipe network in cities, its update and maintenance has always been a difficult point in underground pipe network management. Existing three-dimensional pipe network update usually needs to re-model the pipelines in the entire city range, which not only has a large modeling repetition rate, high cost, long modeling time and low maintenance efficiency, but also seriously restricts the real-time update and maintenance of city three-dimensional underground pipe network. For example, the invention patent with publication number CN106683198A discloses a method for three-dimensional automatic modeling and scheduling rendering of comprehensive pipe network, which can automatically create a three-dimensional model using two-dimensional pipeline data. However, when the pipe network is updated or modified, a large number of repeated operations or complex modification processes will be caused by this method, which is not conducive to rapid update and maintenance.
[0004] Therefore, it is urgent to research a three-dimensional pipe network modeling method that can be quickly updated and maintained to meet the management needs of large-scale underground pipe network in cities. SUMMARY
[0005] Therefore, the application provides a three-dimensional pipe network incremental update modeling method and device, a storage medium and an electronic device, which can solve the problem that the existing three-dimensional pipe network modeling technology cannot be quickly updated and maintained.
[0006] In a first aspect, the application discloses a three-dimensional pipe network incremental update modeling method, which comprises the following steps:
[0007] Comparing the two-dimensional vector pipe network data before and after the pipe network update in the target city range to determine the changed pipe network elements;
[0008] Counting the quadtree tiles where the changed pipe network elements are located to determine the quadtree tiles and pipe network element information that need to be updated;
[0009] Taking the quadtree tiles that need to be updated as parent nodes and the pipe network elements that need to be updated as child nodes, performing three-dimensional pipe network update modeling to obtain a three-dimensional underground pipe network tile model.
[0010] Calculate the related parameters of the three-dimensional underground pipe network tile model and update to the corresponding three-dimensional tile index file, reorganize the three-dimensional pipe network data;
[0011] Record the changes of the three-dimensional pipe network tile model and the corresponding three-dimensional tile index file during each three-dimensional pipe network modeling update, and store them in different nodes of the distributed file system respectively to manage the history of three-dimensional pipe network incremental update.
[0012] On the basis of the above technical scheme, preferably, the two-dimensional vector pipe network data before and after the pipe network update in the comparison target city range judges the changed pipe network elements specifically include:
[0013] Respectively traverse the original two-dimensional vector pipe network data and the present two-dimensional vector pipe network data, extract new elements, delete elements, extract geometric elements, and extract attribute modified elements to judge the changed pipe network element composition element set, the pipe network element includes two-dimensional vector pipeline and pipe point element.
[0014] On the basis of the above technical scheme, preferably, the four-tree tile where the changed pipe network element is located is determined to be updated specifically includes:
[0015] Set the outer package geographic range of the single pipe network element that has changed, calculate the mapping relationship between the pipe network element and the terrain pyramid layer row and column based on the terrain tile pyramid subdivision, and calculate the corresponding four-tree tile row and column number according to the mapping relationship;
[0016] According to the different attributes of the element change, the four-tree tile row and column number where all elements in the element set are located is calculated to obtain all the four-tree tiles that need to be updated, including new tiles, deleted tiles, modified geometric tiles, and modified attribute tiles.
[0017] On the basis of the above technical scheme, preferably, the three-dimensional underground pipe network tile model is obtained by performing three-dimensional pipe network update modeling specifically includes:
[0018] Re-perform pipe network geometric modeling on the four-tree tiles that need to be updated, the pipe network geometric modeling includes pipe modeling, joint modeling and auxiliary facility modeling, and the corresponding three-dimensional pipe network model is obtained;
[0019] Query the attribute table information of the two-dimensional vector pipe network and perform pipe network attribute hanging on the three-dimensional pipe network model.
[0020] On the basis of the above technical scheme, preferably, the attribute table information of the two-dimensional vector pipe network is queried to perform pipe network attribute hanging on the three-dimensional pipe network model specifically includes:
[0021] Write the ID of the three-dimensional pipe network model as an attribute value into the corresponding three-dimensional model file;
[0022] Write all attribute information in the quadtree tile into the json index file, and the attribute information of different three-dimensional pipe network models is organized according to different IDs;
[0023] When clicking the three-dimensional pipe network model for attribute query, the ID of the three-dimensional pipe network model is obtained as the unique identification of the three-dimensional pipe network model;
[0024] Based on the ID of the three-dimensional pipe network model, the corresponding attribute information in the json index file is retrieved to realize the binding query of pipe network attribute data and three-dimensional model data.
[0025] On the basis of the above technical scheme, preferably, the related parameters of the three-dimensional underground pipe network tile model are calculated, and are updated to the corresponding three-dimensional tile index file, and the three-dimensional pipe network data is reorganized, and specifically includes:
[0026] For the new tile, the index of the corresponding tile data is added in the original index file, and the center point coordinates, range and transformation matrix information of the new tile are updated;
[0027] For the deleted tile, the index of the corresponding tile data is deleted in the original index file;
[0028] For the modified tile, the index of the corresponding tile data is modified in the original index file, and the center point coordinates, range and transformation matrix information of the modified tile are updated.
[0029] On the basis of the above technical scheme, preferably, the three-dimensional pipe network tile model and the corresponding three-dimensional tile index file are recorded when the three-dimensional pipe network is updated each time, and are stored in different nodes of the distributed file system, and the three-dimensional pipe network incremental update history management specifically includes:
[0030] Search all historical three-dimensional pipe network tile data, extract the tile files that have not changed, and store them in a node of the distributed file system;
[0031] At T x , extract other tiles except the unchanged tile, and store them in other nodes of the distributed file system;
[0032] At T x , update the three-dimensional tile index file I x of other tiles except the unchanged tile, and record the center point coordinates, range and transformation matrix information of all tiles at the current time;
[0033] When a user looks up the three-dimensional pipe network data at a certain time point, the three-dimensional tile index file at the current time is read, the tile data is read according to the three-dimensional tile index file, and the visualization of the three-dimensional underground pipe network is realized.
[0034] In a second aspect, the application discloses a three-dimensional pipe network incremental update modeling device, which comprises:
[0035] a change judgment module, which is used for comparing the two-dimensional vector pipe network data before and after the pipe network update in a target city range, judging the changed pipe network elements, and counting the quadtree tiles where the changed pipe network elements are located to determine the pipe network elements and the quadtree tile information that need to be updated;
[0036] a tile modeling module, which is used for taking the quadtree tile that needs to be updated as a parent node and the pipe network element that needs to be updated as a child node to perform three-dimensional pipe network update modeling and obtain a three-dimensional underground pipe network tile model;
[0037] an index update module, which is used for calculating the related parameters of the three-dimensional underground pipe network tile model and updating the related parameters to the corresponding three-dimensional tile index file to reorganize the three-dimensional pipe network model data;
[0038] a history management module, which is used for recording the change of the three-dimensional pipe network tile model and the corresponding three-dimensional tile index file during each three-dimensional pipe network update modeling and storing the change into different nodes of a distributed file system to perform three-dimensional pipe network incremental update history management.
[0039] In a third aspect, the application discloses an electronic device, which comprises at least one processor, at least one memory, a communication interface and a bus.
[0040] The processor, the memory and the communication interface can communicate with each other through the bus.
[0041] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to implement the method in the first aspect.
[0042] In a fourth aspect, the application discloses a computer readable storage medium, which stores computer instructions, and the computer instructions make the computer implement the method in the first aspect.
[0043] Compared with the prior art, the application has the following beneficial effects:
[0044] 1) The application obtains the changed pipeline and pipe point elements and the four-tree tile where they are located according to the comparison between the updated two-dimensional vector pipe network of the city and the original two-dimensional vector pipe network, re-performs three-dimensional modeling on them, and updates the three-dimensional pipe network organization file, so as to realize three-dimensional pipe network incremental update modeling and management. The updated pipeline and pipe point are determined by calculation, and only the three-dimensional modeling processing is performed on the updated elements, so that the modeling calculation amount is greatly reduced.
[0045] 2) The application only performs update modeling on pipe network elements, and the newly added tile, deleted tile and modified tile after modeling can be quickly updated to the corresponding three-dimensional tile index file, so as to re-organize the three-dimensional pipe network data, and the three-dimensional pipe network data reconstruction speed is fast, and the connection processing time of the updated pipe network data and the original pipe network data is greatly reduced.
[0046] 3) The modeling method based on incremental update simplifies the traditional three-dimensional update and maintenance mode and workload of large-scale underground pipe network, stores the tile files which do not change and the tile files which change in each tile into different nodes of a distributed file system, then performs three-dimensional underground pipe network incremental update history management based on time, improves the history data access efficiency, is easy to update and maintain, and improves the update and maintenance efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiment or prior art description. Obviously, the drawings in the following description only some embodiments of the application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.
[0048] Figure 1 The three-dimensional pipe network incremental update modeling method of the application;
[0049] Figure 2 The two-dimensional pipeline vector data change detection principle diagram of the application;
[0050] Figure 3 The model organization schematic diagram based on four-tree index of the application;
[0051] Figure 4 The three-dimensional pipe network modeling flowchart of the application;
[0052] Figure 5 The three-dimensional pipe network incremental update history record organization schematic diagram of the application;
[0053] Figure 6 The three-dimensional pipe network incremental update effect diagram of the application. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0055] Please refer to Figure 1 The present application provides a three-dimensional pipe network incremental updating modeling method, which comprises the following steps:
[0056] S1, comparing the two-dimensional vector pipe network data before and after the pipe network updating in the target city range, judging the changed pipe network elements.
[0057] Figure 2 The two-dimensional pipeline vector data change detection principle diagram of the present application. First, obtain the original two-dimensional vector pipe network data and the updated current two-dimensional vector pipe network data, traverse the original two-dimensional vector pipe network data and the current two-dimensional vector pipe network data respectively, extract new elements, delete elements, extract geometric elements, extract attribute modification elements, judge the changed pipe network element set, and the pipe network elements include two-dimensional vector pipeline and pipe point elements.
[0058] S11, new element extraction
[0059] Based on the element ID, compare the pipeline and pipe point data in the original two-dimensional vector pipe network data and the updated two-dimensional vector pipe network data, if there is no original object matching the target object, it means that the target object is a new element. Let the original two-dimensional vector pipe network data be DataA, the updated two-dimensional vector pipe network data be DataB, and the target object Object be a new element, which needs to satisfy:
[0060]
[0061] S12, delete element extraction
[0062] Based on the element ID, compare the pipeline and pipe point data in the original two-dimensional vector pipe network data and the updated two-dimensional vector pipe network data, if there is no original object matching the target object, it means that the target object is a new element. Let the original two-dimensional vector pipe network data be DataA, the updated two-dimensional vector pipe network data be DataB, and the target object Object be a new element, which needs to satisfy:
[0063]
[0064] S13, geometric modification element extraction
[0065] Based on the comparison of feature IDs between the original and updated 2D vector network data, if features with the same ID exist in both the original object Object1 and the target object Object2, but their geometries differ, then the target object is a geometrically modified feature. For a target object to be considered a geometrically modified feature, the following conditions must be met:
[0066]
[0067] Here, Object1.geometry and Object2.geometry are the geometric shapes of the original object Object1 and the target object Object2, respectively.
[0068] S14, Attribute Modification Feature Extraction
[0069] By comparing the original and updated 2D vector pipeline data using feature IDs, if features with that ID both exist as the original object Object1 and the target object Object2, but their attribute information differs, then the target object is an attribute-modifying feature. For a target object to be an attribute-modifying feature, the following conditions must be met:
[0070]
[0071] Among them, Object1.attribute and Object2.attribute are the attribute information of the original object Object1 and the target object Object2, respectively.
[0072] S2. Statistically analyze the quadtree tiles where the network elements that have changed are located, and determine the quadtree tiles and network element information that need to be updated.
[0073] S21. Set the outer geographical range of each pipeline element that changes in the element set, calculate the mapping relationship between the pipeline element and the rows and columns of the terrain pyramid based on the terrain tile pyramid partitioning, and calculate the corresponding quadtree tile row and column number according to the mapping relationship.
[0074] Let the outer geographic extent of a newly added feature in the feature set be (lonMin, lonMax, latMin, latMax), where lonMin is the minimum longitude, lonMax is the maximum longitude, latMin is the minimum latitude, and latMax is the maximum latitude. This corresponds to the k-th level of the topographic pyramid. Based on the mapping relationship between this extent and the rows and columns of the topographic pyramid, the tile row and column number (M, N) corresponding to the newly added feature Addi is:
[0075]
[0076] in To round down, Rounded up.
[0077] S22, according to the different attributes of the element change, the four tree tile row and column numbers of all elements in the element set are counted to obtain all four tree tiles needing to be updated, including new tiles, deleted tiles, modified geometry tiles and modified attribute tiles.
[0078] All four tree tiles needing to be updated can be expressed as:
[0079]
[0080] Wherein, the changed elements in the tile with row and column numbers (M, N) are features, including added elements add, deleted elements delete, geometry modified elements updateGeo, attribute modified elements updateAtt, coefficients i, j, m, l are element IDs.
[0081] S3, taking the four tree tile needing to be updated as a parent node and the pipe network element needing to be updated as a child node, performing three-dimensional pipe network update modeling to obtain a three-dimensional underground pipe network tile model.
[0082] The application re-constructs the three-dimensional model of the underground pipe network of the tile in need of updating according to the four tree tile, and realizes three-dimensional pipe network model update modeling.
[0083] Step S3 specifically includes the following steps:
[0084] S31, re-performing pipe network geometry modeling on the four tree tile needing to be updated, wherein the pipe network geometry modeling includes pipe modeling, joint modeling and accessory facility modeling, to obtain a corresponding three-dimensional pipe network model, including a corresponding three-dimensional pipe model, three-dimensional joint model and three-dimensional accessory facility model.
[0085] For added elements and geometry modified elements in a tile, re-three-dimensional modeling is needed.
[0086] Figure 3 As shown in the model organization diagram based on the four tree index, the pipe network elements re-performed pipe network geometry modeling can be divided into pipes, joints and accessory facilities.
[0087] Figure 4 As shown in the three-dimensional pipe network modeling flowchart of the application, the pipes and joints are constructed based on an automatic modeling algorithm, and the accessory facilities are constructed based on a standard model library instantiation object.
[0088] S311, pipe modeling
[0089] The pipe modeling is constructed according to the geographic position and pipe diameter parameters of the pipeline, and the three-dimensional pipe model, wherein the elbow pipe is a difficulty in pipe modeling.
[0090] AsFigure 4 The present application is shown, interpolation sampling of elbow, analysis of topological relationship, realization of elbow fine modeling. Set the two sides of the elbow end point P3 and P4, P3 in the pipeline center line and P4 in the intersection of the pipeline center line is S, the starting point of the intermediate arc segment is P1(x p1 ,y p1 ,z p1 ), the end point is P2(x p2 ,y p2 ,z p2 ), the corresponding arc segment center is S1(x s1 ,y s1 ,z s1 ), then the sampling point C n (x n ,y n ,z n ) on the arc segment Can be calculated by the following equations:
[0091]
[0092] Where θ is the sampling angle, n = 1, 2, …, Q, Q is the total number of sampling points, parameters a, b, c, t can be calculated by the following formula:
[0093]
[0094] T = ax s1 -by s1 -cz s1
[0095] Along the path modeling of C1, C2, …, C Q , you can build a three-dimensional elbow model.
[0096] S312, joint modeling
[0097] The joint is a component that connects the pipeline, including two-way joint (elbow), three-way joint (T, Y type joint) and four-way joint. According to the characteristics of different joints, three-dimensional joint model is constructed, and the construction steps are as follows:
[0098] The two-way joint is divided into two straight pipes and one elbow, and three-dimensional modeling is carried out respectively, and finally they are combined to build a two-way model.
[0099] Three and four can be based on two to build, three-way joint is divided into a two-way joint and a straight pipe, four-way joint can be divided into two two-way.
[0100] Through joint splitting, the shape, size, angle and other joint vector data of each connected pipe segment of the joint are obtained, and the corresponding pipeline joint model is automatically constructed according to these data.
[0101] S313, modeling of the accessory facility
[0102] Since the accessory facility shape and material have similarity, the modeling of the accessory facility can be achieved by setting a standard accessory facility library for instantiation modeling, and a three-dimensional accessory facility model is obtained.
[0103] Taking the tile center point as the local coordinate system origin, setting the coordinates of the current accessory facility relative to the origin as (Δx, Δy, Δz), the scaling factor as (scalex, scaley, scalez), and the rotation angle as (α, β, γ), the translation, scaling, and rotation matrices of the current accessory facility are respectively:
[0104]
[0105]
[0106]
[0107] The accessory facility is based on matrix transformation M matrix = M scaling *M rotation *M translation Instantiation modeling is achieved.
[0108] S32, query the attribute table information of the two-dimensional vector pipe network, and hang the pipe network attribute of the three-dimensional pipe network model.
[0109] For pipe, joint, accessory facility and other objects, respectively associate name, code, belonging road and other attribute description information, generate attribute table information of two-dimensional vector pipe network, and hang it with three-dimensional pipe network geometric model, which is convenient for three-dimensional model data query and visualization.
[0110] Step S32 specifically includes the following steps:
[0111] S321, write the ID of the three-dimensional pipe network model as an attribute value into the corresponding three-dimensional model file;
[0112] S322, write all attribute information in the quadtree tile into the json index file, and the attribute information of different three-dimensional pipe network models is organized according to different IDs;
[0113] S323, when clicking the three-dimensional pipe network model for attribute query, the ID of the three-dimensional pipe network model is obtained as the unique identification of the three-dimensional pipe network model;
[0114] S324, based on the ID of the three-dimensional pipe network model, the corresponding attribute information in the json index file is retrieved, and the binding query of the pipe network attribute data and the three-dimensional model data is realized.
[0115] S4. Calculate the relevant parameters of the three-dimensional underground pipe network tile model, update the corresponding three-dimensional tile index file, and reorganize the three-dimensional pipe network data.
[0116] After the 3D pipeline network model is updated and modeled, it needs to be reorganized to connect and integrate with the original pipeline network, so as to realize the query and visualization of a large-scale 3D underground pipeline network. This reorganization is mainly achieved through index updates.
[0117] S41. For newly added tiles, add the index of the corresponding tile data to the original index file, and update the center point coordinates, range and transformation matrix information of the newly added tiles.
[0118] S42. For deleting tiles, delete the index of the corresponding tile data in the original index file;
[0119] S43. For modified tiles, modify the index of the corresponding tile data in the original index file, and update the center point coordinates, range and transformation matrix information of the modified tile.
[0120] S5. Record the changes in the 3D pipeline tile model and the corresponding 3D tile index file during each 3D pipeline network update modeling, and store them in different nodes of the distributed file system to perform 3D pipeline network incremental update history management.
[0121] The three-dimensional pipeline incremental update of the present invention not only updates data, but also performs historical management of data based on time.
[0122] Figure 5 The diagram shows the organization of the incremental update history of a 3D pipeline network. A historical management mechanism is constructed based on time series data for historical 3D pipeline network data, specifically including the following steps:
[0123] S51. Traverse and search all historical 3D pipe network tile data, and extract the tile files {Tile} that have not changed. e |e=1,2,…,u}, where u is the total number of tiles that have not changed at present, and it is stored separately in a node of the distributed file system;
[0124] S52, targeting T x At time {V}, extract all tiles except the invariant tiles. x,f |f=1,2,…,v}, where v is the total number of tiles that have changed, and they are stored in other nodes of the distributed file system respectively;
[0125] S53, targeting T x At any given time, update the 3D tile index file I for all tiles except the invariant tiles. x Record the center point coordinates, range, and transformation matrix information of all tiles at the current moment;
[0126] When a user looks up a certain time point T h of three-dimensional pipe network data, first, read the three-dimensional tile index file I h of the current time T h , and then read the tile data according to the three-dimensional tile index file I h , realize the visualization of the three-dimensional underground pipe network, and the three-dimensional pipe network incremental update visualization effect is as shown in Figure 6 .
[0127] According to the two-dimensional vector pipe network data before and after the large-scale update of the city, the application automatically extracts the updated elements and calculates the tile where the updated elements are located, performs three-dimensional modeling on the changed elements, and updates the three-dimensional organization index file, realizes the large-scale three-dimensional incremental update and management of the underground pipe network of the city, and calculates the updated pipelines and pipe points, only the three-dimensional modeling processing is performed on the updated elements, greatly reduces the modeling calculation amount, and the newly added tile, the deleted tile and the modified tile after modeling are quickly updated to the corresponding three-dimensional tile index file, so as to reorganize the three-dimensional pipe network data, and the three-dimensional underground pipe network incremental update history management can be realized based on time, has the advantages of small modeling calculation amount, fast modeling speed, easy update and maintenance management and the like.
[0128] Corresponding to the above method embodiment, the application also provides a three-dimensional pipe network incremental update modeling device, the device comprises:
[0129] The change judgment module is used for comparing the two-dimensional vector pipe network data before and after the pipe network update in the target city range, judging the changed pipe network elements, and counting the quadtree tile where the changed pipe network elements are located, and determining the pipe network elements and the quadtree tile information that need to be updated;
[0130] The tile modeling module is used for taking the quadtree tile that needs to be updated as a parent node and the pipe network element that needs to be updated as a child node, performing three-dimensional pipe network update modeling, and obtaining a three-dimensional underground pipe network tile model;
[0131] The index update module is used for calculating the related parameters of the three-dimensional underground pipe network tile model and updating to the corresponding three-dimensional tile index file, and reorganizing the three-dimensional pipe network model data;
[0132] The history management module records the change of the three-dimensional pipe network tile model and the corresponding three-dimensional tile index file when the three-dimensional pipe network update modeling is performed each time, and performs three-dimensional pipe network incremental update history management.
[0133] The above system embodiment and method embodiment are one-to-one corresponding, and the system embodiment can be referred to the method embodiment.
[0134] The application further discloses an electronic device, comprising at least one processor, at least one memory, a communication interface and a bus; wherein the processor, the memory and the communication interface complete mutual communication through the bus; the memory stores program instructions which can be executed by the processor; and the processor invokes the program instructions to realize the foregoing method of the application.
[0135] The application further discloses a computer readable storage medium which stores computer instructions, and the computer instructions make the computer realize all or part of steps of the method according to the embodiments of the application. The storage medium comprises a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and various storage program codes.
[0136] The system embodiments described above are only illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, can be distributed on multiple network units. A person of ordinary skill in the art can select part or all of the modules to realize the purposes of the embodiments according to actual needs without creative labor.
[0137] The above only describes the preferred embodiments of the application and is not intended to limit the application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the application shall be included in the protection scope of the application.
Claims
1. A method for incremental update modeling of a three-dimensional pipe network, characterized in that, The method comprises: Comparing the two-dimensional vector pipe network data of the pipe network in the target city range before and after updating to determine the changed pipe network elements; Statistics of the four-tree tile blocks where the changed pipe network elements are located to determine the four-tree tile blocks and pipe network element information that need to be updated; Taking the four-tree tile blocks that need to be updated as parent nodes and the pipe network elements that need to be updated as child nodes, three-dimensional pipe network updating modeling is performed to obtain a three-dimensional underground pipe network tile block model; The related parameters of the three-dimensional underground pipe network tile block model are calculated and updated to the corresponding three-dimensional tile index file to reorganize the three-dimensional pipe network data; Reorganizing the three-dimensional pipe network data specifically comprises: For the new tile block, the index of the corresponding tile block data is added in the original index file, and the center point coordinates, range and transformation matrix information of the new tile block are updated; For the deleted tile block, the index of the corresponding tile block data is deleted in the original index file; For the modified tile block, the index of the corresponding tile block data is modified in the original index file, and the center point coordinates, range and transformation matrix information of the modified tile block are updated; The changes of the three-dimensional pipe network tile block model and the corresponding three-dimensional tile index file during each three-dimensional pipe network updating modeling are recorded and stored in different nodes of a distributed file system for three-dimensional pipe network incremental update history management; The three-dimensional pipe network incremental update history management specifically comprises: All historical three-dimensional pipe network tile block data are searched and extracted, and the unchanged tile block files are separately stored in a node of the distributed file system; For T x At the moment, other tiles except the invariant tile are extracted and stored in other nodes of the distributed file system respectively. For T x At the moment, update the three-dimensional tile index file of the tile other than the invariant tile I x Record the center point coordinates, range and transformation matrix information of all tiles at the current moment; When a user searches for three-dimensional pipe network data at a certain time point, the three-dimensional tile index file at the current time is read, the tile block data is read according to the three-dimensional tile index file, and the visualization of the three-dimensional underground pipe network is realized.
2. The three-dimensional pipe network incremental update modeling method according to claim 1, characterized by, The comparison of the two-dimensional vector pipe network data of the pipe network in the target city range before and after updating to determine the changed pipe network elements specifically comprises: The original two-dimensional vector pipe network data and the current two-dimensional vector pipe network data are respectively traversed to extract new elements, deleted elements, geometric elements and attribute modified elements, to determine the changed pipe network element set, wherein the pipe network elements include two-dimensional vector pipelines and pipe point elements.
3. The three-dimensional pipe network incremental update modeling method according to claim 2, characterized by, The statistics of the four-tree tile blocks where the changed pipe network elements are located to determine the four-tree tile blocks that need to be updated specifically comprises: The outer geographical range of the single pipe network element that changes is set, the mapping relationship between the pipe network element and the terrain pyramid layer row and column is calculated based on the terrain tile pyramid subdivision, and the corresponding four-tree tile block row and column number is calculated according to the mapping relationship; According to the different attributes of the element changes, the four-tree tile block row and column numbers of all elements in the element set are counted to obtain all the four-tree tile blocks that need to be updated, including new tile blocks, deleted tile blocks, modified geometric tile blocks and modified attribute tile blocks.
4. The three-dimensional pipe network incremental update modeling method according to claim 1, characterized by, The three-dimensional pipe network updating modeling to obtain the three-dimensional underground pipe network tile block model specifically comprises: The pipe network geometry modeling of the four-tree tile blocks that need to be updated is performed again, the pipe network geometry modeling includes pipe modeling, joint modeling and auxiliary facility modeling to obtain the corresponding three-dimensional pipe network model; The attribute table information of the two-dimensional vector pipe network is queried and the pipe network attribute of the three-dimensional pipe network model is hung.
5. The three-dimensional pipe network incremental update modeling method according to claim 4, characterized by, The attribute table information of the queried two-dimensional vector pipe network is used to perform pipe network attribute hanging of the three-dimensional pipe network model, and specifically includes the following steps: Write the ID of the three-dimensional pipe network model as an attribute value into the corresponding three-dimensional model file; Write all attribute information in the quadtree tile into a json index file, and attribute information of different three-dimensional pipe network models is organized according to different IDs; When attribute query is performed on the three-dimensional pipe network model, the ID of the three-dimensional pipe network model is obtained as the unique identification of the three-dimensional pipe network model; Based on the ID of the three-dimensional pipe network model, corresponding attribute information in the json index file is retrieved, and binding query of pipe network attribute data and three-dimensional model data is realized.
6. A device for incremental update modeling of a three-dimensional pipe network, characterized by The device comprises: a change judgment module for comparing two-dimensional vector pipe network data before and after pipe network updating in a target city range, judging changed pipe network elements, and counting quadtree tiles where the changed pipe network elements are located to determine pipe network elements and quadtree tile information that need to be updated; a tile modeling module for taking the quadtree tile that needs to be updated as a parent node and the pipe network element that needs to be updated as a child node to perform three-dimensional pipe network updating modeling and obtain a three-dimensional underground pipe network tile model; an index updating module for calculating relevant parameters of the three-dimensional underground pipe network tile model and updating the relevant parameters to a corresponding three-dimensional tile index file to reorganize three-dimensional pipe network model data; reorganizing the three-dimensional pipe network data specifically includes: for a new tile, adding an index of corresponding tile data in an original index file, and updating center point coordinates, a range and transformation matrix information of the new tile; for a deleted tile, deleting an index of corresponding tile data in the original index file; for a modified tile, modifying an index of corresponding tile data in the original index file, and updating center point coordinates, a range and transformation matrix information of the modified tile; a history management module for recording changes of the three-dimensional pipe network tile model and the corresponding three-dimensional tile index file during each three-dimensional pipe network updating modeling, and storing the changes to different nodes of a distributed file system respectively to perform three-dimensional pipe network incremental updating history management; performing three-dimensional pipe network incremental updating history management specifically includes: iteratively searching all historical three-dimensional pipe network tile data, extracting tile files that have not changed, and storing the tile files to one node of the distributed file system; For T x At the moment, extract other tiles except the invariant tile, and store them into other nodes of the distributed file system respectively. For T x At the moment, update the three-dimensional tile index file of the tile other than the invariant tile I x Record the center point coordinates, range and transformation matrix information of all tiles at the current moment; when a user looks up three-dimensional pipe network data at a certain time point, reading a three-dimensional tile index file at the current time point, reading tile data according to the three-dimensional tile index file, and realizing visualization of the three-dimensional underground pipe network.
7. An electronic device, comprising: It comprises: at least one processor, at least one memory, a communication interface and a bus; wherein the processor, memory and communication interface complete mutual communication through the bus; the memory stores program instructions executable by the processor, and the processor invokes the program instructions to implement the method of any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions enable the computer to implement the method of any one of claims 1-5.
Citation Information
Patent Citations
3D automatic modeling and scheduling rendering method for integrated pipe network
CN106683198A
Method and system for generating underground pipe network three-dimensional model
CN106373188A