A three-dimensional pipe network modeling method and device, electronic equipment and storage medium
By dividing the two-dimensional pipeline network data into blocks and defining a unified modeling origin, the problem of slow construction speed of three-dimensional pipeline network models is solved, enabling rapid construction of three-dimensional pipeline network models with large amounts of data, reducing hardware requirements, and improving the accuracy and efficiency of the models.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING SHIDAI LINGYU DIGITAL TECH CO LTD
- Filing Date
- 2022-11-04
- Publication Date
- 2026-04-24
AI Technical Summary
Existing technologies suffer from slow and time-consuming model building due to the massive amount of data involved, and the inability to generate models can result in errors, failing to meet actual production needs.
By uniformly dividing the spatial range of the two-dimensional pipeline network data into several single-block regions, defining a unified modeling origin, and merging the various three-dimensional pipeline network block models based on the modeling origin, a complete three-dimensional pipeline network model is constructed.
It enables the rapid construction of 3D pipeline network models with large amounts of data, reduces hardware requirements, avoids slow modeling speed and errors caused by large data volumes, and ensures the accuracy and efficiency of the model.
Smart Images

Figure CN115935561B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of underground pipeline management technology, and more specifically, to a three-dimensional pipeline modeling method, device, electronic device, and storage medium. Background Technology
[0002] Underground pipelines are vital for transmitting information, energy, and resources, serving as the lifeline of a city. Traditional pipeline management typically relies on two-dimensional methods based on CAD or GIS. While these methods can describe basic pipeline attributes and spatial distribution, they struggle to accurately and intuitively depict the three-dimensional spatial characteristics and interrelationships between pipelines. Three-dimensional underground pipeline systems, however, enhance the three-dimensionality and realism of pipelines, providing a comprehensive and accurate representation of the distribution of underground pipelines. This offers support for government decision-making in areas such as efficient construction, emergency response, and sustainable urban development.
[0003] Currently, the 3D analysis and application of underground pipelines rely on 2D spatial data models. However, due to the massive amount of data typically generated by 3D pipe points and pipelines, the construction of pipeline network models is extremely complex. This results in slow and time-consuming model building using existing technologies. Furthermore, if errors occur during the modeling process, the model may be incomplete or even fail to be generated, thus failing to meet actual production needs. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a three-dimensional pipeline network modeling method, device, electronic device and storage medium that can quickly construct three-dimensional pipeline networks with large data volumes.
[0005] Firstly, this application provides a three-dimensional pipeline network modeling method, the method comprising the following steps:
[0006] Obtain the two-dimensional pipeline network data to be constructed;
[0007] Determine the spatial range of the two-dimensional pipeline network data, and evenly divide the spatial range of the two-dimensional pipeline network data into several single-block regions;
[0008] A three-dimensional pipeline network block model is constructed for each of the aforementioned single regions; wherein a unified modeling origin is defined for each of the aforementioned single regions;
[0009] Based on the modeling origin, the constructed three-dimensional pipeline network block models are merged to obtain a complete three-dimensional pipeline network model.
[0010] In one possible implementation, based on the test command sent by the user, the two-dimensional pipeline network data includes a pipeline point table storing two-dimensional pipeline point data and a pipeline table storing two-dimensional pipeline data; the two-dimensional pipeline point data includes pipeline point number, X coordinate and Y coordinate, and the two-dimensional pipeline data includes pipeline segment code, start point number and end point number, wherein the start point number and end point number in the pipeline table are associated with the pipeline point number in the pipeline point table.
[0011] In one possible implementation, the spatial extent of the determined two-dimensional pipeline network data is a rectangular bounding box, and the rectangular bounding box is constructed in the following manner:
[0012] Based on the two-dimensional pipeline network data, obtain the minimum Xmin and maximum Xmax of the X coordinate, and the minimum Ymin and maximum Ymax of the Y coordinate among all pipe points.
[0013] Based on the obtained minimum and maximum Xmax values of the X coordinate, and minimum and maximum Ymax values of the Y coordinate, the coordinates of the four endpoints of the bounding box to be constructed are obtained as (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymin), and (Xmax, Ymax).
[0014] The rectangular bounding box is constructed based on the obtained four endpoint coordinates.
[0015] In one possible implementation, the step of uniformly dividing the spatial range of the determined two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed includes the following steps:
[0016] Based on the bisection method, the spatial range of the determined two-dimensional pipeline network data is gradually divided into 2... n There are n single-block regions, where n is a natural number greater than or equal to 1;
[0017] For the division of 2 n The data volume of each individual region is calculated, and the maximum value of the calculated data volume of each individual region is compared with the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed. This process continues until the maximum value of the calculated data volume of each individual region is less than the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, thus obtaining a definite value for n.
[0018] In one possible implementation, the two-dimensional pipe network data for each individual area is determined as follows:
[0019] Obtain the centroid of all pipelines within the specified spatial range;
[0020] The single region into which the centroid of the pipeline falls is defined as the pipeline, and the single region to which the pipe points intersecting or associated with the pipeline belong;
[0021] The two-dimensional pipe network data for each individual area is determined based on the assigned pipe points and pipelines.
[0022] In one possible implementation, a three-dimensional pipe network block model is constructed by slicing for each of the said single blocks.
[0023] In one possible implementation, after merging the constructed three-dimensional pipeline network block models based on the modeling origin to obtain a complete three-dimensional pipeline network model, the following steps are further included:
[0024] The obtained complete 3D pipeline network model is then overlaid on the base map after a correction operation; the correction operation is performed in the following manner:
[0025] The horizontal correction operation is performed based on the offset distance from the modeling origin;
[0026] Vertical correction is performed based on matrix affine transformation.
[0027] Secondly, this application provides a three-dimensional pipeline network modeling device, the device comprising:
[0028] The acquisition module is used to acquire the two-dimensional pipeline network data of the three-dimensional pipeline network to be constructed;
[0029] The partitioning module is used to determine the spatial range of the two-dimensional pipeline data and to uniformly divide the determined spatial range of the two-dimensional pipeline data into several single-block regions based on the maximum data volume threshold of a single block of the three-dimensional pipeline model to be constructed.
[0030] A construction module is used to construct a three-dimensional pipeline network block model for each of the single regions; wherein a unified modeling origin is defined for each of the single regions.
[0031] The merging module is used to merge the various 3D pipeline network block models constructed based on the modeling origin to obtain a complete 3D pipeline network model.
[0032] Thirdly, this application provides an electronic device comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the three-dimensional pipe network modeling method described in the first aspect are performed.
[0033] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the three-dimensional pipe network modeling method as described in the first aspect.
[0034] This embodiment provides a three-dimensional pipeline network modeling method, apparatus, electronic device, and storage medium. By dividing the spatial range of the two-dimensional pipeline network data to be constructed into blocks and defining a unified modeling origin for each block, a corresponding three-dimensional pipeline network block model is constructed. Finally, based on the unified modeling origin, the constructed three-dimensional pipeline network block models are merged to obtain a complete three-dimensional pipeline network model. This ensures that the construction of the three-dimensional pipeline network model is not limited by the amount of large data. Moreover, compared with the existing technology of loading the entire model at once, the modeling speed is faster and the hardware requirements are lower. Attached Figure Description
[0035] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a flowchart illustrating the three-dimensional pipeline network modeling method described in one embodiment of this application;
[0037] Figure 2 This is a schematic diagram illustrating the spatial range of the two-dimensional pipeline network data described in one embodiment of this application;
[0038] Figure 3 This is a schematic diagram of the process of uniformly dividing the spatial range of the determined two-dimensional pipeline network data into several single regions as described in one embodiment of this application;
[0039] Figure 4 This is a schematic diagram illustrating the division of a rectangular bounding box into four single regions as described in one embodiment of this application;
[0040] Figure 5 This is a schematic diagram of the pipelines being placed in multiple single-block areas according to one embodiment of this application;
[0041] Figure 6 This is a schematic diagram of the process for determining the two-dimensional pipeline network data of each individual region according to one embodiment of this application;
[0042] Figure 7 for Figure 5 A magnified view of a portion of point AA in the middle;
[0043] Figure 8 This is a schematic diagram of two-dimensional pipe network data in a single area as described in one embodiment of this application;
[0044] Figure 9 This is a structural block diagram of the three-dimensional pipeline modeling device described in one embodiment of this application;
[0045] Figure 10 This is a structural block diagram of an electronic device described in one embodiment of this application. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0047] Furthermore, the described embodiments are only a portion of the embodiments of this application, and not all of them. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0048] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0049] Urban underground pipelines include various types such as water supply, drainage, gas, electricity, and telecommunications. These pipelines are distributed in a complex and interconnected network, making it insufficient to represent the distribution of urban underground pipe networks using only two-dimensional plans. With the upgrading of application requirements, three-dimensional underground pipeline technology is increasingly being applied to various underground pipeline information systems. However, the technology for representing and analyzing three-dimensional spatial data models is still immature. Related three-dimensional analysis and applications of underground pipelines rely on two-dimensional spatial data models. The working mode for constructing three-dimensional pipeline data typically involves using data such as burial depth, elevation, material, and pipe diameter stored in the two-dimensional pipeline data attributes, as well as information on related features and accessories, to achieve three-dimensional modeling of the pipeline data using some automated three-dimensional modeling tool. Due to the massive amount of pipe points and pipeline data involved in constructing a three-dimensional pipeline network model, existing technologies result in slow and time-consuming model construction. Therefore, this application provides a three-dimensional pipeline network modeling method, device, electronic equipment, and storage medium that can quickly construct three-dimensional pipeline network models with large amounts of data.
[0050] See the instruction manual appendix Figure 1 In one embodiment, this application provides a three-dimensional pipeline network modeling method, the method comprising the following steps:
[0051] S1. Obtain the two-dimensional pipeline data of the three-dimensional pipeline network to be constructed;
[0052] In step S1, the two-dimensional pipeline network data to be constructed is obtained from the pipe point table and pipeline table compiled by the field survey. The pipe point table contains two-dimensional pipe point data, such as pipe point number, X coordinate, Y coordinate, ground elevation, burial depth, well depth, component type, number of connections, equipment number, accessories, characteristics, accessory scale, accessory type code, structure code, pipe point material, construction year, and exploration time. The pipeline table contains two-dimensional pipeline data, such as pipe segment code, starting point number, ending point number, mixed connection code, pipeline type, burial method, starting ground elevation, ending ground elevation, starting outer top elevation, ending outer top elevation, starting inner bottom elevation, and ending inner bottom elevation. Furthermore, the two-dimensional pipe point data and the two-dimensional pipeline data have unified geographic coordinates and projected coordinates. The topological relationship between the pipe point table and the pipeline table is established by associating the starting point number and ending point number of the pipeline table with the pipe point number of the pipe point table.
[0053] S2. Determine the spatial range of the two-dimensional pipeline network data, and divide the spatial range of the two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block of the three-dimensional pipeline network model to be constructed.
[0054] In step S2, the spatial range of the two-dimensional pipeline network data includes the spatial range of all pipe points and pipelines. Since the pipe points are all on the pipelines and intersect with the pipelines, specifically, the spatial range of the two-dimensional pipeline network data includes the spatial range of all pipelines.
[0055] See the instruction manual appendix Figure 2 In one embodiment, the spatial range of the determined two-dimensional pipeline network data is a rectangular bounding box, wherein the closed outer dark black line is the rectangular bounding box representing the spatial range of the two-dimensional pipeline network data, and the light gray lines within the rectangular bounding box are the pipelines. The rectangular bounding box is constructed in the following manner:
[0056] First, based on the two-dimensional pipeline network data obtained in step S1, the minimum X-coordinate Xmin and maximum X-coordinate Xmax, as well as the minimum Y-coordinate Ymin and maximum Y-coordinate Ymax, corresponding to the starting point or ending point of all pipelines are obtained. Then, four coordinates (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymin), and (Xmax, Ymax) are obtained by using the obtained minimum X-coordinate Xmin and maximum Xmax, as well as minimum Y-coordinate Ymin and maximum Y-coordinate Ymax. Finally, the coordinates (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymax), and (Xmax, Ymin) are connected in sequence to obtain a rectangular bounding box representing the spatial range of the two-dimensional pipeline network data.
[0057] In other embodiments, the spatial range of the determined two-dimensional pipeline data may also be circular or other closed-shaped structures, and its spatial range may be determined in a corresponding manner. This application does not limit or fix this.
[0058] For further details, please refer to the appendix to the instruction manual. Figure 3 After determining the spatial range of the two-dimensional pipeline network data, the spatial range of the two-dimensional pipeline network data is further divided into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed. This includes the following steps:
[0059] S201. Based on the bisection method, the spatial range of the determined two-dimensional pipeline network data is gradually divided into 2... n There are n single-block regions, where n is a natural number greater than or equal to 1;
[0060] S202, Regarding the division of 2 n The data volume of each individual region is calculated, and the maximum value of the calculated data volume of each individual region is compared with the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed. This process continues until the maximum value of the calculated data volume of each individual region is less than the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, thus obtaining a definite value for n.
[0061] For the aforementioned bisection method, for example, when n=0, the spatial range of the two-dimensional pipeline network data is divided into one single block region. The data volume of this single block region is the data volume of the entire spatial range of the two-dimensional pipeline network data. If the obtained data volume is M, and it is greater than the threshold of the maximum single block data volume of the three-dimensional pipeline network model to be constructed, then n=1. The threshold of the maximum single block data volume of the three-dimensional pipeline network model to be constructed is set according to the hardware foundation of the three-dimensional pipeline network model to be constructed. When n=1, the spatial range of the two-dimensional pipeline network data is divided into two single blocks region, the first single block region and the second single block region. Then, the first single block region and the second single block region are calculated respectively. The data volume of the two-dimensional pipe network data in a single area, where the larger of the two data volumes is N, is greater than the threshold for the maximum data volume of a single area in the three-dimensional pipe network model to be constructed. Therefore, n = 2. When n = 2, the spatial range of the two-dimensional pipe network data is divided into four single areas: the first to the fourth single areas. The data volume of the two-dimensional pipe network data in each of the first to fourth single areas is then calculated. The largest of the four data volumes is P, which is less than the threshold for the maximum data volume of a single area in the three-dimensional pipe network model to be constructed. Therefore, n = 2 is determined as the final value, and the spatial range of the two-dimensional pipe network data is evenly divided into four single areas. For details, please refer to the appendix of the instruction manual. Figure 4 The rectangular bounding box representing the spatial range of the two-dimensional pipeline network data is divided into four single regions, which are labeled with serial numbers 1-4.
[0062] It should also be noted that most pipelines are entirely located within a single area, and their affiliation to that area is undisputed; however, some pipelines may span multiple areas, as indicated in the instruction manual. Figure 5 As shown, within the rectangular bounding box representing the spatial extent of the two-dimensional pipeline network data, the dark black pipelines span the second, third, and fourth single-block regions. However, it is uncertain which single-block region these pipelines spanning multiple single-block regions belong to. Therefore, please refer to the appendix to the specification. Figure 6 This application determines the two-dimensional pipe network data for each individual area in the following manner:
[0063] S203. Obtain the centroid of all pipelines in the spatial range;
[0064] S204. The single-block area into which the centroid of the pipeline falls is defined as the pipeline, and the single-block area to which the pipe points intersecting or associated with the pipeline belong.
[0065] S205. Determine the two-dimensional pipe network data for each individual area based on the assigned pipe points and pipelines.
[0066] The centroid of the pipeline corresponds to the location of its center point, which can be determined using the relevant data in the pipeline table. The specific method for determining this centroid is well-known to those skilled in the art and will not be elaborated upon here. See the appendix to the specification. Figure 7 , it is Figure 5 The enlarged view at point AA shows pipelines labeled 1 and 2. The centroid of pipeline 1 falls within the second single-block region; therefore, pipeline 1 and its intersecting or associated pipe points belong to the second single-block region. Similarly, the centroid of pipeline 2 falls within the third single-block region; therefore, pipeline 2 and its intersecting or associated pipe points belong to the third single-block region. Finally, pipe points and pipelines belonging to the same single-block region are segmented block by block and saved separately. For details, please refer to the appendix of the instruction manual. Figure 8 This is a schematic diagram of two-dimensional pipe network data in a single area.
[0067] S3. Construct a three-dimensional pipeline network block model for each of the single regions; wherein, a unified modeling origin is defined for each of the single regions;
[0068] S4. Based on the modeling origin, merge the constructed three-dimensional pipeline network block models to obtain a complete three-dimensional pipeline network model.
[0069] In steps S3 and S4, when constructing the three-dimensional pipeline network model, a unified origin coordinate is defined, such as using latitude, longitude and elevation format, for example, (106.31, 29.55, 290.14). The three-dimensional pipeline network block model is constructed by segmenting each single area with a unified modeling origin. Since the three-dimensional pipeline network block model has a unified modeling origin coordinate, the relative and absolute positions of the three-dimensional pipeline network block model are fixed, thereby ensuring that the three-dimensional pipeline network block models can be seamlessly combined to obtain a complete three-dimensional pipeline network model.
[0070] Furthermore, after obtaining the complete 3D pipeline network model, it is usually necessary to overlay it with a base map. Due to different coordinate systems, slight deviations exist in the horizontal and vertical directions, requiring correction operations to achieve accurate positioning. Horizontal correction is achieved by setting offset distances based on the x and y directions of the modeling origin, where these offset distances can be measured on the displayed map. Vertical correction is achieved through matrix affine transformation, which needs to be combined with the base map or terrain and its degree of exaggeration. This is done by performing depth detection on the displayed map and then inputting the obtained values as parameters to ultimately achieve vertical correction. This ensures the flexibility of the constructed 3D pipeline network model's positioning.
[0071] This application provides a 3D pipeline network modeling method. First, the 2D pipeline network data is divided into multiple single regions using a rectangular bounding box. The size of each single region is determined based on the maximum data volume threshold of a single region in the 3D pipeline network model to be constructed and the rectangular bounding box. Then, for each single region, pipelines are selected according to their centroids, and pipe points are selected based on the pipelines, resulting in the 2D pipeline network data for each single region. Next, a modeling origin is defined for each single region, and a 3D pipeline network block model is constructed. Finally, the 3D pipeline network block models are seamlessly merged using a unified modeling origin, quickly obtaining a complete 3D pipeline network model. Compared to the existing technology of loading the entire model at once, block loading offers superior performance and lower hardware requirements, removing the limitation of large data volumes in 3D pipeline network model construction. Furthermore, the merged 3D pipeline network model can be further optimized by modifying the offset distance relative to the modeling origin and the matrix changes in the vertical direction, ensuring the flexibility of the 3D pipeline network model's positioning.
[0072] Based on the same inventive concept, this application also provides a three-dimensional pipeline network modeling device. Since the principle of the device in this application is similar to the three-dimensional pipeline network modeling method described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0073] As per the instruction manual Figure 9 As shown, this application also provides a three-dimensional pipeline network modeling device, the device comprising:
[0074] The acquisition module 901 is used to acquire the two-dimensional pipeline network data of the three-dimensional pipeline network to be constructed;
[0075] The partitioning module 902 is used to determine the spatial range of the two-dimensional pipeline data and to uniformly divide the determined spatial range of the two-dimensional pipeline data into several single-block regions based on the maximum data volume threshold of a single block of the three-dimensional pipeline model to be constructed.
[0076] The construction module 903 is used to construct a three-dimensional pipeline network block model for each of the single blocks; wherein a unified modeling origin is defined for each of the single blocks.
[0077] The merging module 904 is used to merge the various three-dimensional pipeline network block models constructed based on the modeling origin to obtain a complete three-dimensional pipeline network model.
[0078] In some embodiments, the two-dimensional pipeline network data includes a pipeline point table storing two-dimensional pipeline point data and a pipeline table storing two-dimensional pipeline data; the two-dimensional pipeline point data includes pipeline point number, X coordinate and Y coordinate, and the two-dimensional pipeline data includes pipeline segment code, starting point number and ending point number, wherein the starting point number and ending point number in the pipeline table are associated with the pipeline point number in the pipeline point table.
[0079] In some implementations, the spatial range of the two-dimensional pipeline network data determined by the partitioning module 902 is a rectangular bounding box, and the rectangular bounding box is constructed in the following manner:
[0080] Based on the two-dimensional pipeline network data, obtain the minimum Xmin and maximum Xmax of the X coordinate, and the minimum Ymin and maximum Ymax of the Y coordinate among all pipe points.
[0081] Based on the obtained minimum and maximum Xmax values of the X coordinate, and minimum and maximum Ymax values of the Y coordinate, the coordinates of the four endpoints of the bounding box to be constructed are obtained as (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymin), and (Xmax, Ymax).
[0082] The rectangular bounding box is constructed based on the obtained four endpoint coordinates.
[0083] In some implementations, the partitioning module 902 uniformly divides the determined spatial range of the two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed, including:
[0084] Based on the bisection method, the spatial range of the determined two-dimensional pipeline network data is gradually divided into 2... n There are n single-block regions, where n is a natural number greater than or equal to 1;
[0085] For the division of 2 n The data volume of each individual region is calculated, and the maximum value of the calculated data volume of each individual region is compared with the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed. This process continues until the maximum value of the calculated data volume of each individual region is less than the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, thus obtaining a definite value for n.
[0086] In some implementations, the partitioning module 902 determines the two-dimensional pipe network data for each individual region in the following manner:
[0087] Obtain the centroid of all pipelines within the specified spatial range;
[0088] The single region into which the centroid of the pipeline falls is defined as the pipeline, and the single region to which the pipe points intersecting or associated with the pipeline belong;
[0089] The two-dimensional pipe network data for each individual area is determined based on the assigned pipe points and pipelines.
[0090] In some implementations, the construction module 903 constructs a three-dimensional pipeline network block model for each of the single regions by slicing.
[0091] In some embodiments, the device further includes a calibration module, which is used to merge the constructed three-dimensional pipeline network block models based on the modeling origin to obtain a complete three-dimensional pipeline network model, and then overlay the obtained complete three-dimensional pipeline network model with the map base map after performing a correction operation. The horizontal correction operation is performed based on the offset distance of the modeling origin, and the vertical correction operation is performed based on matrix affine transformation.
[0092] The 3D pipeline network modeling device provided in this application acquires 2D pipeline network data of the 3D pipeline network to be constructed through an acquisition module; divides the spatial range of the 2D pipeline network data into blocks through a construction module, and defines a unified modeling origin for each block; constructs corresponding 3D pipeline network block models through the construction module; and merges the constructed 3D pipeline network block models based on the unified modeling origin through a merging module to obtain a complete 3D pipeline network model. This ensures that the 3D pipeline network model is not limited by the amount of data, and compared with the existing technology of loading the entire model at once, the modeling speed is faster and the hardware requirements are lower.
[0093] Based on the same concept of the present invention, the specification is attached. Figure 10 As shown in the embodiment of this application, an electronic device 1000 is provided. The electronic device 1000 includes: at least one processor 1001, at least one network interface 1004 or other user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to implement communication between these components. The electronic device 1000 may optionally include a user interface 1003, including a display (e.g., touchscreen, LCD, CRT, holographic imaging, or projector), a keyboard, or a clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0094] Memory 1005 may include read-only memory and random access memory, and provides instructions and data to processor 1001. A portion of memory 1005 may also include non-volatile random access memory (NVRAM).
[0095] In some implementations, memory 1005 stores executable modules or data structures, or subsets thereof, or extended sets thereof:
[0096] Operating system 10051 contains various system programs used to implement various basic business functions and handle hardware-based tasks;
[0097] Application module 10052 contains various applications, such as desktop launcher, media player, and browser, to implement various application services.
[0098] In this embodiment of the application, by calling the program or instructions stored in the memory 1005, the processor 1001 is used to execute steps such as in a three-dimensional pipeline network modeling method, which can ensure that the construction of a three-dimensional pipeline network model is not limited by the amount of large data and improve the modeling speed.
[0099] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs steps such as those in a three-dimensional pipe network modeling method.
[0100] Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk or hard disk. When the computer program on the storage medium is run, it can execute the above-mentioned three-dimensional pipeline modeling method.
[0101] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0104] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0105] Finally, it should be noted that the above embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A three-dimensional pipeline network modeling method, characterized in that, The method includes the following steps: Obtain the two-dimensional pipeline network data to be constructed; The spatial range of the two-dimensional pipeline network data is determined, and the spatial range of the two-dimensional pipeline network data is uniformly divided into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed. The spatial range of the two-dimensional pipeline network data is a rectangular bounding box, which is constructed as follows: Based on the two-dimensional pipeline network data, the minimum and maximum Xmin and Ymin and maximum Ymax of the X-coordinates of all pipe points are obtained; based on the obtained minimum and maximum Xmin and Ymax of the X-coordinates, the four endpoint coordinates (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymin), and (Xmax, Ymax) of the rectangular bounding box to be constructed are obtained; the rectangular bounding box is constructed based on the obtained four endpoint coordinates; the step of uniformly dividing the determined spatial range of the two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed includes the following steps: gradually dividing the determined spatial range of the two-dimensional pipeline network data into 2... n There are n single-block regions, where n is a natural number greater than or equal to 1; for the division of 2 n The data volume of each individual region is calculated, and the maximum value of the calculated data volume of each individual region is compared with the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, until the maximum value of the calculated data volume of each individual region is less than the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, so as to obtain a certain value of n; and the two-dimensional pipeline network data of each individual region is determined by the following method: obtaining the centroid of all pipelines in the spatial range; determining the individual region to which the centroid of the pipeline falls as the pipeline, and the individual region to which the pipeline points intersect or are associated with the pipeline belong; and determining the two-dimensional pipeline network data of each individual region based on the assigned pipeline points and pipelines; A three-dimensional pipeline network block model is constructed for each of the aforementioned single regions; wherein a unified modeling origin is defined for each of the aforementioned single regions; Based on the modeling origin, the constructed three-dimensional pipeline network block models are merged to obtain a complete three-dimensional pipeline network model.
2. The three-dimensional pipeline network modeling method according to claim 1, characterized in that, The two-dimensional pipeline network data includes a pipeline point table storing two-dimensional pipeline point data and a pipeline table storing two-dimensional pipeline data; the two-dimensional pipeline point data includes pipeline point number, X coordinate and Y coordinate, and the two-dimensional pipeline data includes pipeline segment code, starting point number and ending point number, wherein the starting point number and ending point number in the pipeline table are associated with the pipeline point number in the pipeline point table.
3. The three-dimensional pipeline network modeling method according to claim 2, characterized in that, For each of the aforementioned single regions, a three-dimensional pipeline network block model is constructed by slicing.
4. The three-dimensional pipeline network modeling method according to claim 3, characterized in that, After merging the constructed 3D pipeline network block models based on the modeling origin to obtain a complete 3D pipeline network model, the following steps are also included: The obtained complete 3D pipeline network model is then overlaid on the base map after a correction operation; the correction operation is performed in the following manner: The horizontal correction operation is performed based on the offset distance from the modeling origin; Vertical correction is performed based on matrix affine transformation.
5. A three-dimensional pipeline network modeling device, characterized in that, The device includes: The acquisition module is used to acquire the two-dimensional pipeline network data of the three-dimensional pipeline network to be constructed; A partitioning module is used to determine the spatial range of the two-dimensional pipeline network data and to uniformly divide the spatial range of the two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed. The spatial range of the two-dimensional pipeline network data is a rectangular bounding box, which is constructed as follows: Based on the two-dimensional pipeline network data, the minimum and maximum Xmin and Ymin and maximum Ymax of the X-coordinates of all pipe points are obtained; based on the obtained minimum and maximum Xmin and Ymax of the X-coordinates, the four endpoint coordinates (Xmin, Ymin), (Xmin, Ymax), (Xmax, Ymin), and (Xmax, Ymax) of the rectangular bounding box to be constructed are obtained; the rectangular bounding box is constructed based on the obtained four endpoint coordinates; The step of uniformly dividing the determined spatial range of the two-dimensional pipeline network data into several single-block regions based on the maximum data volume threshold of a single block in the three-dimensional pipeline network model to be constructed includes: gradually dividing the determined spatial range of the two-dimensional pipeline network data into 2... n There are n single-block regions, where n is a natural number greater than or equal to 1; for the division of 2 n The data volume of each individual region is calculated, and the maximum value of the calculated data volume of each individual region is compared with the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, until the maximum value of the calculated data volume of each individual region is less than the threshold value of the maximum data volume of each individual region in the three-dimensional pipeline network model to be constructed, so as to obtain a certain value of n; and the two-dimensional pipeline network data of each individual region is determined by the following method: obtaining the centroid of all pipelines in the spatial range; determining the individual region to which the centroid of the pipeline falls as the pipeline, and the individual region to which the pipeline points intersect or are associated with the pipeline belong; and determining the two-dimensional pipeline network data of each individual region based on the assigned pipeline points and pipelines; A construction module is used to construct a three-dimensional pipeline network block model for each of the single regions; wherein a unified modeling origin is defined for each of the single regions. The merging module is used to merge the various 3D pipeline network block models constructed based on the modeling origin to obtain a complete 3D pipeline network model.
6. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the three-dimensional pipe network modeling method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the three-dimensional pipe network modeling method as described in any one of claims 1-4.
Citation Information
Patent Citations
Method and system for generating underground pipe network three-dimensional model
CN106373188A
Two-dimensional and three-dimensional pipe network data organization and display method based on spatial database
CN110111410A