CN114663324A - Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components - Google Patents

Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components Download PDF

Info

Publication number
CN114663324A
CN114663324A CN202210325266.8A CN202210325266A CN114663324A CN 114663324 A CN114663324 A CN 114663324A CN 202210325266 A CN202210325266 A CN 202210325266A CN 114663324 A CN114663324 A CN 114663324A
Authority
CN
China
Prior art keywords
information
target
gis
threejs
bim
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
CN202210325266.8A
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.)
Sinomach Internet Research Institute Henan Co ltd
Original Assignee
Sinomach Internet Research Institute Henan 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 Sinomach Internet Research Institute Henan Co ltd filed Critical Sinomach Internet Research Institute Henan Co ltd
Publication of CN114663324A publication Critical patent/CN114663324A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Abstract

The application discloses a fusion display method, a fusion display device, fusion display equipment and a storage medium of a BIM (building information modeling) model and GIS (geographic information system) information. The method comprises the following steps: acquiring a target information type, and acquiring corresponding target GIS information from a GIS service provider according to the target information type; creating a target scene according to the target information type, and adding a root object to the target scene; according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object; and (3) performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information. In the system for displaying the BIM based on threjs, target GIS information is acquired as required and displayed by using threjs carriers, so that the BIM and the GIS information can be displayed quickly and simultaneously.

Description

Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
Technical Field
The invention relates to the technical field of computers, in particular to a fusion display method, a fusion display device, fusion display equipment and a storage medium for BIM (building information modeling) and GIS (geographic information system) information.
Background
The Building Information Model (BIM) is a digital expression of physical and functional characteristics of Building facilities, the BIM carries out Information sharing and transmission in the whole life cycle processes of engineering design, delivery, construction, operation and maintenance, supervision and the like, engineering technicians can correctly understand and efficiently deal with Building Information by virtue of the BIM, the BIM provides a foundation for cooperative work for construction main bodies such as design teams, operation units and the like, and the BIM plays an important role in the aspects of improving production efficiency, saving cost, shortening construction period and the like. A Geographic Information System (GIS), which is a System integrating geography, cartography, remote sensing technology, and computer graphic display technology, has been developed in recent years as a computer service supporting input, storage, query, analysis, and display of geographic data.
In the prior art, in order to embody geographic information in a building information model, a conversion method from a BIM model to a GIS model is specifically provided by: dividing the BIM model into a shared unit model and a non-shared unit model, constructing a BIM model conversion database, gridding all BIM models into GIS models, constructing an LOD data structure for the GIS models, mapping textures onto GIS model triangular panels, associating attributes with the GIS models, translating the geometric positions of the GIS models, and reclassifying and organizing the converted GIS models. In the prior art, a method for converting a BIM model into a GIS model supporting massive hierarchical loading is specifically provided by: constructing a database table of a BIM (building information modeling) model, constructing a three-dimensional earth scene structure, analyzing component information, grouping the three-dimensional earth scenes, constructing a sub-scene space hierarchical structure, screening, simplifying and combining data, converting the BIM model into B3DM specifications, wherein each B3DM file is a tile; and constructing a tree-shaped space structure of the tile set according to the octree. However, in order to simultaneously display the BIM and the GIS information, the BIM model needs to be converted into the GIS model, including the steps, which results in a large workload, and causes full loading of the BIM model and the GIS model, resulting in a large data volume; although the use of spatial hierarchy techniques such as octree alleviates the problem of excessive instantaneous data volume, the spatial hierarchy techniques inevitably introduce problems such as reduced precision. Moreover, when the BIM model is converted into the GIS model, the coordinate offset is calibrated according to the unavoidable requirement because the BIM modeling space coordinate is different from the GIS space coordinate, and the calculation of the coordinate offset calibration matrix is not very convenient and often needs to be done manually.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device and a medium for fusion display of a BIM model and GIS information, which can quickly and simultaneously display the BIM model and the GIS information. The specific scheme is as follows:
in a first aspect, the application discloses a method for fusion display of a BIM model and GIS information, comprising:
acquiring a target information type, and acquiring corresponding target GIS information from a GIS service provider according to the target information type;
creating a target scene according to the target information type, and adding a root object to the target scene;
according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object;
and (3) performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information.
Optionally, the obtaining of the corresponding target GIS information from the GIS service provider according to the target information type includes:
screening the GIS service provider according to the screening conditions containing the types of the target information to obtain corresponding target GIS information;
the screening condition comprises the target information type, a GIS service provider interface and an interface calling parameter; the target information type comprises any one or more of an image map, place name information, terrain information, administrative region information, road information, water system information and residential area information; the interface call parameters include a longitude range, a latitude range, and a precision range.
Optionally, the 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 three-dimensional scene manager of a BIM (building information modeling) model displayed by a web end based on threjs is used for creating a corresponding target scene and naming the target scene; the three-dimensional scene manager is used for creating, naming, inquiring, clearing and rendering the three-dimensional scene;
adding a root object to the target scene.
Optionally, the performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM model displayed on the web end based on threejs as a reference includes:
acquiring 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, selecting target points which are not collinear and are in target number on the planning red line, and determining longitude and latitude coordinates corresponding to the target points according to the coordinate information of the planning red line;
determining the first type target pixel points of the BIM model corresponding to the target points according to the longitude and latitude coordinates;
according to the longitude and latitude coordinates, determining GIS tile sequence numbers corresponding to the longitude and latitude coordinates by inquiring the GIS service provider, and determining second-class target pixel points corresponding to the threejs geometric carriers by the target points according to the GIS tile sequence numbers and the sizes of the corresponding GIS tiles;
and estimating an affine matrix by using a least square method according to the first class of target pixel points and the second class of target pixel points, and performing pose transformation on the threejs geometric carrier by using the affine matrix to make the poses of the BIM model and the threejs geometric carrier consistent.
Optionally, the performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM model displayed on the web end based on threejs as a reference includes:
acquiring a camera image under a target view angle in the BIM model scene, obtaining the BIM image by removing a background image, and then determining a brightness histogram corresponding to the BIM image;
utilizing 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.
Optionally, after performing pose and visual consistency adjustment on the threejs geometric carrier, the method further includes:
and rendering the BIM model and the threejs geometric carrier by utilizing a threejs renderer.
Optionally, the creating a threejs geometric carrier by using threejs visualization on the basis of the root object according to the target GIS information includes:
initializing a threejs plane geometry;
and on the basis of the root object, setting the target GIS information to the threejs planar geometry by using a texture loader as a map, or setting the geometric parameters of the threejs planar geometry according to vector parameters contained in the target GIS information to obtain a threejs carrier attached to the root object.
In a second aspect, the present application discloses a fusion display device of a BIM model and GIS information, comprising:
the target GIS information acquisition module is used for acquiring a target information type and acquiring corresponding target GIS information from a GIS service provider according to the target information type;
the target scene creating module is used for creating a target scene according to the target information type and adding a root object into the target scene;
the threejs geometric carrier creating module is used for creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object according to the target GIS information;
and the fusion display module is used for performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed on the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the fusion display method of the BIM and the GIS information.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; when being executed by a processor, the computer program realizes the fusion display method of the BIM and the GIS information.
In the method, a target information type is obtained, and corresponding target GIS information is obtained from a GIS service provider according to the target information type; creating a target scene according to the target information type, and adding a root object into the target scene; according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object; and (3) performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information. According to the method, only the needed target GIS information is obtained, then the display carrier of the BIM is created by using threejs according to the target GIS information, complex model conversion is not needed, only the needed target GIS information is loaded, the data volume needing to be loaded is reduced, most of useless information and invalid calculation are avoided, finally fusion display of the BIM and the GIS information is achieved through pose and vision consistency adjustment, namely the target GIS information is obtained according to the needs in a system for displaying the BIM based on threejs and the target GIS information is displayed by using the related carrier, the effect of displaying the BIM and the GIS information simultaneously is achieved, a series of complex operations including registration and multi-layer fineness creation of the BIM into the GIS model are avoided, and the useless data volume of the GIS is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a fusion display method of a BIM model and GIS information provided by the present application.
Fig. 2 is a flowchart of a specific pose adjusting method provided by the present application.
Fig. 3 is a schematic structural diagram of a fusion display device of a BIM model and GIS information provided in the present application.
Fig. 4 is a block diagram of an electronic device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, geographic information is represented in a building information model through a conversion method from a BIM model to a GIS model, or the geographic information is represented in the building information model through a method of converting the BIM model into a GIS model supporting massive hierarchical loading, but the BIM model needs to be converted into the GIS model, including the steps, and the workload is large. In order to overcome the technical problem, the application provides a fusion display method of the BIM and the GIS information, and the BIM and the GIS information can be displayed quickly and simultaneously.
The embodiment of the application discloses a fusion display method of a BIM (building information modeling) model and GIS (geographic information system) information, which is shown in figure 1 and can comprise the following steps:
step S11: and acquiring a target information type, and acquiring corresponding target GIS information from a GIS service provider according to the target information type.
In this embodiment, a target information type required by a user is first obtained, and then the target information type is used as a screening condition to screen a corresponding target GIS from a GIS service provider to obtain the corresponding target GIS, that is, in this embodiment, only the required target GIS information is loaded, instead of using a GIS model as a base map, so that interference of useless data amount is avoided. The target GIS information can be acquired from online map service providers and can also be acquired from offline GIS information.
In this embodiment, the obtaining of the corresponding target GIS information from the GIS service provider according to the target information type may include: screening the GIS service provider according to the screening conditions containing the types of the target information to obtain corresponding target GIS information; the screening conditions comprise the target information type, a GIS service provider interface and an interface calling parameter; the target information type comprises any one or more of an image, geographical name information, topographic information, administrative region information, road information, water system information and residential area information; the interface call parameters include a longitude range, a latitude range, and a precision range.
That is, according to the user's GIS information usage demand, such as image map, place name information, topographic information, administrative region information, road information, water system information, or residential area information, the corresponding information can be acquired from a GIS service provider such as boudouard, gore, Mapbox, heaven and earth map, or google. For convenience of use, a json file is established as a screening condition to record parameters required for acquiring the GIS, and the recorded information comprises the target information type, a GIS service provider interface, interface calling parameters, description and the like, wherein the interface calling parameters comprise a longitude range, a latitude range, a precision range and the like. In addition, generally, an available target GIS information file is directly obtained, the files of part of map providers need to be decoded according to longitude and latitude codes and altitude codes of the map providers to obtain the available target GIS information file, and for image data, the information file refers to an image block information file and is in a common format of jpg and the like.
Step S12: and creating a target scene according to the target information type, and adding a root object to the target scene.
In this embodiment, the creating a target scene according to the target information type and adding a root object to the target scene may include: according to the target information type, a three-dimensional scene manager of a BIM (building information modeling) model displayed by a web end based on threjs is used for creating a corresponding target scene and naming the target scene; the three-dimensional scene manager is used for creating, naming, inquiring, clearing and rendering the three-dimensional scene; adding a root object to the target scene. That is, in this embodiment, the scheme of fusing geographic information is implemented on the basis of the building information model displayed on the web side threjs, and the system for displaying the BIM on the web side based on threjs is a technology for displaying the BIM model on a web page based on threjs, and provides the capability and programming interface for browsing and controlling the BIM model on the web side. the threjs is a WebGL third-party library written based on JavaScript, provides a great number of 3D display functions, and can be used for conveniently establishing various three-dimensional scenes including various objects such as a camera, light and shadow, materials and the like.
Specifically, in this embodiment, a three-dimensional scene manager is obtained in a system for displaying a BIM model based on threjs, and the three-dimensional scene manager is a class for managing three-dimensional scene objects and is mainly responsible for functions of naming, querying, creating, clearing, removing, rendering options and the like of a three-dimensional scene and object operations of specifying the three-dimensional scene. Then, according to the target information type of the GIS information needing to be loaded, such as GIS image information or GIS vector information, a three-dimensional scene manager is used for creating and naming a scene, and a root object is added in the three-dimensional scene for facilitating subsequent calculation and operation. It can be understood that the root object is a logical concept, and in threjs, the root object is an invisible object which has no appearance size, no material, and only pose and other attributes. From the perspective of the superior-subordinate relationship, the root object is a common parent node of all threejs carriers, namely, a parent node of a carrier of GIS information, a child node of the root object is a threejs carrier, and the number of the threejs carriers is related to the number of the obtained GIS tiles, that is, the root object is not specifically referred to, or is the whole threejs carrier, and is three-dimensional and has a pose attribute, but does not have the attributes of the size, the material and the like of a common three-dimensional object. Therefore, if the whole threejs carrier needs to be adjusted in the subsequent visual consistency adjustment, the root object can be directly adjusted, so that the efficiency of the adjustment operation is improved, and if the whole threejs carrier needs to be adjusted without the root object, each threejs carrier needs to be operated, so that the operation is complicated.
Step S13: and according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object.
In this embodiment, on the basis of the root object added in the target scene, a threejs geometric carrier is created by using a threejs visualization method according to the target GIS information to obtain the threejs geometric carrier attached to the root object, so that the visualization operation of the GIS information is realized by relying on the threejs geometric object.
In this embodiment, the creating a threejs geometric carrier by using threejs visualization on the basis of the root object according to the target GIS information may include: initializing a threejs plane geometry; and on the basis of the root object, setting the target GIS information to the threejs plane geometry as a map by using a texture loader, or setting the geometric parameters of the threejs plane geometry according to vector parameters contained in the target GIS information to obtain the threejs carrier attached to the root object.
It can be understood that, since the content of the GIS information is difficult to directly visualize, the threjs geometric object is used to visualize the GIS information, the common initial size of the carrier is 256 × 256 by initializing the threjs planar geometric object, and then the texture loader is used to set the target GIS information as a map to the threjs planar geometric object, or the geometric shape of the GIS vector data setting carrier is read, so as to obtain the threjs carrier attached to the root object.
Step S14: and (3) performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information.
In this embodiment, after the threejs geometric carrier is generated, the position and the visual consistency of the threejs geometric carrier are adjusted by using the BIM model displayed on the basis of threejs on the web side as a reference, so as to obtain the fusion display of the BIM model and the GIS information. It can be understood that, because the coordinate systems, the creating environments and the creating methods of the GIS information model and the BIM model are different, there may be related problems of different poses, different light quantities or different surface impressions compared with the real situation, so that the vision consistency adjustment operation is required to be performed on the GIS image data.
In this embodiment, the adjusting pose and visual consistency of the threejs geometric carrier with the BIM model displayed on the web end based on threejs as a reference may include: acquiring 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, selecting target points which are not collinear and are in a target number on the planning red line, and determining longitude and latitude coordinates corresponding to the target points according to coordinate information of the planning red line; determining the first type target pixel points of the BIM model corresponding to the target points according to the longitude and latitude coordinates; according to the longitude and latitude coordinates, determining GIS tile sequence numbers corresponding to the longitude and latitude coordinates by inquiring the GIS service provider, and determining second-class target pixel points corresponding to the threejs geometric carriers by the target points according to the GIS tile sequence numbers and the sizes of the corresponding GIS tiles; and estimating an affine matrix by using a least square method according to the first type of target pixel points and the second type of target pixel points, and performing pose transformation on the threejs geometric carrier by using the affine matrix to make the poses of the BIM and the threejs geometric carrier consistent.
For example, as shown in fig. 2, to calibrate the pose of the GIS information and the BIM model, corresponding drawing information is queried from attribute information of the BIM model, information of a "planned red line" is queried from the drawing information, coordinate information of the "planned red line" is converted into longitude and latitude coordinates, the number of the targets can be 3 specifically, three non-collinear points and longitude and latitude thereof are recorded on the "planned red line", and corresponding three points are marked in the BIM model, so that a first-class target pixel point is obtained. And in addition, the GIS tile serial numbers corresponding to the three longitudes and latitudes are inquired at a map service provider, and three pixel points on a Threejs carrier corresponding to the three longitudes and latitudes are obtained according to the GIS tile serial numbers and the size of the GIS tiles, so that second-class target pixel points are obtained. And estimating affine matrix parameters by using a least square method according to the positions of the three pixel points and the positions of the three points in the BIM, and transforming the GIS information carrier to be consistent with the BIM pose according to the estimated affine matrix. Therefore, in the registration stage, the GIS information is retrieved and the carrier is created again, and then the coordinate alignment information is calculated according to the planning red line information carried by the BIM, so that the effect of high precision can be achieved without manual calibration.
In this embodiment, the adjusting pose and visual consistency of the threejs geometric carrier with the BIM model displayed on the web end based on threejs as a reference may include: acquiring a camera image under a target view angle in the BIM model scene, obtaining the BIM image by removing a background image, and then determining a brightness histogram corresponding to the BIM image; utilizing 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.
After the pose calibration is carried out, in order to enable the BIM and GIS information to be better presented after being fused, the brightness and the saturation of the threejs geometric carrier are adjusted according to the BIM, specifically, camera images can be obtained after a plurality of legal camera visual angles are randomly selected in a scene only having the BIM, background images are removed, the rest BIM images are counted according to the brightness to obtain BIM image brightness histogram information, then, the brightness of a GIS image of the threejs geometric carrier is reformed according to the BIM image brightness histogram, and the proportion of each brightness interval of the reformed GIS image is consistent with that of the BIM image. Luminance calculation reference: luminance = 0.2125R + 0.7154G + 0.0721B, i.e., the value of the gray-scale pixel is calculated as a weighted sum of the corresponding red (R, red), green (G, green), and blue (B, blue) pixels. After the brightness is adjusted, the GIS image after the brightness is adjusted is subjected to saturation adjustment, and the GIS image saturation can be adjusted to be consistent with the integral average saturation of the BIM image. Saturation calculation reference: saturation = (max (r, g, b) -min (r, g, b))/max (r, g, b), saturation is 0 if rgb is all 0 special cases.
In this embodiment, after performing pose and visual consistency adjustment on the threejs geometric carrier, the method may further include: and rendering the BIM model and the threejs geometric carrier by utilizing a threejs renderer. And after the pose and vision consistency adjustment is carried out on the threejs geometric carrier, rendering the BIM model and all models of the threejs geometric carrier by a threejs renderer to obtain a final fusion result of the BIM model and the GIS information. Therefore, in this embodiment, on the basis that the web end uses threjs to render the BIM model, by acquiring the required target GIS information, configuring threjs geometry according to the target GIS information, and finally performing pose and vision consistency adjustment, the method for visualizing the GIS information by threjs is implemented to be added into the BIM system, and by selectively acquiring the GIS information instead of using the GIS model as a base map, the problems of resource waste and efficiency caused by useless data are avoided.
As can be seen from the above, in this embodiment, a target information type is obtained, and corresponding target GIS information is obtained from a GIS service provider according to the target information type; creating a target scene according to the target information type, and adding a root object to the target scene; according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object; and performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed on the basis of threjs on the web end as reference so as to obtain fusion display of the BIM and GIS information. According to the method, only the needed target GIS information is obtained, then the display carrier of the BIM is created by using threejs according to the target GIS information, complex model conversion is not needed, only the needed target GIS information is loaded, the data volume needing to be loaded is reduced, most of useless information and invalid calculation are avoided, finally fusion display of the BIM and the GIS information is achieved through pose and vision consistency adjustment, namely the target GIS information is obtained according to the needs in a system for displaying the BIM based on threejs and the target GIS information is displayed by using the related carrier, the effect of displaying the BIM and the GIS information simultaneously is achieved, a series of complex operations including registration and multi-layer fineness creation of the BIM into the GIS model are avoided, and the useless data volume of the GIS is reduced.
Correspondingly, the embodiment of the present application further discloses a fusion display device of the BIM model and the GIS information, as shown in fig. 3, the device includes:
the target GIS information acquisition module 11 is used for acquiring a target information type and acquiring corresponding target GIS information from a GIS service provider according to the target information type;
a target scene creating module 12, configured to create a target scene according to the target information type, and add a root object to the target scene;
a threejs geometric carrier creation module 13, configured to create a threejs geometric carrier based on the root object by using threejs visualization according to the target GIS information;
and the fusion display module 14 is used for adjusting the pose and the visual consistency of the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as reference so as to obtain the fusion display of the BIM and the GIS information.
As can be seen from the above, in this embodiment, a target information type is obtained, and corresponding target GIS information is obtained from a GIS service provider according to the target information type; creating a target scene according to the target information type, and adding a root object to the target scene; according to the target GIS information, a threejs geometric carrier is visually established on the basis of the root object by utilizing threejs; and (3) performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed by the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information. According to the method, only the needed target GIS information is obtained, then the display carrier of the BIM is created by using threejs according to the target GIS information, complex model conversion is not needed, only the needed target GIS information is loaded, the data volume needing to be loaded is reduced, most of useless information and invalid calculation are avoided, finally fusion display of the BIM and the GIS information is achieved through pose and vision consistency adjustment, namely the target GIS information is obtained according to the needs in a system for displaying the BIM based on threejs and the target GIS information is displayed by using the related carrier, the effect of displaying the BIM and the GIS information simultaneously is achieved, a series of complex operations including registration and multi-layer fineness creation of the BIM into the GIS model are avoided, and the useless data volume of the GIS is reduced.
In some specific embodiments, the target GIS information obtaining module 11 may be specifically configured to, according to a screening condition including the type of the target information, screen and obtain corresponding target GIS information from the GIS facilitator;
the screening condition comprises the target information type, a GIS service provider interface and an interface calling parameter; the target information type comprises any one or more of an image map, place name information, terrain information, administrative region information, road information, water system information and residential area information; the interface call parameters include a longitude range, a latitude range, and a precision range.
In some specific embodiments, the object scene creating module 12 may specifically include:
the target scene creating unit is used for creating a corresponding target scene by using a three-dimensional scene manager of a BIM (building information modeling) model displayed by a web end based on threjs according to the type of the target information and naming the target scene; the three-dimensional scene manager is used for creating, naming, inquiring, clearing and rendering the three-dimensional scene;
and the root object adding unit is used for adding a root object into the target scene.
In some embodiments, the fusion display module 14 may specifically include:
a drawing information acquisition unit, configured to acquire drawing information corresponding to the target GIS information from the attribute information of the BIM model;
the longitude and latitude coordinate determination unit is used for determining a planning red line from the drawing information, selecting target points with target number and non-colinear on the planning red line, and determining longitude and latitude coordinates corresponding to the target points according to the coordinate information of the planning red line;
the first-class target pixel point determining unit is used for determining the first-class target pixel points of the BIM model corresponding to the target points according to the longitude and latitude coordinates;
the second type target pixel point determining unit is used for determining a GIS tile serial number corresponding to the longitude and latitude coordinates by inquiring the GIS service provider according to the longitude and latitude coordinates, and determining a second type target pixel point corresponding to the threejs geometric carrier by the target point according to the GIS tile serial number and the size of the corresponding GIS tile;
and the pose transformation unit is used for estimating an affine matrix by using a least square method according to the first class of target pixel points and the second class of target pixel points, and performing pose transformation on the threejs geometric carrier by using the affine matrix to enable the poses of the BIM model and the threejs geometric carrier to be consistent.
In some embodiments, the fusion display module 14 may specifically include:
the brightness histogram acquisition unit is used for acquiring a camera image under a target view angle in the BIM model scene, obtaining the BIM image by removing a background image and then determining a brightness histogram corresponding to the BIM image;
the brightness adjusting unit is used for adjusting the brightness of the GIS image corresponding to the threejs geometric carrier by using the brightness histogram to obtain an adjusted image;
and the saturation adjusting unit is used for adjusting the saturation of the adjusted image according to the average saturation of the BIM image.
In some embodiments, the device for displaying information of the BIM model and the GIS in a fusion manner may include:
and the rendering unit is used for rendering the BIM model and the threejs geometric carrier by utilizing a threejs renderer.
In some specific embodiments, the threejs geometric carrier creation module 13 may specifically include:
the initialization unit is used for initializing threejs plane geometry;
and the threejs geometric carrier generating unit is used for setting the target GIS information as a map to the threejs planar geometric body by using a texture loader on the basis of the root object, or setting the geometric parameters of the threejs planar geometric body according to the vector parameters contained in the target GIS information so as to obtain the threejs carrier attached to the root object.
Further, the embodiment of the present application also discloses an electronic device, which is shown in fig. 4, and the content in the drawing cannot be considered as any limitation to the application scope.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically 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 configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the fusion display method of the BIM model and the GIS information disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to acquire external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223 including target GIS information, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows Server, Netware, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the method for displaying the BIM model and the GIS information disclosed in any of the foregoing embodiments and executed by the electronic device 20.
Further, an embodiment of the present application further discloses a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and when the computer-executable instructions are loaded and executed by a processor, the steps of the fusion display method for the BIM model and the GIS information disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for fusion display of the BIM and the GIS information provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A fusion display method of BIM and GIS information is characterized by comprising the following steps:
acquiring a target information type, and acquiring corresponding target GIS information from a GIS service provider according to the target information type;
creating a target scene according to the target information type, and adding a root object into the target scene;
according to the target GIS information, creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object;
and performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed on the basis of threjs on the web end as reference so as to obtain fusion display of the BIM and GIS information.
2. The method for fusion display of the BIM and the GIS information according to claim 1, wherein the obtaining of the corresponding target GIS information from the GIS service provider according to the target information type comprises:
screening the GIS service provider according to the screening conditions containing the types of the target information to obtain corresponding target GIS information;
the screening condition comprises the target information type, a GIS service provider interface and an interface calling parameter; the target information type comprises any one or more of an image map, place name information, terrain information, administrative region information, road information, water system information and residential area information; the interface call parameters include a longitude range, a latitude range, and a precision range.
3. The method for fusion display of the BIM and the GIS information according to claim 1, wherein the creating of the target scene according to the target information type and the adding of the root object to the target scene comprises:
according to the target information type, a three-dimensional scene manager of a BIM (building information modeling) model displayed by a web end based on threjs is used for creating a corresponding target scene and naming the target scene; the three-dimensional scene manager is used for creating, naming, inquiring, clearing and rendering the three-dimensional scene;
adding a root object to the target scene.
4. The method for fusion display of BIM and GIS information according to claim 1, wherein the adjusting the pose and vision consistency of the threejs geometric carrier with reference to the BIM displayed on the web side based on threejs comprises:
acquiring 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, selecting target points which are not collinear and are in a target number on the planning red line, and determining longitude and latitude coordinates corresponding to the target points according to coordinate information of the planning red line;
determining the first type target pixel points of the BIM model corresponding to the target points according to the longitude and latitude coordinates;
according to the longitude and latitude coordinates, determining GIS tile sequence numbers corresponding to the longitude and latitude coordinates by inquiring the GIS service provider, and determining second-class target pixel points corresponding to the threejs geometric carriers by the target points according to the GIS tile sequence numbers and the sizes of the corresponding GIS tiles;
and estimating an affine matrix by using a least square method according to the first class of target pixel points and the second class of target pixel points, and performing pose transformation on the threejs geometric carrier by using the affine matrix to make the poses of the BIM model and the threejs geometric carrier consistent.
5. The method for fusion display of BIM and GIS information according to claim 1, wherein the pose and visual consistency adjustment of the threejs geometric carrier with reference to the BIM displayed on the web side based on threejs comprises:
acquiring a camera image under a target view angle in the BIM model scene, obtaining the BIM image by removing a background image, and then determining a brightness histogram corresponding to the BIM image;
utilizing 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.
6. The method for fusion display of BIM and GIS information according to claim 1, wherein after the pose and visual consistency adjustment of the threejs geometric carrier, the method further comprises:
and rendering the BIM model and the threejs geometric carrier by utilizing a threejs renderer.
7. The method for fusion display of the BIM model and the GIS information according to any one of claims 1 to 6, wherein the creating of the threejs geometric carrier based on the root object by using threejs visualization according to the target GIS information comprises:
initializing a threejs plane geometry;
and on the basis of the root object, setting the target GIS information to the threejs plane geometry as a map by using a texture loader, or setting the geometric parameters of the threejs plane geometry according to vector parameters contained in the target GIS information to obtain the threejs carrier attached to the root object.
8. A fusion display device of BIM model and GIS information is characterized by comprising:
the target GIS information acquisition module is used for acquiring a target information type and acquiring corresponding target GIS information from a GIS service provider according to the target information type;
the target scene creating module is used for creating a target scene according to the target information type and adding a root object into the target scene;
the threejs geometric carrier creating module is used for creating a threejs geometric carrier by utilizing threejs visualization on the basis of the root object according to the target GIS information;
and the fusion display module is used for performing pose and visual consistency adjustment on the threejs geometric carrier by taking the BIM displayed on the web end based on threejs as a reference so as to obtain fusion display of the BIM and GIS information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for displaying the fusion of the BIM model and the GIS information according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the method for fusion display of the BIM model and the GIS information according to any one of claims 1 to 7.
CN202210325266.8A 2021-12-08 2022-03-30 Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components Pending CN114663324A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021114929314 2021-12-08
CN202111492931 2021-12-08

Publications (1)

Publication Number Publication Date
CN114663324A true CN114663324A (en) 2022-06-24

Family

ID=82032737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210325266.8A Pending CN114663324A (en) 2021-12-08 2022-03-30 Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components

Country Status (1)

Country Link
CN (1) CN114663324A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237292A (en) * 2022-07-12 2022-10-25 北京数字冰雹信息技术有限公司 Multi-coordinate system fused scene display control method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237292A (en) * 2022-07-12 2022-10-25 北京数字冰雹信息技术有限公司 Multi-coordinate system fused scene display control method and system

Similar Documents

Publication Publication Date Title
CN109934914B (en) Embedded city design scene simulation method and system
US9384596B2 (en) Visualization of obscured objects in 3D space
WO2022227910A1 (en) Virtual scene generation method and apparatus, and computer device and storage medium
WO2006104764A2 (en) System and method for three dimensional change detection and measurement of a scene
US11164392B2 (en) Infrastructure design using 3D reality data
CN111324837A (en) Three-dimensional chart visualization method and device based on GIS (geographic information System) at web front end
CN106611056B (en) Method and device for cutting three-dimensional simulation map
KR20020068151A (en) Digital Photogrammetric System
CN115409957A (en) Map construction method based on illusion engine, electronic device and storage medium
JP2010506337A (en) System and method for visualizing and measuring real-world 3-D spatial data
CN111798554A (en) Rendering parameter determination method, device, equipment and storage medium
US20100066740A1 (en) Unified spectral and Geospatial Information Model and the Method and System Generating It
CN116109765A (en) Three-dimensional rendering method and device for labeling objects, computer equipment and storage medium
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
CN111429548A (en) Digital map generation method and system
CN114140588A (en) Digital sand table creating method and device, electronic equipment and storage medium
CN111639149B (en) Ocean data visualization method and device
CN115409962B (en) Method for constructing coordinate system in illusion engine, electronic device and storage medium
CN116342724A (en) Thermodynamic diagram object generation method, device and computer readable storage medium
CN115187709A (en) Geographic model processing method and device, electronic equipment and readable storage medium
CN115727869A (en) Map display method, map display device, computer equipment, medium and program product
CN117197364B (en) Region modeling method, device and storage medium
US20150143301A1 (en) Evaluating Three-Dimensional Geographical Environments Using A Divided Bounding Area
KR20200120003A (en) 3D visualization system of space based on geographic data and 3D visualization of space using it
CN112927327B (en) Three-dimensional visualization method for biomedical platform data map

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