CN117408004A - Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology - Google Patents

Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology Download PDF

Info

Publication number
CN117408004A
CN117408004A CN202311402915.0A CN202311402915A CN117408004A CN 117408004 A CN117408004 A CN 117408004A CN 202311402915 A CN202311402915 A CN 202311402915A CN 117408004 A CN117408004 A CN 117408004A
Authority
CN
China
Prior art keywords
pipe network
dimensional
data
vector
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311402915.0A
Other languages
Chinese (zh)
Inventor
周科才
谢佳友
卫泽阳
陈晓霞
朱祥奎
李凌
陈宇佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casic Wisdom Industrial Development Co ltd
Original Assignee
Casic Wisdom Industrial Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casic Wisdom Industrial Development Co ltd filed Critical Casic Wisdom Industrial Development Co ltd
Priority to CN202311402915.0A priority Critical patent/CN117408004A/en
Publication of CN117408004A publication Critical patent/CN117408004A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Mathematics (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application relates to the technical field of three-dimensional pipe network modeling, in particular to a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology, wherein the method comprises the following steps: firstly, acquiring pipe network data; then, vector slicing is carried out on the pipe network data to obtain a two-dimensional pipe network vector slice; then, managing the pipeline map picture and the entity three-dimensional model to obtain pipe network model resources; then, carrying out visual display on the two-dimensional pipe network vector slice; and finally, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model. The method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology solves the problems of low production efficiency, high labor cost and low data instantaneity in the prior art, and improves the front-end visual rendering efficiency.

Description

Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology
Technical Field
The embodiment of the application relates to the technical field of three-dimensional pipe network modeling, in particular to a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology.
Background
With the development of urban construction, urban pipe network construction becomes more and more complex, pipe network types, materials, geometric structures, spatial layout and the like can be different, and spatial topological relations are ambiguous, which all bring great challenges to management of pipe network, so how to efficiently manage increasingly huge urban pipe network data becomes more and more important. With the development of geographic information system technology, space service data display based on map visualization technology becomes more and more popular, and space service data display becomes more visual; the urban pipe network has strong data space attribute, and is very suitable for realizing the visual management of the pipe network by adopting a geographic information system. Currently, the map-based pipe network data visualization display form comprises a two-dimensional pipe network and a three-dimensional pipe network, wherein the two-dimensional pipe network is used for displaying the whole appearance of pipe network data and realizing efficient data query and analysis, and the three-dimensional pipe network is used for displaying the real structure, the materials and the spatial layout of the pipe network.
The urban pipe network has huge quantity and various structures, and the current mainstream three-dimensional pipe network modeling mode is as follows: (1) Modeling a fragmented area through three-dimensional modeling software, constructing a data coordinate system, and then displaying by adopting a visual frame; (2) Performing pipe network modeling through three-dimensional modeling software, registering model data based on a geographic information system coordinate system, then manufacturing a three-dimensional slice cache through the registered model data, and finally loading and displaying through a three-dimensional map frame; (3) Modeling is carried out on the basis of two-dimensional vector data of a pipe network through geographic information system software, then a three-dimensional slice buffer is manufactured, and finally loading and displaying are carried out through a three-dimensional map frame. The three modes have the defects that: (1) The production efficiency of three-dimensional modeling is low, the labor cost is high, and the pipe network data needs to be manually re-modeled after being updated; (2) The real-time performance of the data is low, the three-dimensional model data is updated regularly, and the pipe network data cannot be displayed in a three-dimensional scene in time after being updated.
Disclosure of Invention
The embodiment of the application provides a method and a system for realizing dynamic modeling of a three-dimensional pipe network based on a vector slicing technology, which solve the problems of low production efficiency, high labor cost and low data instantaneity in the prior art, and simultaneously improve the visual rendering efficiency of a front end.
In order to solve the technical problems, in a first aspect, an embodiment of the present application provides a method for implementing three-dimensional pipe network dynamic modeling based on a vector slicing technology, including the following steps: firstly, acquiring pipe network data; then, vector slicing is carried out on the pipe network data to obtain a two-dimensional pipe network vector slice; then, managing the pipeline map picture and the entity three-dimensional model to obtain pipe network model resources; then, carrying out visual display on the two-dimensional pipe network vector slice; and finally, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model.
In some exemplary embodiments, obtaining pipe network data includes: collecting and arranging pipe network data; the pipe network data comprises space data and attribute data, wherein the attribute data comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data; collecting pipe network data comprises the steps of respectively inputting, editing and updating space data and attribute data; sorting pipe network data comprises classifying and encoding the pipe network data according to the standard specification of the urban pipe network data.
In some exemplary embodiments, the spatial data employs the WGS84 coordinate system; the pipeline attribute data content comprises pipeline type, material, pipe diameter, starting point pipe bottom elevation, ending point pipe bottom elevation, starting point burial depth and ending point burial depth; the management point attribute data comprises management point types, elevations and model classification numbers; the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
In some exemplary embodiments, vector slicing the pipe network data comprises: based on Mapbox vector slice specification, performing vector slice data serialization and deserialization by adopting Google Protobufs; the vector slice data comprises vector slice space data and vector slice attribute data; the vector slice space data adopts a projection coordinate system; the vector slice attribute data comprises attribute information required by pipe network modeling, wherein the attribute information comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data; the pipeline attribute data comprise pipeline types, materials, pipe diameters, starting point pipe bottom elevation, ending point pipe bottom elevation, starting point burial depth and ending point burial depth; the management point attribute data comprise management point types, elevations and model classification numbers; the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
In some exemplary embodiments, vector slicing the pipe network data comprises: slicing all pipe network data through a vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model; the vector slice file is published to an Nginx Web server through a data publishing service; after the pipe network data is updated and changed, calculating the pipe network data updating range through the data updating monitoring service, calling the vector slice caching service to re-slice the pipe network data in the calculated range, and releasing the newly generated vector slice file to the Nginx Web server to replace the original vector slice file, so that the data instantaneity is ensured.
In some exemplary embodiments, managing the pipeline map picture and the solid three-dimensional model to obtain a pipe network model resource includes: respectively managing pipeline materials, a pipeline point model and a facility equipment model to obtain pipeline network model resources; the pipeline material management comprises uploading or updating pictures required by the three-dimensional pipeline map, and associating pipeline types with map materials; the management of the management point model comprises uploading or updating a three-dimensional entity model file corresponding to the management point, generating a model classification number, and simultaneously associating the management point type with the three-dimensional entity model classification number; the facility equipment model management comprises uploading or updating a three-dimensional entity model file corresponding to the facility equipment, generating a model classification number, and simultaneously associating the facility equipment type with the three-dimensional entity model classification number.
In some exemplary embodiments, visually displaying two-dimensional pipe network vector slices includes: the Mapbox GLJS framework is adopted, a vector layer data source is configured to be a vector slice HTTP service address provided by the Nginx Web server, and the HTTP service cache type is configured to be a negotiation cache, so that the Mapbox GLJS can load and display the latest vector slice when the vector slice is updated.
In some exemplary embodiments, based on two-dimensional pipe network vector slice and pipe network model resources, performing three-dimensional pipe network dynamic modeling to realize dynamic rendering of a three-dimensional pipe network model, including: the method comprises the steps that pipe network vector slice data in a map view visible area are calculated in real time at the front end through a Mapbox GLJS, pipe network space data and attribute data are obtained from the vector slice data, and three-dimensional model construction is realized through three.js by combining pipe network model resources, so that a three-dimensional pipe network model is dynamically rendered; the modeling mode of the three-dimensional model comprises the following steps: modeling a three-dimensional pipeline, and modeling three-dimensional pipe points and three-dimensional facility equipment; the three-dimensional pipeline modeling comprises the steps of drawing a three-dimensional pipeline model by using three.js in combination with a mapping file in a pipe network model resource by reading space data and attribute data of a pipeline in a pipe network vector slice; the modeling of the three-dimensional pipe points and the three-dimensional facility equipment comprises the step of drawing three-dimensional pipe point models and three-dimensional facility equipment models in batches by reading coordinate point data and attribute data of the pipe points and the facility equipment in pipe network vector slices and combining the three-dimensional entity models in pipe network model resources.
In a second aspect, an embodiment of the present application further provides a system for implementing three-dimensional pipe network dynamic modeling based on a vector slicing technology, including: the system comprises a pipe network data acquisition module, a vector slice manufacturing module, a pipe network model resource management module, a visual display module and a three-dimensional model construction module which are connected in sequence; the pipe network data acquisition module is used for acquiring pipe network data; the vector slice manufacturing module is used for performing vector slice manufacturing on the pipe network data to obtain a two-dimensional pipe network vector slice; the pipe network model resource management module is used for managing the pipe mapping picture and the entity three-dimensional model to obtain pipe network model resources; the visual display module is used for visually displaying the two-dimensional pipe network vector slice; the three-dimensional model building module is used for carrying out three-dimensional pipe network dynamic modeling according to the two-dimensional pipe network vector slice and the pipe network model resource, so as to realize dynamic rendering of the three-dimensional pipe network model.
In some exemplary embodiments, the vector slice making module includes a vector slice file generating unit, a data publishing unit, and a data updating unit connected in sequence; the vector slice file generation unit is used for slicing all pipe network data through the vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model; the data release unit is used for releasing the vector slice file to the Nginx Web server through a data release service; the data updating unit is used for calculating the pipe network data updating range through the data updating monitoring service after the pipe network data updating change, calling the vector slice caching service to re-slice the pipe network data in the calculated range, and releasing the newly generated vector slice file to the Nginx Web server to replace the original vector slice file so as to ensure the real-time performance of the data.
The technical scheme provided by the embodiment of the application has at least the following advantages:
the embodiment of the application provides a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology, wherein the method comprises the following steps: firstly, acquiring pipe network data; then, vector slicing is carried out on the pipe network data to obtain a two-dimensional pipe network vector slice; then, managing the pipeline map picture and the entity three-dimensional model to obtain pipe network model resources; then, carrying out visual display on the two-dimensional pipe network vector slice; and finally, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model.
According to the method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology, which is provided by the embodiment of the application, the three-dimensional pipe network modeling is realized at the front end based on the vector slicing technology without manual participation, so that the three-dimensional pipe network modeling efficiency is greatly improved, the labor cost is reduced, meanwhile, after the pipe network data is updated, the three-dimensional pipe network model displayed at the front end can be timely re-rendered, and the real-time performance of the data is improved; the vector slicing technology organizes, sequences and transmits pipe network data in blocks, greatly improves front-end data loading and rendering efficiency, and simultaneously, when a three-dimensional pipe network model is hidden or logged out, the space relation calculation of the three-dimensional pipe network model and a map view participates in calculation through two-dimensional pipe network vector slicing, so that the efficiency is higher; the three-dimensional pipe network dynamic modeling range achieved by the js is consistent with the vector slice visual range, and is the current map view visual area, so that the three-dimensional scene browsing speed is greatly improved, and the user experience is improved.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, which are not to be construed as limiting the embodiments unless specifically indicated otherwise.
Fig. 1 is a schematic flow chart of a method for implementing dynamic modeling of a three-dimensional pipe network based on a vector slicing technique according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a system for implementing dynamic modeling of a three-dimensional pipe network based on a vector slicing technique according to an embodiment of the present application.
Detailed Description
As known from the background art, the prior art has the problems of low production efficiency, high labor cost and low data instantaneity.
In order to solve the technical problems, the embodiment of the application provides a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology, wherein the method comprises the following steps: firstly, acquiring pipe network data; then, vector slicing is carried out on the pipe network data to obtain a two-dimensional pipe network vector slice; then, managing the pipeline map picture and the entity three-dimensional model to obtain pipe network model resources; then, carrying out visual display on the two-dimensional pipe network vector slice; and finally, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model. The method for realizing the dynamic modeling of the three-dimensional pipe network based on the vector slicing technology can greatly improve the loading and rendering efficiency of front-end data and the browsing speed of the three-dimensional scene.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, as will be appreciated by those of ordinary skill in the art, in the various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments.
Referring to fig. 1, an embodiment of the present application provides a method for implementing three-dimensional pipe network dynamic modeling based on vector slicing technology, including the following steps:
and step S101, acquiring pipe network data.
And S102, vector slicing is carried out on the pipe network data, and a two-dimensional pipe network vector slice is obtained.
And step S103, managing the pipeline mapping picture and the entity three-dimensional model to obtain pipe network model resources.
And step S104, visually displaying the two-dimensional pipe network vector slice.
And step 105, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model.
The application provides a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology, which are characterized in that pipe network data are firstly collected and arranged, then the pipe network data are subjected to vector slicing manufacture and are deployed on a web server, meanwhile, data updating service is built, data instantaneity is guaranteed, a pipe network model resource management tool is used for managing a pipeline mapping picture and a solid three-dimensional model, a two-dimensional pipe network vector slice is visually displayed at the front end, and dynamic rendering of a three-dimensional pipe network model is realized at the front end based on the two-dimensional pipe network vector slice and pipe network model resources in a map view visible area. The method greatly improves the front-end data loading and rendering efficiency and improves the three-dimensional scene browsing speed.
In some embodiments, step S101 obtains pipe network data, including: collecting and arranging pipe network data; the pipe network data comprises space data and attribute data, wherein the attribute data comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data; collecting pipe network data comprises the steps of respectively inputting, editing and updating space data and attribute data; sorting pipe network data comprises classifying and encoding the pipe network data according to the standard specification of the urban pipe network data.
In some embodiments, the spatial data employs the WGS84 coordinate system; the pipeline attribute data content comprises pipeline type, material, pipe diameter, starting point pipe bottom elevation, ending point pipe bottom elevation, starting point burial depth and ending point burial depth; the management point attribute data comprises management point types, elevations and model classification numbers; the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
Specifically, the pipe network data space data adopts a WGS84 coordinate system, the pipeline space data acquires a starting point coordinate, an ending point coordinate, and pipe points and facility equipment acquire point position coordinates; the pipeline attribute data is used for acquiring the pipeline type, the material, the pipe diameter, the starting point pipe bottom elevation, the ending point pipe bottom elevation, the starting point burial depth and the ending point burial depth, and the pipeline point attribute data is used for acquiring the pipeline point type, the elevation and the model classification number, and the facility equipment attribute data is used for acquiring the type, the elevation and the model classification number; and after the data acquisition is finished, carrying out standardized arrangement according to the standard specification of the urban pipe network data, wherein the standardized arrangement comprises data classification, unified unit, unified coordinate system and standard coding.
In some embodiments, vector slicing the pipe network data in step S102 includes: based on Mapbox vector slice specification, performing vector slice data serialization and deserialization by adopting Google Protobufs; the vector slice data comprises vector slice space data and vector slice attribute data; the vector slice space data adopts a projection coordinate system; the vector slice attribute data comprises attribute information required by pipe network modeling, wherein the attribute information comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data; the pipeline attribute data comprise pipeline types, materials, pipe diameters, starting point pipe bottom elevation, ending point pipe bottom elevation, starting point burial depth and ending point burial depth; the management point attribute data comprise management point types, elevations and model classification numbers; the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
In some embodiments, step S102 performs vector slicing on the pipe network data, including: slicing all pipe network data through a vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model; the vector slice file is published to an Nginx Web server through a data publishing service; after the pipe network data is updated and changed, calculating the pipe network data updating range through the data updating monitoring service, calling the vector slice caching service to re-slice the pipe network data in the calculated range, and releasing the newly generated vector slice file to the Nginx Web server to replace the original vector slice file, so that the data instantaneity is ensured.
Specifically, step S102 slices all pipe network data through a vector slice caching service tool to generate a vector slice file, wherein the single vector slice file range is 256×256 or 512×512 pixel size, the single vector slice file range is selected according to the overall pipe network distribution density, the pipe network distribution density adopts 256×256 pixel size, the pipe network distribution sparsity adopts 512×512 pixel size, the slice file is organized according to a tile map pyramid model, the slice scaling level range is 10-17 levels (scale 1:10000 to 1:100), and the vector slice data of a proper level is selected according to the pipe network density during three-dimensional pipe network modeling; after the vector slice file is generated, the vector slice file is released to an Nginx Web server through a data release service, and the front-end vector slice request efficiency is improved by utilizing the high-performance HTTP service characteristic of the Nginx; after pipe network data update changes, calculating a pipe network data update range through a data update monitoring service, calling a vector slice cache service to re-slice the pipe network data in the calculated range, and issuing a newly generated vector slice file to an Nginx Web server to replace the original vector slice file.
In some embodiments, step S103 manages the pipeline map picture and the solid three-dimensional model to obtain a pipe network model resource, including: respectively managing pipeline materials, a pipeline point model and a facility equipment model to obtain pipeline network model resources; the pipeline material management comprises uploading or updating pictures required by the three-dimensional pipeline map, and associating pipeline types with map materials; the management of the management point model comprises uploading or updating a three-dimensional entity model file corresponding to the management point, wherein the model file adopts a glb format to generate a model classification number, and meanwhile, the management point type is associated with the three-dimensional entity model classification number; the facility equipment model management comprises uploading or updating a three-dimensional entity model file corresponding to the facility equipment, generating a model classification number by adopting a glb format for the model file, and simultaneously associating the type of the facility equipment with the three-dimensional entity model classification number.
In some embodiments, step S104 visually displays the two-dimensional pipe network vector slice, including: the Mapbox GLJS framework is adopted, a vector layer data source is configured to be a vector slice HTTP service address provided by the Nginx Web server, and the HTTP service cache type is configured to be a negotiation cache, so that the Mapbox GLJS can load and display the latest vector slice when the vector slice is updated. The point and facility equipment point diagram layer patterns control the point display density by configuring distance-from-center attributes, so that the points far from the center point of the view are hidden, and the front end display performance is improved.
In some embodiments, step S105 performs three-dimensional pipe network dynamic modeling based on two-dimensional pipe network vector slice and pipe network model resources, to implement dynamic rendering of a three-dimensional pipe network model, including: the method comprises the steps that pipe network vector slice data in a map view visible area are calculated in real time at the front end through a Mapbox GLJS, pipe network space data and attribute data are obtained from the vector slice data, and three-dimensional model construction is realized through three.js by combining pipe network model resources, so that a three-dimensional pipe network model is dynamically rendered; the modeling mode of the three-dimensional model comprises the following steps: modeling a three-dimensional pipeline, and modeling three-dimensional pipe points and three-dimensional facility equipment; the three-dimensional pipeline modeling comprises the steps of drawing a three-dimensional pipeline model by using three.js in combination with a mapping file in a pipe network model resource by reading space data and attribute data of a pipeline in a pipe network vector slice; the modeling of the three-dimensional pipe points and the three-dimensional facility equipment comprises the step of drawing three-dimensional pipe point models and three-dimensional facility equipment models in batches by reading coordinate point data and attribute data of the pipe points and the facility equipment in pipe network vector slices and combining the three-dimensional entity models in pipe network model resources.
Specifically, the Mapbox GL JS monitors the change of a central point of a map view, acquires vector slice data of a two-dimensional pipe network in a visible area of the current map view, acquires pipe network space data and attribute data from the vector slice data, and realizes three-dimensional model construction by three.js in combination with pipe network model resources; three-dimensional pipe network modeling is divided into two categories: the first class is three-dimensional pipeline modeling, and the second class is three-dimensional pipeline point and three-dimensional facility equipment modeling. The three-dimensional pipeline modeling is to read pipeline data in pipeline vector slice data, extract spatial data of pipelines of the same type according to pipeline types, construct three-dimensional pipeline geometric objects by using three.js, combine the three-dimensional geometric objects of the same pipeline types to create three-dimensional pipeline grid objects, and apply the pipeline map picture resource construction materials to the three-dimensional pipeline grid objects to finish three-dimensional pipeline modeling; the modeling of the three-dimensional pipe points and the three-dimensional facility equipment is to read pipe point and facility equipment point data in pipe network vector slice data, divide the point data with the same type and model classification into one type, extract point coordinates, call a three-dimensional entity model in a model resource library, construct an Instancedmesh object by using three.js and create the three-dimensional pipe points and the facility equipment model in batches.
The three-dimensional pipe network dynamic modeling performance optimization strategy comprises the following steps: (1) When the three-dimensional pipeline model is built by the js, the pipeline geometric objects of the same type are combined and then grid objects are created, so that the rendering and drawing times of the front-end model are reduced; (2) When the three.js builds the pipe points and the facility equipment models, the points with the same types and model classification are built by adopting an Instancedmesh for batch model construction, so that the rendering and drawing times of the front-end model are reduced; (3) When the central point of the map view changes, the three-dimensional pipeline model objects outside the map view are hidden or logged out, so that the memory consumption is reduced.
Referring to fig. 2, the embodiment of the application further provides a system for implementing three-dimensional pipe network dynamic modeling based on vector slicing technology, which includes: the system comprises a pipe network data acquisition module 101, a vector slice manufacturing module 102, a pipe network model resource management module 103, a visual display module 104 and a three-dimensional model construction module 105 which are connected in sequence; the pipe network data acquisition module 101 is used for acquiring pipe network data; the vector slice manufacturing module 102 is used for performing vector slice manufacturing on the pipe network data to obtain a two-dimensional pipe network vector slice; the pipe network model resource management module 103 is used for managing the pipe mapping picture and the entity three-dimensional model to obtain pipe network model resources; the visual display module 104 is configured to visually display the two-dimensional pipe network vector slice; the three-dimensional model building module 105 is configured to perform three-dimensional pipe network dynamic modeling according to the two-dimensional pipe network vector slice and the pipe network model resource, so as to implement dynamic rendering of the three-dimensional pipe network model.
In some embodiments, the vector slice creation module 102 includes a vector slice file generation unit 1021, a data distribution unit 1022, and a data update unit 1023 connected in order; the vector slice file generating unit 1021 is used for slicing all pipe network data through a vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model; the data issuing unit 1022 is configured to issue the vector slice file to the nmginx Web server through a data issuing service; the data updating unit 1023 is configured to calculate a pipe network data updating range through the data updating monitoring service after the pipe network data updating changes, call the vector slice caching service to re-slice the pipe network data in the calculated range, and issue the newly generated vector slice file to the nminux Web server to replace the original vector slice file, thereby ensuring the data instantaneity.
By the technical scheme, the embodiment of the application provides a method and a system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology, wherein the method comprises the following steps: firstly, acquiring pipe network data; then, vector slicing is carried out on the pipe network data to obtain a two-dimensional pipe network vector slice; then, managing the pipeline map picture and the entity three-dimensional model to obtain pipe network model resources; then, carrying out visual display on the two-dimensional pipe network vector slice; and finally, carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and pipe network model resources to realize dynamic rendering of the three-dimensional pipe network model.
According to the method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology, which is provided by the embodiment of the application, the three-dimensional pipe network modeling is realized at the front end based on the vector slicing technology without manual participation, so that the three-dimensional pipe network modeling efficiency is greatly improved, the labor cost is reduced, meanwhile, after the pipe network data is updated, the three-dimensional pipe network model displayed at the front end can be timely re-rendered, and the real-time performance of the data is improved; the vector slicing technology organizes, sequences and transmits pipe network data in blocks, greatly improves front-end data loading and rendering efficiency, and simultaneously, when a three-dimensional pipe network model is hidden or logged out, the space relation calculation of the three-dimensional pipe network model and a map view participates in calculation through two-dimensional pipe network vector slicing, so that the efficiency is higher; the three-dimensional pipe network dynamic modeling range achieved by the js is consistent with the vector slice visual range, and is the current map view visual area, so that the three-dimensional scene browsing speed is greatly improved, and the user experience is improved.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of implementing the present application and that various changes in form and details may be made therein without departing from the spirit and scope of the present application. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention shall be defined by the appended claims.

Claims (10)

1. A method for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology is characterized by comprising the following steps:
acquiring pipe network data;
vector slicing is carried out on the pipe network data to obtain two-dimensional pipe network vector slices;
managing the pipeline mapping picture and the entity three-dimensional model to obtain pipe network model resources;
visually displaying the two-dimensional pipe network vector slice;
and carrying out three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slice and the pipe network model resource to realize dynamic rendering of the three-dimensional pipe network model.
2. The method for implementing three-dimensional pipe network dynamic modeling based on vector slicing technology according to claim 1, wherein the obtaining pipe network data comprises: collecting and arranging pipe network data;
the pipe network data comprises space data and attribute data, wherein the attribute data comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data;
collecting pipe network data comprises the steps of respectively inputting, editing and updating space data and attribute data;
sorting pipe network data comprises classifying and encoding the pipe network data according to the standard specification of the urban pipe network data.
3. The method for realizing the dynamic modeling of the three-dimensional pipe network based on the vector slicing technology according to claim 2, wherein the spatial data adopts a WGS84 coordinate system;
the pipeline attribute data content comprises pipeline type, material, pipe diameter, starting point pipe bottom elevation, ending point pipe bottom elevation, starting point burial depth and ending point burial depth;
the management point attribute data comprise management point types, elevations and model classification numbers;
the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
4. The method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology according to claim 1, wherein the vector slicing manufacturing is carried out on the pipe network data, and the method comprises the following steps:
based on Mapbox vector slice specification, performing vector slice data serialization and deserialization by adopting Google Protobufs; the vector slice data comprises vector slice space data and vector slice attribute data;
the vector slice space data adopts a projection coordinate system;
the vector slice attribute data comprise attribute information required by pipe network modeling, wherein the attribute information comprises pipeline attribute data, pipe point attribute data and facility equipment attribute data;
the pipeline attribute data comprise pipeline types, materials, pipe diameters, starting point pipe bottom elevation, finishing point pipe bottom elevation, starting point burial depth and finishing point burial depth; the management point attribute data comprise management point types, elevations and model classification numbers; the facility equipment attribute data includes a facility equipment type, an elevation, and a model class number.
5. The method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology according to claim 1, wherein the vector slicing manufacturing is carried out on the pipe network data, and the method comprises the following steps:
slicing all pipe network data through a vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model;
the vector slice file is published to an Nginx Web server through a data publishing service;
after the pipe network data is updated and changed, calculating the pipe network data updating range through the data updating monitoring service, calling the vector slice caching service to re-slice the pipe network data in the calculated range, and releasing the newly generated vector slice file to the Nginx Web server to replace the original vector slice file, so that the data instantaneity is ensured.
6. The method for realizing the dynamic modeling of the three-dimensional pipe network based on the vector slicing technology according to claim 1, wherein the method for managing the pipe mapping picture and the solid three-dimensional model to obtain the pipe network model resource comprises the following steps:
respectively managing pipeline materials, a pipeline point model and a facility equipment model to obtain pipeline network model resources; the pipeline material management comprises uploading or updating pictures required by the three-dimensional pipeline map, and associating pipeline types with map materials;
the management of the management point model comprises uploading or updating a three-dimensional entity model file corresponding to the management point, generating a model classification number, and simultaneously associating the management point type with the three-dimensional entity model classification number;
the facility equipment model management comprises uploading or updating a three-dimensional entity model file corresponding to the facility equipment, generating a model classification number, and simultaneously associating the facility equipment type with the three-dimensional entity model classification number.
7. The method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology according to claim 1, wherein the method for visually displaying the two-dimensional pipe network vector slices comprises the following steps:
the Mapbox GLJS framework is adopted, a vector layer data source is configured as a vector slice HTTP service address provided by an Nginx Web server, the HTTP service cache type is configured as a negotiation cache, so that when the vector slice is updated,
mapbox GL JS can load the vector slice that shows the latest.
8. The method for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology according to claim 1, wherein the method for realizing the three-dimensional pipe network dynamic modeling based on the two-dimensional pipe network vector slicing and the pipe network model resource and realizing the dynamic rendering of the three-dimensional pipe network model comprises the following steps:
the method comprises the steps that pipe network vector slice data in a map view visible area are calculated in real time at the front end through a Mapbox GLJS, pipe network space data and attribute data are obtained from the vector slice data, and three-dimensional model construction is realized through three.js by combining pipe network model resources, so that a three-dimensional pipe network model is dynamically rendered; the modeling mode of the three-dimensional model comprises the following steps: modeling a three-dimensional pipeline, and modeling three-dimensional pipe points and three-dimensional facility equipment;
the three-dimensional pipeline modeling comprises the steps of drawing a three-dimensional pipeline model by using three.js in combination with a mapping file in a pipe network model resource by reading space data and attribute data of a pipeline in a pipe network vector slice;
the three-dimensional pipe point and three-dimensional facility equipment modeling comprises the step of drawing a three-dimensional pipe point model and a three-dimensional facility equipment model in batches by reading coordinate point data and attribute data of pipe points and facility equipment in pipe network vector slices and combining a three-dimensional entity model in pipe network model resources.
9. A system for realizing three-dimensional pipe network dynamic modeling based on a vector slicing technology is characterized by comprising the following components: the system comprises a pipe network data acquisition module, a vector slice manufacturing module, a pipe network model resource management module, a visual display module and a three-dimensional model construction module which are connected in sequence;
the pipe network data acquisition module is used for acquiring pipe network data;
the vector slice manufacturing module is used for performing vector slice manufacturing on the pipe network data to obtain a two-dimensional pipe network vector slice;
the pipe network model resource management module is used for managing the pipeline mapping picture and the entity three-dimensional model to obtain pipe network model resources;
the visual display module is used for visually displaying the two-dimensional pipe network vector slice;
the three-dimensional model building module is used for carrying out three-dimensional pipe network dynamic modeling according to the two-dimensional pipe network vector slice and the pipe network model resources, and realizing dynamic rendering of the three-dimensional pipe network model.
10. The system for realizing the three-dimensional pipe network dynamic modeling based on the vector slicing technology according to claim 9, wherein the vector slicing manufacturing module comprises a vector slicing file generating unit, a data issuing unit and a data updating unit which are connected in sequence;
the vector slice file generation unit is used for slicing all pipe network data through the vector slice cache service tool to generate a vector slice file; the vector slice files are organized according to a tile map pyramid model;
the data release unit is used for releasing the vector slice file to an Nginx Web server through a data release service;
the data updating unit is used for calculating the pipe network data updating range through the data updating monitoring service after the pipe network data updating change, calling the vector slice caching service to re-slice the pipe network data in the calculated range, and releasing the newly generated vector slice file to the Nginx Web server to replace the original vector slice file so as to ensure the data instantaneity.
CN202311402915.0A 2023-10-26 2023-10-26 Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology Pending CN117408004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402915.0A CN117408004A (en) 2023-10-26 2023-10-26 Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402915.0A CN117408004A (en) 2023-10-26 2023-10-26 Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology

Publications (1)

Publication Number Publication Date
CN117408004A true CN117408004A (en) 2024-01-16

Family

ID=89494050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402915.0A Pending CN117408004A (en) 2023-10-26 2023-10-26 Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology

Country Status (1)

Country Link
CN (1) CN117408004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117591519A (en) * 2024-01-18 2024-02-23 杭州领图信息科技有限公司 High-performance pipe network data online editing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117591519A (en) * 2024-01-18 2024-02-23 杭州领图信息科技有限公司 High-performance pipe network data online editing method and system
CN117591519B (en) * 2024-01-18 2024-04-23 杭州领图信息科技有限公司 High-performance pipe network data online editing method and system

Similar Documents

Publication Publication Date Title
Xu et al. Combining IFC and 3D tiles to create 3D visualization for building information modeling
CN105808672B (en) The dissemination method of magnanimity three dimensional point cloud based on browser
CN109829022B (en) Internet map service system fusing monitoring video information and construction method
KR101546703B1 (en) System for processing massive bim data of building
CN110321443B (en) Three-dimensional live-action model database construction method and device and data service system
Zhao Application of 3D CAD in landscape architecture design and optimization of hierarchical details
KR101546705B1 (en) Method for visualizing building-inside bim data by bim data process terminal
CN101364310A (en) Three-dimensional model image generating method and apparatus
CN113593051B (en) Live-action visualization method, dam visualization method and computer equipment
Lu et al. Design and implementation of virtual interactive scene based on unity 3D
Prandi et al. Services oriented smart city platform based on 3D city model visualization
CN117408004A (en) Method and system for realizing three-dimensional pipe network dynamic modeling based on vector slicing technology
CN103309943A (en) Three-dimensional geographic information platform and topographic data processing method thereof
CN108572951A (en) A kind of cartographic data three-dimensional display system based on geography information
Ellul et al. Investigating approaches to improving rendering performance of 3D city models on mobile devices
CN112017287A (en) Three-dimensional parametric modeling and efficient rendering method for underground cable facilities
CN115719410A (en) Slicing method of space model data
CN116186189B (en) Method and system for rapidly generating elevation live-action map model
Guney Rethinking GIS towards the vision of smart cities through CityGML
CN106875480B (en) Method for organizing urban three-dimensional data
Zhang et al. Visualization of large spatial data in networking environments
Fu et al. [Retracted] 3D City Online Visualization and Cluster Architecture for Digital City
Xia Design and implementation of campus 3D virtual walkthrough system-take hunan science and technology university as an example
Zhang Urban planning and design strategy based on ArcGIS and application method
Li et al. Research on Landscape Architecture Modeling Simulation System Based on Computer Virtual Reality Technology

Legal Events

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