A method for displaying the integration of BIM models and GIS information and related components
By obtaining target GIS information and using threejs to create a geometric carrier for adjustment of pose and visual consistency, the complexity and large data volume problems when converting BIM model to GIS model are solved, and efficient fusion display of BIM model and GIS information is realized.
Patent Information
- Application Number
- CN202210325266.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-08
- Filing Date
- 2022-03-30
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-03-30
AI Technical Summary
When converting a BIM model to a GIS model, multiple steps are required to be converted, resulting in large workloads and large data volumes, and there are problems such as reduced accuracy and inconvenient calibration of coordinate offsets.
By obtaining target GIS information, using threejs visualization to create threejs geometric carriers, and adjusting pose and visual consistency, the integration of BIM model and GIS information is realized, avoiding complex model conversion and useless data.
It realizes the quick fusion display of BIM model and GIS information, reducing the amount of data and invalid calculations, and improving the display efficiency and accuracy.
Smart Images

Figure CN114663324B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for integrating and displaying a BIM model and GIS information. Background Art
[0002] Building Information Modeling (BIM) is a digital representation of the physical and functional characteristics of a building. BIM enables information sharing and transmission throughout the entire lifecycle, from engineering design and delivery to construction, operation and maintenance, and supervision. With BIM, engineering and technical personnel can correctly understand and efficiently respond to building information. BIM provides a foundation for collaborative work among design teams, operators, and other construction entities, playing a significant role in improving productivity, saving costs, and shortening construction schedules. A Geographical Information System (GIS) is a system that integrates geography, cartography, remote sensing, and computer graphics. In recent years, GIS has evolved into a computer service that supports the input, storage, query, analysis, and display of geographic data.
[0003] In the prior art, to reflect geographic information in building information models, a method for converting BIM models to GIS models is used. Specifically, the method involves: dividing the BIM model into a shared unit model and a non-shared unit model; constructing a BIM model conversion database; meshing all BIM models into GIS models; constructing an LOD data structure for the GIS model; mapping textures to GIS model triangles; associating attributes with the GIS model; translating the geometric position of the GIS model; and reclassifying and organizing the converted GIS model. In the prior art, a method for converting BIM models to support large-scale hierarchical loading of GIS models is also used. Specifically, the method involves: constructing a database table for the BIM model; constructing a three-dimensional earth scene structure; parsing component information; grouping the three-dimensional earth scene; constructing a sub-scene spatial hierarchy; filtering, simplifying, and merging data; converting the BIM model to B3DM specifications, with each B3DM file being a tile; and constructing a tree-like spatial structure of the tile collection according to an octree. However, to achieve simultaneous display of BIM and GIS information, the two aforementioned methods require converting the BIM model to the GIS model, which involves multiple steps. This is a significant workload and results in the full loading of both the BIM and GIS models, resulting in a large amount of data. While the use of spatial hierarchical technologies such as octrees alleviates the problem of excessive instantaneous data volume, spatial hierarchical technologies inevitably introduce issues such as reduced accuracy. Furthermore, when converting the BIM model to the GIS model, due to the differences between the BIM modeling space coordinates and the GIS space coordinates, coordinate offset calibration is unavoidable. Calculating the coordinate offset calibration matrix is not very convenient and often requires manual work. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for the integrated display of BIM models and GIS information, which can quickly and simultaneously display BIM models and GIS information. The specific solution is as follows:
[0005] In a first aspect, the present application discloses a method for displaying the integration of BIM models and GIS information, comprising:
[0006] Obtaining the target information type, and obtaining the corresponding target GIS information from the GIS service provider according to the target information type;
[0007] Create a target scene according to the target information type, and add a root object to the target scene;
[0008] According to the target GIS information, a threejs geometric carrier is created based on the root object using threejs visualization;
[0009] Taking the BIM model displayed on the web side based on ThreeJS as a reference, the ThreeJS geometric carrier is adjusted for posture and visual consistency to obtain a fusion display of the BIM model and GIS information.
[0010] Optionally, obtaining corresponding target GIS information from a GIS service provider according to the target information type includes:
[0011] Filtering and obtaining corresponding target GIS information from the GIS service provider according to the screening conditions including the target information type;
[0012] Among them, the screening conditions include the target information type, GIS service provider interface, and interface call parameters; the target information type includes any one or more of image map, place name information, terrain information, administrative area information, road information, water system information, and residential area information; the interface call parameters include longitude range, latitude range, and accuracy range.
[0013] Optionally, creating a target scene according to the target information type and adding a root object to the target scene includes:
[0014] According to the target information type, a corresponding target scene is created and named using a three-dimensional scene manager of a BIM model displayed on a web-based threejs server; the three-dimensional scene manager is used to create, name, query, clear, and render three-dimensional scenes;
[0015] Adds a root object to the target scene.
[0016] Optionally, adjusting the posture and visual consistency of the Threejs geometric carrier based on the BIM model displayed on the web side based on Threejs as a reference includes:
[0017] Acquire drawing information corresponding to the target GIS information from the attribute information of the BIM model;
[0018] Determining a planning red line from the drawing information, selecting a target number of non-collinear target points on the planning red line, and determining the latitude and longitude coordinates corresponding to the target points based on the coordinate information of the planning red line;
[0019] Determining, based on the latitude and longitude coordinates, that the target point corresponds to a first type of target pixel point of the BIM model;
[0020] According to the latitude and longitude coordinates, determine the GIS tile number corresponding to the latitude and longitude coordinates by querying the GIS service provider, and determine the second type of target pixel point corresponding to the target point in the threejs geometric carrier according to the GIS tile number and the corresponding GIS tile size;
[0021] An affine matrix is estimated using the least squares method based on the first type of target pixel points and the second type of target pixel points, and the affine matrix is used to perform a posture transformation on the threejs geometric carrier so that the posture of the BIM model is consistent with that of the threejs geometric carrier.
[0022] Optionally, adjusting the posture and visual consistency of the Threejs geometric carrier based on the BIM model displayed on the web side based on Threejs as a reference includes:
[0023] Acquire a camera image from a target perspective in the BIM model scene, obtain a BIM image by removing a background image, and then determine a brightness histogram corresponding to the BIM image;
[0024] Using the brightness histogram, the GIS image corresponding to the threejs geometric carrier is brightness adjusted to obtain an adjusted image;
[0025] The saturation of the adjusted image is adjusted according to the average saturation of the BIM image.
[0026] Optionally, after adjusting the posture and visual consistency of the threejs geometric carrier, the method further includes:
[0027] The BIM model and the threejs geometric carrier are rendered using a threejs renderer.
[0028] Optionally, creating a threejs geometry carrier based on the root object by using threejs visualization according to the target GIS information includes:
[0029] Initialize threejs plane geometry;
[0030] Based on the root object, the target GIS information is set as a map to the threejs plane geometry using a texture loader, or the geometric parameters of the threejs plane geometry are set according to the vector parameters contained in the target GIS information to obtain a threejs carrier attached to the root object.
[0031] In a second aspect, the present application discloses a device for displaying the integration of BIM models and GIS information, comprising:
[0032] The target GIS information acquisition module is used to obtain the target information type and obtain the corresponding target GIS information from the GIS service provider according to the target information type;
[0033] A target scene creation module, configured to create a target scene according to the target information type and add a root object to the target scene;
[0034] A threejs geometry carrier creation module is used to create a threejs geometry carrier based on the root object using threejs visualization according to the target GIS information;
[0035] The fusion display module is used to adjust the posture and visual consistency of the threejs geometric carrier based on the BIM model displayed on the web side based on threejs, so as to obtain a fusion display of the BIM model and GIS information.
[0036] In a third aspect, the present application discloses an electronic device, comprising:
[0037] Memory, used to store computer programs;
[0038] The processor is used to execute the computer program to implement the aforementioned method for integrating and displaying the BIM model and GIS information.
[0039] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein when the computer program is executed by a processor, the aforementioned method for integrating and displaying the BIM model and GIS information is implemented.
[0040] In this application, the target information type is obtained, and the corresponding target GIS information is obtained from the GIS service provider according to the target information type; a target scene is created according to the target information type, and a root object is added to the target scene; based on the target GIS information, a threejs geometric carrier is created using threejs visualization on the basis of the root object; and with the BIM model displayed on the web side based on threejs as a reference, the threejs geometric carrier is adjusted for posture and visual consistency to obtain a fusion display of the BIM model and GIS information. As can be seen from the above, by only obtaining the required target GIS information and then using threejs to create its display carrier based on the target GIS information, there is no need for complex model conversion, and by only loading the required target GIS information, the amount of data required to be loaded is reduced, avoiding most of the useless information and invalid calculations. Finally, the fusion display of the BIM model and GIS information is achieved through posture and visual consistency adjustment, that is, in the system based on the threejs display of the BIM model, the target GIS information is obtained as needed and the target GIS information is displayed using the relevant carrier, achieving the effect of simultaneously displaying the BIM model and GIS information, avoiding a series of complex operations including alignment and creating multiple layers of fineness when converting the BIM model to the GIS model, and reducing the amount of useless GIS data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0042] Figure 1 This is a flow chart of a method for integrating and displaying BIM models and GIS information provided in this application.
[0043] Figure 2 A flowchart of a specific posture adjustment method provided in this application.
[0044] Figure 3 This is a schematic diagram of the structure of a fusion display device for BIM model and GIS information provided in this application.
[0045] Figure 4 This is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0047] In the prior art, geographic information is reflected in building information models by converting BIM models to GIS models, or by converting BIM models to support large-scale hierarchical loading of GIS models. However, converting the BIM model to the GIS model requires multiple steps, which is quite labor-intensive. To overcome the above technical problems, this application proposes a method for the fusion display of BIM models and GIS information, which can quickly and simultaneously display BIM models and GIS information.
[0048] The present application discloses a method for displaying the integration of BIM model and GIS information. Figure 1 As shown, the method may include the following steps:
[0049] Step S11: Acquire the target information type, and obtain corresponding target GIS information from the GIS service provider according to the target information type.
[0050] In this embodiment, the target information type required by the user is first obtained. Then, the target information type is used as a screening criterion to filter and obtain the corresponding target GIS information from the GIS service provider. In other words, in this embodiment, only the required target GIS information is loaded, rather than using the GIS model as a base map, thus avoiding interference from unnecessary data. The target GIS information can be obtained from online map service providers or offline GIS information.
[0051] In this embodiment, obtaining the corresponding target GIS information from the GIS service provider according to the target information type may include: filtering the corresponding target GIS information from the GIS service provider according to the filtering conditions including the target information type; wherein the filtering conditions include the target information type, the GIS service provider interface, and the interface call parameters; the target information type includes any one or more of image maps, place name information, terrain information, administrative area information, road information, water system information, and residential area information; and the interface call parameters include longitude range, latitude range, and accuracy range.
[0052] That is, according to the user's GIS information usage needs, such as image maps, place name information, terrain information, administrative area information, road information, water system information or residential area information, the corresponding information can be obtained from GIS service providers such as Baidu, AutoNavi, Mapbox, Tiandi Map or Google. For ease of use, a json file is established as a screening condition to record the parameters required for obtaining GIS. The recorded information includes the above-mentioned target information type, GIS service provider interface, interface call parameters, instructions, etc., among which the interface call parameters include longitude range, latitude range and accuracy range, etc. In addition, the available target GIS information file will generally be obtained directly. The files of some map providers need to be decoded according to their latitude and longitude codes and altitude codes to obtain the available target GIS information file. For image data, the information file refers to the tile information file, and the common format is jpg, etc.
[0053] Step S12: creating a target scene according to the target information type, and adding a root object to the target scene.
[0054] In this embodiment, the creation of a target scene according to the target information type and the addition of a root object to the target scene may include: creating a corresponding target scene according to the target information type and naming the target scene using a three-dimensional scene manager of a BIM model displayed on a web-based threejs; the three-dimensional scene manager is used to create, name, query, clear, and render three-dimensional scenes; and adding a root object to the target scene. That is, in this embodiment, a solution for integrating geographic information is implemented on the basis of displaying a building information model based on threejs on the web-based threejs. The system for displaying BIM on the web-based threejs is a technology that displays BIM models on web pages based on threejs. It provides the ability and programming interface for browsing and manipulating BIM models on the web-based side. threejs is a third-party WebGL library written in JavaScript that provides a wide range of 3D display functions. Using threejs, you can easily create various three-dimensional scenes, including cameras, lights and shadows, materials, and other objects.
[0055] Specifically, this embodiment obtains a 3D scene manager from a system that displays BIM models based on ThreeJS. The 3D scene manager is a class that manages 3D scene objects and is primarily responsible for functions such as naming, querying, creating, clearing, removing, and rendering options for 3D scenes, as well as specifying object operations in the 3D scene. Then, based on the target information type of the GIS information to be loaded, such as GIS image information or GIS vector information, the 3D scene manager is used to create and name the scene. To facilitate subsequent calculations and operations, a root object is added to the 3D scene. It is understood that the root object is a logical concept, an invisible object in ThreeJS that has no shape, size, or material, but only attributes such as position and posture. From a hierarchical perspective, the root object is the common parent node of all ThreeJS vectors, that is, the parent node of the GIS information vector, and its child nodes are ThreeJS vectors. The number of ThreeJS vectors is related to the number of GIS tiles obtained. In other words, the root object can be said to have no specific reference or to represent the entire ThreeJS vector population. It is three-dimensional and has position attributes, but lacks the typical attributes of 3D objects such as size and material. Therefore, when adjusting the visual consistency later, if you need to adjust the threejs carrier as a whole, you can directly adjust the root object, which improves the efficiency of the adjustment operation. If there is no root object and you want to adjust the threejs carrier as a whole, you need to operate on each threejs carrier, which is more cumbersome.
[0056] Step S13: Based on the target GIS information, create a threejs geometric carrier using threejs visualization on the basis of the root object.
[0057] In this embodiment, based on the root object added in the target scene, a threejs geometric carrier is created using the threejs visualization method according to the above target GIS information to obtain a threejs geometric carrier attached to the above root object, thereby realizing the visualization operation of GIS information based on the threejs geometric object.
[0058] In this embodiment, creating a threejs geometric carrier using threejs visualization based on the root object according to the target GIS information may include: initializing a threejs plane geometry; using a texture loader to set the target GIS information as a map to the threejs plane geometry based on the root object, or setting the geometric parameters of the threejs plane geometry according to the vector parameters contained in the target GIS information to obtain a threejs carrier attached to the root object.
[0059] It is understandable that since GIS information content is difficult to visualize directly, the threejs geometry object is used to visualize the GIS information. By initializing the threejs plane geometry, the initial size of the carrier is usually 256*256, and then the texture loader is used to set the target GIS information as a map to the threejs plane geometry, or read the GIS vector data to set the geometric shape of the carrier, and obtain the threejs carrier attached to the root object.
[0060] Step S14: Using the BIM model displayed on the web side based on threejs as a reference, the threejs geometric carrier is adjusted for posture and visual consistency to obtain a fusion display of the BIM model and GIS information.
[0061] In this embodiment, after generating the aforementioned ThreeJS geometry carrier, the ThreeJS geometry carrier is adjusted for position and visual consistency using the BIM model displayed on the web based on ThreeJS as a reference, thereby achieving a fusion display of the BIM model and GIS information. It is understandable that due to the different coordinate systems, creation environments, and creation methods of the GIS information model and the BIM model, there may be issues related to different position, lighting, or surface appearance compared to the actual situation, so visual consistency adjustment is required for the GIS image data.
[0062] In this embodiment, the posture and visual consistency adjustment of the threejs geometric carrier with reference to the BIM model displayed on the web side based on threejs can include: obtaining drawing information corresponding to the target GIS information from the attribute information of the BIM model; determining a planning red line from the drawing information, and selecting a target number of non-collinear target points on the planning red line, and determining the longitude and latitude coordinates corresponding to the target points according to the coordinate information of the planning red line; determining the first type of target pixel points of the BIM model corresponding to the target points according to the longitude and latitude coordinates; determining the GIS tile number corresponding to the longitude and latitude coordinates by querying the GIS service provider according to the longitude and latitude coordinates, and determining the second type of target pixel points of the threejs geometric carrier corresponding to the target point according to the GIS tile number and the corresponding GIS tile size; estimating the affine matrix according to the first type of target pixel points and the second type of target pixel points using the least squares method, and using the affine matrix to perform posture transformation on the threejs geometric carrier to make the posture of the BIM model consistent with that of the threejs geometric carrier.
[0063] For example Figure 2As shown, to align the pose of GIS information with the BIM model, the corresponding drawing information is retrieved from the BIM model attributes, and the "planning red line" information is retrieved from the drawing information. The "planning red line" coordinate information is converted into longitude and latitude coordinates. The number of targets can be three. Three non-collinear points and their longitude and latitude coordinates are recorded on the "planning red line" and marked in the BIM model to obtain the first type of target pixels. Separately, the GIS tile numbers corresponding to the three longitude and latitude coordinates are retrieved from the map service provider. Based on the GIS tile numbers and tile sizes, the three pixels on the Threejs vector corresponding to the three longitude and latitude coordinates are obtained to obtain the second type of target pixels. The affine matrix parameters are estimated using the least squares method based on the positions of the three pixels and the positions of the three points in the BIM model. Based on the estimated affine matrix, the GIS information vector is transformed to a pose consistent with the BIM. This indicates that by retrieving the GIS information and recreating the vector during the registration phase, and then calculating the coordinate alignment information based on the planning red line information carried by the BIM, high accuracy can be achieved without manual calibration.
[0064] In this embodiment, the posture and visual consistency adjustment of the threejs geometric carrier based on the BIM model displayed on the web side based on threejs is performed with reference, which can include: obtaining a camera image under the target perspective in the BIM model scene, and obtaining a BIM image by eliminating the background image, and then determining a brightness histogram corresponding to the BIM image; using the brightness histogram to adjust the brightness of the GIS image corresponding to the threejs geometric carrier to obtain an adjusted image; and adjusting the saturation of the adjusted image according to the average saturation of the BIM image.
[0065] After pose calibration, to better visualize the fusion of the BIM model and GIS information, adjust the brightness and saturation of the ThreeJS geometry carrier based on the BIM model. This is accomplished by randomly selecting several valid camera viewpoints within a scene containing only the BIM model, acquiring camera images, excluding background images, and statistically analyzing the remaining BIM images based on brightness to generate a BIM image brightness histogram. The GIS imagery of the ThreeJS geometry carrier is then brightness-rescaled based on the BIM image brightness histogram. This rescaled brightness ranges the GIS imagery to match the BIM imagery. The brightness calculation is based on the formula: brightness = 0.2125R + 0.7154G + 0.0721B, where the value of a grayscale pixel is calculated as the weighted sum of the corresponding red (R), green (G), and blue (B) pixels. After brightness adjustment, the GIS imagery is saturated to match the overall average saturation of the BIM imagery. Saturation calculation reference: Saturation = (max(r,g,b)-min(r,g,b)) / max(r,g,b). In the special case where both rgb are 0, the saturation is 0.
[0066] In this embodiment, after the threejs geometric carrier is adjusted for posture and visual consistency, it may also include: rendering the BIM model and the threejs geometric carrier using a threejs renderer. After the threejs geometric carrier is adjusted for posture and visual consistency, the BIM model and all the models of the above-mentioned threejs geometric carrier are rendered by the threejs renderer to obtain the final fusion result of the BIM model and GIS information. As a result, in this embodiment, on the basis of using threejs to render the BIM model on the web side, by obtaining the required target GIS information, configuring the threejs geometric body according to the target GIS information, and finally adjusting the posture and visual consistency, the GIS information is added to the BIM system using the threejs visualization method, and by selectively obtaining GIS information instead of using the GIS model as a base map, the waste of resources and efficiency problems caused by useless data are avoided.
[0067] As can be seen from the above, in this embodiment, the target information type is obtained, and the corresponding target GIS information is obtained from the GIS service provider according to the target information type; a target scene is created according to the target information type, and a root object is added to the target scene; based on the target GIS information, a ThreeJS geometric carrier is created using ThreeJS visualization on the basis of the root object; and with the BIM model displayed on the web side based on ThreeJS as a reference, the ThreeJS geometric carrier is adjusted for posture and visual consistency to obtain a fusion display of the BIM model and GIS information. As can be seen from the above, by only obtaining the required target GIS information and then using ThreeJS to create its display carrier based on the target GIS information, there is no need for complex model conversion. Moreover, by only loading the required target GIS information, the amount of data required to be loaded is reduced, and most of the useless information and invalid calculations are avoided. Finally, the fusion display of the BIM model and GIS information is achieved through posture and visual consistency adjustment. That is, in the system that displays the BIM model based on ThreeJS, the target GIS information is obtained as needed and displayed using the relevant carrier, achieving the effect of simultaneously displaying the BIM model and GIS information, avoiding a series of complex operations such as alignment and creating multiple layers of fineness when converting the BIM model to the GIS model, and reducing the amount of useless GIS data.
[0068] Correspondingly, the embodiment of the present application also discloses a device for displaying the integration of BIM model and GIS information, see Figure 3 As shown, the device includes:
[0069] The target GIS information acquisition module 11 is used to obtain the target information type and obtain the corresponding target GIS information from the GIS service provider according to the target information type;
[0070] A target scene creation module 12 is configured to create a target scene according to the target information type and add a root object to the target scene;
[0071] A threejs geometry carrier creation module 13 is used to create a threejs geometry carrier based on the root object using threejs visualization according to the target GIS information;
[0072] The fusion display module 14 is used to adjust the posture and visual consistency of the threejs geometric carrier based on the BIM model displayed on the web side based on threejs, so as to obtain a fusion display of the BIM model and GIS information.
[0073] As can be seen from the above, in this embodiment, the target information type is obtained, and the corresponding target GIS information is obtained from the GIS service provider according to the target information type; a target scene is created according to the target information type, and a root object is added to the target scene; based on the target GIS information, a ThreeJS geometric carrier is created using ThreeJS visualization on the basis of the root object; and with the BIM model displayed on the web side based on ThreeJS as a reference, the ThreeJS geometric carrier is adjusted for posture and visual consistency to obtain a fusion display of the BIM model and GIS information. As can be seen from the above, by only obtaining the required target GIS information and then using ThreeJS to create its display carrier based on the target GIS information, there is no need for complex model conversion. Moreover, by only loading the required target GIS information, the amount of data required to be loaded is reduced, and most of the useless information and invalid calculations are avoided. Finally, the fusion display of the BIM model and GIS information is achieved through posture and visual consistency adjustment. That is, in the system that displays the BIM model based on ThreeJS, the target GIS information is obtained as needed and displayed using the relevant carrier, achieving the effect of simultaneously displaying the BIM model and GIS information, avoiding a series of complex operations such as alignment and creating multiple layers of fineness when converting the BIM model to the GIS model, and reducing the amount of useless GIS data.
[0074] In some specific embodiments, the target GIS information acquisition module 11 may be specifically configured to filter and obtain corresponding target GIS information from the GIS service provider according to a filtering condition including the target information type;
[0075] Among them, the screening conditions include the target information type, GIS service provider interface, and interface call parameters; the target information type includes any one or more of image map, place name information, terrain information, administrative area information, road information, water system information, and residential area information; the interface call parameters include longitude range, latitude range, and accuracy range.
[0076] In some specific embodiments, the target scene creation module 12 may specifically include:
[0077] A target scene creation unit is used to create a corresponding target scene according to the target information type using a three-dimensional scene manager of a BIM model displayed on a web-based threejs server and name the target scene; the three-dimensional scene manager is used to create, name, query, clear, and render three-dimensional scenes;
[0078] The root object adding unit is used to add a root object to the target scene.
[0079] In some specific embodiments, the fusion display module 14 may specifically include:
[0080] A drawing information acquisition unit, configured to acquire drawing information corresponding to the target GIS information from the attribute information of the BIM model;
[0081] a latitude and longitude coordinate determination unit, configured to determine a planning red line from the drawing information, select a target number of non-collinear target points on the planning red line, and determine the latitude and longitude coordinates corresponding to the target points based on the coordinate information of the planning red line;
[0082] A first-category target pixel point determination unit, configured to determine, based on the latitude and longitude coordinates, the first-category target pixel point corresponding to the target point in the BIM model;
[0083] a second-category target pixel point determination unit, configured to determine, based on the latitude and longitude coordinates, a GIS tile number corresponding to the latitude and longitude coordinates by querying the GIS service provider, and determine, based on the GIS tile number and the corresponding GIS tile size, a second-category target pixel point corresponding to the target point in the threejs geometric carrier;
[0084] A posture transformation unit is used to estimate an affine matrix based on the first type of target pixel points and the second type of target pixel points using the least squares method, and use the affine matrix to transform the posture of the threejs geometric carrier so that the posture of the BIM model is consistent with that of the threejs geometric carrier.
[0085] In some specific embodiments, the fusion display module 14 may specifically include:
[0086] a brightness histogram acquisition unit, configured to acquire a camera image from a target perspective in the BIM model scene, obtain a BIM image by removing a background image, and then determine a brightness histogram corresponding to the BIM image;
[0087] A brightness adjustment unit, configured to adjust the brightness of the GIS image corresponding to the threejs geometric carrier using the brightness histogram to obtain an adjusted image;
[0088] The saturation adjustment unit is used to adjust the saturation of the adjusted image according to the average saturation of the BIM image.
[0089] In some specific embodiments, the fusion display device of the BIM model and GIS information may specifically include:
[0090] A rendering unit is used to render the BIM model and the threejs geometric carrier using a threejs renderer.
[0091] In some specific embodiments, the threejs geometry carrier creation module 13 may specifically include:
[0092] Initialization unit, used to initialize threejs plane geometry;
[0093] A threejs geometric carrier generation unit is used to use a texture loader to set the target GIS information as a map to the threejs plane geometric body based on the root object, or to set the geometric parameters of the threejs plane geometric body according to the vector parameters contained in the target GIS information to obtain a threejs carrier attached to the root object.
[0094] Furthermore, the present application also discloses an electronic device, see Figure 4 The contents in the drawings should not be considered as any limitation on the scope of use of the present application.
[0095] Figure 4 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the method for integrating and displaying BIM models and GIS information disclosed in any of the aforementioned embodiments.
[0096] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0097] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223 including target GIS information, etc. The storage method can be temporary storage or permanent storage.
[0098] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, so as to enable the processor 21 to calculate and process the massive data 223 in the memory 22. The operating system 221 can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs capable of implementing the method for integrating and displaying BIM models and GIS information performed by the electronic device 20 as disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs capable of performing other specific tasks.
[0099] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the method for fusion display of BIM model and GIS information disclosed in any of the aforementioned embodiments are implemented.
[0100] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0101] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0102] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0103] The above is a detailed introduction to the method, device, equipment and medium for the integrated display of BIM models and GIS information provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for displaying the integration of BIM models and GIS information, characterized in that: include: Obtaining the target information type, and obtaining the corresponding target GIS information from the GIS service provider according to the target information type; Create a target scene according to the target information type, and add a root object to the target scene, where the root object is the common parent node of all threejs geometric carriers; According to the target GIS information, a threejs geometric carrier is created based on the root object using threejs visualization; Using the BIM model displayed on the web side based on ThreeJS as a reference, the ThreeJS geometric carrier is adjusted for position and visual consistency to obtain a fusion display of the BIM model and GIS information. Among them, the BIM model displayed on the web side based on threejs is used as a reference to adjust the posture and visual consistency of the threejs geometric carrier, including: obtaining the drawing information corresponding to the target GIS information from the attribute information of the BIM model; determining the planning red line from the drawing information, and selecting a target number of non-collinear target points on the planning red line, and determining the longitude and latitude coordinates corresponding to the target points according to the coordinate information of the planning red line; determining the first type of target pixel points corresponding to the target points in the BIM model according to the longitude and latitude coordinates; determining the GIS tile number corresponding to the longitude and latitude coordinates by querying the GIS service provider according to the longitude and latitude coordinates, and determining the second type of target pixel points corresponding to the target points in the threejs geometric carrier according to the GIS tile number and the corresponding GIS tile size; estimating the affine matrix according to the first type of target pixel points and the second type of target pixel points using the least squares method, and using the affine matrix to transform the posture of the threejs geometric carrier to make the posture of the BIM model consistent with that of the threejs geometric carrier.
2. The method for displaying the integration of BIM model and GIS information according to claim 1, characterized in that: The step of obtaining corresponding target GIS information from a GIS service provider according to the target information type includes: Filtering and obtaining corresponding target GIS information from the GIS service provider according to the screening conditions including the target information type; Among them, the screening conditions include the target information type, GIS service provider interface, and interface call parameters; the target information type includes any one or more of image map, place name information, terrain information, administrative area information, road information, water system information, and residential area information; the interface call parameters include longitude range, latitude range, and accuracy range.
3. The method for displaying the integration of BIM model and GIS information according to claim 1, characterized in that: The step of creating a target scene according to the target information type and adding a root object to the target scene includes: According to the target information type, a corresponding target scene is created and named using a three-dimensional scene manager of a BIM model displayed on a web-based threejs server; the three-dimensional scene manager is used to create, name, query, clear, and render three-dimensional scenes; Adds a root object to the target scene.
4. The method for displaying the integration of BIM model and GIS information according to claim 1, characterized in that: The BIM model displayed on the web side based on ThreeJS is used as a reference to adjust the posture and visual consistency of the ThreeJS geometric carrier, including: Acquire a camera image from a target perspective in the BIM model scene, obtain a BIM image by removing a background image, and then determine a brightness histogram corresponding to the BIM image; Using the brightness histogram, the GIS image corresponding to the threejs geometric carrier is brightness adjusted to obtain an adjusted image; The saturation of the adjusted image is adjusted according to the average saturation of the BIM image.
5. The method for displaying the integration of BIM model and GIS information according to claim 1, characterized in that: After the threejs geometric carrier is adjusted for position and visual consistency, the method further includes: The BIM model and the threejs geometric carrier are rendered using a threejs renderer.
6. The method for displaying the integration of BIM model and GIS information according to any one of claims 1 to 5, characterized in that: The step of creating a threejs geometric carrier based on the root object by using threejs visualization according to the target GIS information includes: Initialize threejs plane geometry; Based on the root object, the target GIS information is set as a map to the threejs plane geometry using a texture loader, or the geometric parameters of the threejs plane geometry are set according to the vector parameters contained in the target GIS information to obtain a threejs carrier attached to the root object.
7. A fusion display device for BIM model and GIS information, characterized in that: include: The target GIS information acquisition module is used to obtain the target information type and obtain the corresponding target GIS information from the GIS service provider according to the target information type; A target scene creation module is used to create a target scene according to the target information type and add a root object to the target scene, where the root object is the common parent node of all threejs geometric carriers; A threejs geometry carrier creation module is used to create a threejs geometry carrier based on the root object using threejs visualization according to the target GIS information; The fusion display module is used to adjust the posture and visual consistency of the Threejs geometric carrier based on the BIM model displayed on the web side based on Threejs, so as to obtain a fusion display of the BIM model and GIS information; Among them, the fusion display module is specifically used to: obtain drawing information corresponding to the target GIS information from the attribute information of the BIM model; determine the planning red line from the drawing information, and select a target number of non-collinear target points on the planning red line, and determine the longitude and latitude coordinates corresponding to the target points according to the coordinate information of the planning red line; determine the first type of target pixel point corresponding to the target point in the BIM model according to the longitude and latitude coordinates; determine the GIS tile number corresponding to the longitude and latitude coordinates by querying the GIS service provider according to the longitude and latitude coordinates, and determine the second type of target pixel point corresponding to the target point in the threejs geometric carrier according to the GIS tile number and the corresponding GIS tile size; estimate the affine matrix according to the first type of target pixel point and the second type of target pixel point using the least squares method, and use the affine matrix to perform posture transformation on the threejs geometric carrier to make the posture of the BIM model consistent with that of the threejs geometric carrier.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the method for integrating and displaying the BIM model and GIS information as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that Used to store computer programs; wherein when the computer program is executed by a processor, the method for integrating and displaying the BIM model and GIS information as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Engineering scene establishing method
CN112069582A
BIM-based construction method of bridge information detection and visualization system
CN112733232A
Large-scale project on-site planning method
CN112733247A