Mass pipe network data three-dimensional model dynamic updating method based on cesium
Patent Information
- Application Number
- CN202411280566.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
[0004]为了克服上述现有技术的不足,本发明的目的是提供一种基于cesium的海量管网数据三维模型动态更新方法,应用本技术实现了二维管网数据更新后,对应的三维管网模型数据也能得到实时更新,保证二维数据与三维模型的一致性,局部增量更新,又避免了重复整体发布海量管网数据的费时费力问题,所以该技术具有实时性,轻量化,避免重复建模的特点
1、管网的动态更新保证了三维管网模型的实时性,使得入库的二维管网数据与展示的管网三维模型是一致的,最新的。
Smart Images

Figure CN118796967A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of geographic information, and relates to three-dimensional modeling and local dynamic updating of underground pipelines, and specifically to a Cesium-based method for dynamically updating three-dimensional models of massive pipeline network data. Background Art
[0002] PostgreSQL database is a powerful open source relational database. POSTGIS is a plug-in for PostgreSQL database, which provides open source GIS spatial data processing and algorithm modules. Based on the POSTGIS plug-in combined with the PostgreSQL database process function to define the spatial data processing process function, the underground pipe network belongs to the network vector data set, which is very suitable for POSTGIS storage. Combined with the POSTGIS spatial analysis algorithm, it can quickly and conveniently obtain the pipe network data within the local range, which makes it possible to update the local incremental pipe network.
[0003] At present, the technology for local incremental update of two-dimensional pipeline networks has matured, but there is almost no local update of the corresponding three-dimensional pipeline network model. The general solution is to use the pipeline modeling tool to re-model all the two-dimensional pipeline network data after the two-dimensional update. If the data volume is small, this operation is basically no problem. When encountering massive city-level pipeline network data, this approach is time-consuming and labor-intensive. The dynamic update technology of the three-dimensional model of massive pipeline network data is to perform local incremental update of the three-dimensional modeling of the two-dimensional pipeline network based on a given vector range surface. Summary of the invention
[0004] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a method for dynamically updating three-dimensional models of massive pipeline network data based on Cesium. After the two-dimensional pipeline network data is updated, the corresponding three-dimensional pipeline network model data can also be updated in real time to ensure the consistency of the two-dimensional data and the three-dimensional model, local incremental update, and avoid the time-consuming and labor-intensive problem of repeatedly publishing massive pipeline network data as a whole. Therefore, the technology is real-time, lightweight, and avoids repeated modeling.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is: A method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium comprises the following steps: Step 1 Data configuration: Pipeline storage, import the point file and line file of the pipeline data to be updated into the PostgreSQL database; Pipeline layer configuration: configure the corresponding point table name and line table name imported into the database under each pipeline layer; Update range surface settings: import the pipeline range surface file and shape vector surface file to be updated into the PostgreSQL database; Step 2 Service Configuration: Set up the service configuration file, which mainly includes database configuration, layer file configuration and update status. Set up the pipeline update service file rj_pipeline_publish.so in httpd.conf, start httpd through the command, and start the pipeline update service. Step 3: Read the service configuration file and obtain configuration parameters related to the update status. If an update is required, proceed to step 4, otherwise return; Step 4, read the layer configuration file after the layer file configuration in step 2, obtain the pipeline layer list to be updated, traverse the pipeline layer list, and for each layer list, perform local incremental update on the data of the pipeline layer by executing the steps after step 4; Step 5: Read the data of the pipeline layer, connect to the database, and read the update range surface and the corresponding point table and line table in the database; Step 6: Use the PostGIS function interface to intersect the update range with the point table and line table to obtain all pipe points and pipelines within the range; Step 7, obtain the parameter configuration file in the pipeline layer data, perform parametric modeling on the obtained pipe points and pipelines, generate corresponding three-dimensional models 3DTiles according to the block number range, and put the 3DTiles files belonging to the same block number into the same block number folder; Step 8: Update the published data of the original pipeline layer according to the block number, and update the index file tileset.json.
[0006] In the data configuration of step 1, the data source of pipeline storage can be a shp file or a gdb file, and the source of the updated range surface file is the shp surface file.
[0007] In the data configuration in step 1, the sources of the point file name and line file surface of the pipeline layer configuration are the point table name and line table name imported into the PostgreSQL database.
[0008] The service configuration in step 2 is the service configuration file server.xml and the httpd configuration file httpd.conf. The service configuration file server.xml mainly includes: database IP, port, user name, password, temporary folder path required for pipe network modeling and layer configuration file. The httpd configuration file httpd.conf is mainly for the configuration of the pipe network update service rj_pipeline_publish.so.
[0009] In the intersection of the update range with the point table and the line table, the source of the update range is obtained by reading the vector surface in step 5, calculating the block number occupied by the range, and then recalculating the new range containing the occupied block numbers through these block numbers: West, East, South, and North.
[0010] The parameter configuration file is derived from the resource file where the pipeline layer data is located, and mainly includes a field mapping file, a range mapping file, a material mapping file, a spatial reference file, and a texture image and model file.
[0011] The parametric modeling mainly includes the modeling of pipe blocks and the modeling of accessory models. The modeling of pipe blocks is in b3dm format, and is directly generated and performed according to step 8; the modeling of accessory models is generated by the existing model in the configuration file. Since the modeling of accessory models is in i3dm format, a point list is generated here according to the block number.
[0012] The parametric modeling mainly includes the update of pipe blocks and the update of accessory models: for the update of pipe blocks, the folder of the published data under the pipeline layer is directly replaced according to the block number; for the update of accessory models, all the accessory model data i3dm under the pipeline layer must be traversed first, all the point data are parsed out, classified by block number, and then the parsed block number is replaced with the generated block number according to the block number, and the accessory model i3dm is regenerated to complete the update.
[0013] The beneficial effects of the present invention are: 1. The dynamic update of the pipe network ensures the real-time performance of the three-dimensional pipe network model, so that the stored two-dimensional pipe network data is consistent with the displayed three-dimensional pipe network model and is up-to-date.
[0014] 2. The dynamic update of the pipeline network solves the time-consuming and labor-intensive problem of repeatedly publishing massive amounts of data. After the two-dimensional pipeline network data is updated, in order to ensure that the three-dimensional data is also the latest, the entire data needs to be republished, which is labor-intensive and time-consuming.
[0015] 3. The dynamic update of the pipeline network adopts local incremental update, which only remodels and publishes the data within the designated range, with fast update and lightweight. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be further described below with reference to the accompanying drawings, i.e., embodiments.
[0018] like Figure 1As shown in the figure, as a flow chart of dynamic incremental update of the upper pipe network 3D model, it includes the following steps: Step 1, data configuration: pipeline storage, import the point table and line table of the pipeline layer to be updated into the PostgreSQL database; pipeline layer configuration, configure the corresponding point table name and line table name imported into the database under each pipeline layer; update the range surface setting, import the shape vector surface file of the pipeline range file to be updated into the PostgreSQL database; Step 2, service configuration: set the service configuration file, mainly including database configuration, layer file configuration and update status, set the pipeline update service file rj_pipeline_publish.so in httpd.conf, start httpd through the command, and start the pipeline update service; Step 3: Read the service configuration file and obtain configuration parameters related to the update status. If an update is required, proceed to step 4, otherwise return; Step 4: Read the layer configuration file, obtain the pipeline layer list to be updated, traverse the pipeline layer list, and for each layer list, perform local incremental update on the data of the pipeline layer by executing the following steps; Step 5: Read data, connect to the database, and read the update range surface and corresponding point table and line table in the database; Step 6: Use the PostGIS function interface to intersect the update range surface with the point table and line table to obtain all pipe points and pipelines within the range surface; Step 7, obtain the parameter configuration file in the pipeline layer data, perform parametric modeling on the obtained pipe points and pipelines, generate corresponding three-dimensional models 3DTiles according to the block number range, and put the 3DTiles files belonging to the same block number into the same block number folder; Step 8: Update the published data of the original pipeline layer according to the block number, and update the index file tileset.json.
Claims
1. A method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium, characterized in that: The following steps are involved: Step 1 Data configuration: Pipeline storage, import the point file and line file of the pipeline data to be updated into the PostgreSQL database; Pipeline layer configuration: configure the corresponding point table name and line table name imported into the database under each pipeline layer; Update range surface settings: import the pipeline range surface file and shape vector surface file to be updated into the PostgreSQL database; Step 2 Service Configuration: Set up the service configuration file, which mainly includes database configuration, layer file configuration and update status. Set up the pipeline update service file rj_pipeline_publish.so in httpd.conf, start httpd through the command, and start the pipeline update service. Step 3: Read the service configuration file and obtain configuration parameters related to the update status. If an update is required, proceed to step 4, otherwise return; Step 4, read the layer configuration file after the layer file configuration in step 2, obtain the pipeline layer list to be updated, traverse the pipeline layer list, and for each layer list, perform local incremental update on the data of the pipeline layer by executing the steps after step 4; Step 5: Read the data of the pipeline layer, connect to the database, and read the update range surface and the corresponding point table and line table in the database; Step 6: Use the PostGIS function interface to intersect the update range surface with the point table and line table to obtain all pipe points and pipelines within the range; Step 7, obtain the parameter configuration file in the pipeline layer data, perform parametric modeling on the obtained pipe points and pipelines, generate corresponding three-dimensional models 3DTiles according to the block number range, and put the 3DTiles files belonging to the same block number into the same block number folder; Step 8: Update the published data of the original pipeline layer according to the block number, and update the index file tileset.json.
2. According to the method of claim 1, a method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium is characterized in that: In the data configuration of step 1, the data source of pipeline storage can be a shp file or a gdb file, and the source of the updated range surface file is the shp surface file.
3. According to the method of claim 1, a method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium is characterized in that: In the data configuration in step 1, the sources of the point file name and line file surface of the pipeline layer configuration are the point table name and line table name imported into the PostgreSQL database.
4. According to the method of claim 1, a method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium is characterized in that: The service configuration in step 2 is the service configuration file server.xml and the httpd configuration file httpd.conf. The service configuration file server.xml mainly includes: database IP, port, user name, password, temporary folder path required for pipe network modeling and layer configuration file. The httpd configuration file httpd.conf is mainly for the configuration of the pipe network update service rj_pipeline_publish.so.
5. According to the method of claim 1, a method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium is characterized in that: In the intersection of the update range surface with the point table and the line table, the source of the update range is obtained by reading the vector surface in step 5, calculating the block number occupied by the range, and then recalculating the new range containing the occupied block numbers through these block numbers: West, East, South, and North.
6. The method for dynamically updating a massive pipe network data three-dimensional model based on Cesium according to claim 1 is characterized in that: The parameter configuration file is derived from the resource file where the pipeline layer data is located, and mainly includes a field mapping file, a range mapping file, a material mapping file, a spatial reference file, and a texture image and model file.
7. The method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium according to claim 1 is characterized in that: The parametric modeling mainly includes the modeling of pipe blocks and the modeling of accessory models. The modeling of pipe blocks is in b3dm format, and is directly generated and performed according to step 8; the modeling of accessory models is generated by the existing model in the configuration file. Since the modeling of accessory models is in i3dm format, a point list is generated here according to the block number.
8. The method for dynamically updating a three-dimensional model of massive pipe network data based on Cesium according to claim 1 is characterized in that: The parametric modeling mainly includes the update of pipe blocks and the update of accessory models: for the update of pipe blocks, the folder of the published data under the pipeline layer is directly replaced according to the block number; for the update of accessory models, all the accessory model data i3dm under the pipeline layer must be traversed first, all the point data are parsed out, classified by block number, and then the parsed block number is replaced with the generated block number according to the block number, and the accessory model i3dm is regenerated to complete the update.
Citation Information
Patent Citations
Pipeline two / three-dimensional data updating method and device and computer readable storage medium
CN108920749A
Three-dimensional pipe network incremental update modeling method and device, storage medium and electronic equipment
CN115641407A
Automatic modeling method for three-dimensional model of urban comprehensive underground pipeline
CN116432355A
Pipe network visualization processing method and pipe network visualization processing system
CN117435833A
Automatic Link and Batch Down / Upload Device for a Harness Drawings PLM DB and Controlling Method for the Same
KR1020140106148A
