Format conversion method, device and equipment for building data and storage medium

By reading and converting static data and three-dimensional model data in the BIM model, the problem of data format incompatibility between different BIM software is solved, the interoperability and compatibility of BIM are improved, and the needs of multiple application scenarios are met.

CN119669327APending Publication Date: 2025-03-21PERSAGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411718969.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The data formats between different BIM software are incompatible, making it difficult to share and reuse model information.

Method used

By obtaining the range to be converted and the target conversion format of the BIM model, static data and three-dimensional model data are read in a specific BIM model, and using element mapping relationship tables and three-dimensional data mapping methods, the data is converted into the target format and the target format file is constructed.

Benefits of technology

It improves the interoperability, compatibility and portability of BIM, meets the data needs in different application scenarios, breaks the barriers between products of different BIM modeling manufacturers, and reduces the complexity of BIM applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669327A_ABST
    Figure CN119669327A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a building data format conversion method and device, equipment and a storage medium. The method comprises the steps of obtaining a to-be-converted range and a target conversion format of a BIM model; according to the to-be-converted range, reading to-be-converted data in the specific BIM model; the to-be-converted data comprises static data and three-dimensional model data; obtaining an element mapping relation table corresponding to the target conversion format according to the target conversion format, and mapping the static data into the target conversion format according to the element mapping relation table; determining a three-dimensional data mapping mode according to the target conversion format and the model attribute of the three-dimensional model data; mapping the three-dimensional model data into the target conversion format according to the three-dimensional data mapping mode; according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format, the target format file is constructed, interoperability, compatibility and transportability of the BIM can be improved, and data requirements in different application scenes are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building information processing, and in particular to a method, device, equipment and storage medium for format conversion of building data. Background Art

[0002] With the digital transformation of the construction industry, Building Information Modeling (BIM) technology has become a key tool to improve project management efficiency, reduce construction errors, and enhance collaborative work.

[0003] However, the data formats between different BIM software are incompatible, which makes it difficult to share and reuse model information. Therefore, format conversion of BIM model data has important application value. Summary of the invention

[0004] The present invention provides a format conversion method, device, equipment and storage medium for building data to improve the interoperability, compatibility and portability of BIM and meet the data requirements in different application scenarios.

[0005] According to one aspect of the present invention, a method for format conversion of building data is provided, the method comprising:

[0006] Obtain the scope of the BIM model to be converted and the target conversion format;

[0007] According to the scope to be converted, reading the data to be converted in the specific BIM model; the data to be converted includes static data and three-dimensional model data;

[0008] Acquire an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table;

[0009] Determining a three-dimensional data mapping method according to the target conversion format and the model attributes of the three-dimensional model data;

[0010] Mapping the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method;

[0011] A target format file is constructed according to the static data mapping result, the three-dimensional model data mapping result and metadata corresponding to the target conversion format.

[0012] According to another aspect of the present invention, a format conversion device for building data is provided, the device comprising:

[0013] A conversion parameter acquisition module is used to obtain the scope of the BIM model to be converted and the target conversion format;

[0014] An original data acquisition module is used to read the data to be converted in a specific BIM model according to the range to be converted; the data to be converted includes static data and three-dimensional model data;

[0015] A static data mapping module, configured to obtain an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table;

[0016] A three-dimensional data mapping mode determination module, used to determine the three-dimensional data mapping mode according to the target conversion format and the model attributes of the three-dimensional model data;

[0017] A three-dimensional data mapping module, used for mapping the three-dimensional model data into the target conversion format according to the three-dimensional data mapping method;

[0018] The target format file construction module is used to construct the target format file according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format.

[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0020] at least one processor; and

[0021] a memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the format conversion method of building data described in any embodiment of the present invention.

[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the format conversion method of building data described in any embodiment of the present invention when executed by a processor.

[0024] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method for format conversion of building data according to any embodiment of the present invention is implemented.

[0025] The technical solution of the embodiment of the present invention obtains the scope to be converted and the target conversion format of the BIM model; reads the data to be converted in a specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data; obtains an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and maps the static data to the target conversion format according to the element mapping relationship table; determines the three-dimensional data mapping method according to the target conversion format and the model attributes of the three-dimensional model data; maps the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method; constructs a target format file according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format, thereby solving the problem of incompatible data formats between different BIM software. By performing format conversion on a specific BIM model, the interoperability, compatibility and portability of BIM can be improved, data requirements in different application scenarios can be met, the barriers between products of different BIM modeling manufacturers can be broken, and the complexity of BIM application can be reduced.

[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 is a flow chart of a method for format conversion of building data provided according to Embodiment 1 of the present invention;

[0029] Figure 2 is a flow chart of a method for format conversion of building data provided according to a second embodiment of the present invention;

[0030] Figure 3 This is a schematic diagram of a model rendering result of an IFC format file provided according to the second embodiment of the present invention;

[0031] Figure 4 is a flow chart of a method for format conversion of building data provided according to Embodiment 3 of the present invention;

[0032] Figure 5 This is a schematic diagram of a model rendering result of a geographic data format file provided in Embodiment 3 of the present invention;

[0033] Figure 6is a schematic diagram of the structure of a format conversion device for building data provided according to a fourth embodiment of the present invention;

[0034] Figure 7 It is a structural schematic diagram of an electronic device for implementing the format conversion method of building data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the 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 creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] Embodiment 1

[0038] Figure 1 This is a flowchart of a method for format conversion of building data provided according to the first embodiment of the present invention. This embodiment is applicable to the case of converting data of a specific BIM model. For example, the BIM model data can be converted into an international standard format for building information exchange (Industry Foundation Classes, IFC) or a geographic data format (Geopackage), etc. The method can be executed by a format conversion device for building data, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device such as a computer. Figure 1 As shown, the method includes:

[0039] Step 110: Obtain the to-be-converted scope and target conversion format of the BIM model.

[0040] Among them, the range of BIM models to be converted can be the value range of HiSilicon lightweight models. For example, lightweight BIM three-dimensional models and mapped physical world static data. The target conversion format includes but is not limited to IFC format and Geopackage format. IFC format is a standard format for building information. Geopackage format is widely used in geographic information systems (GIS) to facilitate the storage, query and analysis of spatial data. Automatically converting lightweight BIM models that define specific building information standards into files such as IFC format or Geopackage format that are widely accepted in the industry maintains the data integrity and accuracy of the original BIM model, significantly reduces the file size, and improves the efficiency of data sharing and interaction. It is especially suitable for multi-professional collaborative design, construction management, and data integration and application in the operation and maintenance stages.

[0041] Step 120: Read the data to be converted in the specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data.

[0042] Before reading the data to be converted, the conversion accuracy can also be defined. The data to be converted is read according to the conversion accuracy. Static data can be some basic information of elements. The basic information of elements can be understood as the necessary information required for the target conversion format. For example, the basic information of elements can include element type, element attribute and element color. The three-dimensional model data can be the model data of a three-dimensional object. For example, the three-dimensional model data can include but is not limited to the basic information of buildings, floors, spaces, electromechanical equipment, and coordinate information.

[0043] Step 130: Obtain an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table.

[0044] In an embodiment of the present invention, an element mapping relationship table corresponding to the target conversion format may be pre-established. For example, the element mapping relationship table may include element type mapping, element attribute mapping, and element color mapping. For example, in terms of element type mapping, the civil air defense door element of the BIM standard is mapped to the door element (IfcDoor) in the building of IFC or the 200210 element of Geopackage. For another example, in terms of element attribute mapping, the overall height (doorHeight) of the civil air defense door element attribute of the BIM standard is mapped to the height attribute of IFC or the height attribute of Geopackage. For another example, in terms of element color mapping, the control cabinet element of the BIM standard is mapped to RGB (160, 32, 240).

[0045] According to the pre-established element mapping relationship table corresponding to the target conversion format, the static data in the BIM standard can be mapped to the target conversion format to generate a static data mapping result.

[0046] Step 140: Determine a 3D data mapping method according to the target conversion format and the model attributes of the 3D model data.

[0047] In an embodiment of the present invention, the three-dimensional data mapping method includes but is not limited to: a solid scanning stretching method, a triangular face method, and an orthogonal parallel projection method based on a target projection coordinate system. Under different format conversions, the corresponding three-dimensional data mapping method can be selected to realize the specific mapping of three-dimensional data. Among them, the solid scanning stretching method refers to the formation of a three-dimensional entity by stretching, rotation, etc. The triangular face method can be a geometric body represented by a geometric entity boundary (Boundary Representation, Brep) decomposed into triangular facets, and the triangular facets are connected to each other through shared edges and vertices, thereby approximating the surface of the original geometric body. Orthogonal parallel projection refers to a projection in which the projection lines are parallel to each other and perpendicular to the projection plane. In three-dimensional space, when an object is projected onto a two-dimensional plane according to orthogonal parallel projection, all projection lines are parallel to a fixed direction and are perpendicular to the projection plane. The target projection coordinate system can be a geographic coordinate system, such as a geographic coordinate system (EPSG:3857 coordinate system) used for Web map display.

[0048] Step 150: Map the 3D model data to a target conversion format according to a 3D data mapping method.

[0049] In an embodiment of the present invention, three-dimensional model data mapping can be performed according to a three-dimensional data mapping method corresponding to the target conversion format. Specifically, when converting BIM to IFC format, different geometric representations can be used for three-dimensional model data mapping for space and complex electromechanical equipment. For example, the three-dimensional model data of the space model is mapped to the IFC format using a solid scanning and stretching method. For another example, the three-dimensional model data of the electromechanical equipment is mapped to the IFC format using a triangular face method. For another example, the three-dimensional model data of the space model and the electromechanical equipment is mapped to the geographic data format using an orthogonal parallel projection.

[0050] Step 160: construct a target format file according to the static data mapping result, the three-dimensional model data mapping result and metadata corresponding to the target conversion format.

[0051] The metadata corresponding to the IFC format includes the file encoding standard (ISO-10303-21), file header identifier, file description information, file name, IFC version (such as IFC4), data header identifier and file footer information. The metadata corresponding to the Geopackage format includes table definition data, geo type field definition, and the coordinate system used. Based on the static data mapping results, the 3D model data mapping results and the metadata corresponding to the target conversion format, the basic file corresponding to the target conversion format can be filled with data to generate the target format file.

[0052] Based on the above implementation, optionally, after constructing the target format file, it also includes: performing data non-empty verification, entity integrity verification and reference integrity verification on the target format file; when the verification passes, performing model rendering according to the target format file to obtain a model rendering result corresponding to the target conversion format.

[0053] Among them, data non-empty verification includes the verification of mapping relationships, element information of projects, buildings, building floor types, and geometric model information of elements necessary for building information models. Entity integrity verification can be to use a globally unique non-repeating identifier (ID) set to verify whether the elements written into the file all have unique identifiers. Reference integrity verification can be to verify whether the referenced identifiers exist in the globally unique non-repeating ID set (mainly to prevent the existence of unwritten / untimely written elements from being referenced). After the verification is passed, the target format file can be output, and the model can be rendered according to the target format file in a variety of application scenarios to obtain a model rendering result corresponding to the target conversion format.

[0054] The technical solution of this embodiment obtains the scope to be converted and the target conversion format of the BIM model; reads the data to be converted in a specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data; obtains an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and maps the static data to the target conversion format according to the element mapping relationship table; determines the three-dimensional data mapping method according to the target conversion format and the model attributes of the three-dimensional model data; maps the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method; constructs a target format file according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format, thereby solving the problem of incompatibility of data formats between different BIM software. By performing format conversion on a specific BIM model, the converted IFC file and Geopackage file can be opened and used in a variety of BIM software and GIS software, thereby improving the interoperability, compatibility and portability of BIM, meeting the data requirements in different application scenarios, breaking the barriers between products of different BIM modeling manufacturers, and reducing the complexity of BIM application.

[0055] Embodiment 2

[0056] Figure 2 1 is a flow chart of a method for format conversion of building data provided according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, the method includes:

[0057] Step 210: Obtain the to-be-converted scope and target conversion format of the BIM model, where the target conversion format is the IFC format.

[0058] Step 220: Read the data to be converted in the specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data.

[0059] Step 230: When the target conversion format is the architectural standard IFC format, the core layer elements are mapped separately according to the element mapping relationship table corresponding to the IFC format; according to the element mapping relationship table corresponding to the IFC format, the professional field layer elements are batch mapped based on the JAVA reflection mechanism; based on the core layer element mapping results and the professional field layer element mapping results, the static data mapping results in the IFC format are generated.

[0060] According to the element mapping relationship table corresponding to the IFC format, the core layer elements can be mapped separately as follows: 1) converting the project information delivered according to the BIM standard into a specific IFC format project object (IfcProject) and attributes, as well as the geometric context of the objects in the project, mainly including the coordinate system dimension, geometric model accuracy, north information, and engineering coordinate system; 2) creating a virtual site object (IfcSite); 3) converting the building information delivered according to the BIM standard into an IFC format building object (IfcBuilding), and creating an aggregation relationship between the site and the building; 4) converting the floor information delivered according to the BIM standard into an IFC format floor object (IfcFloor), and creating an aggregation relationship between the building and the floor. The aggregation relationship between the site and the building, and the aggregation relationship between the building and the floor, can refer to determining the building to which the floor belongs and the site to which the building belongs when performing format conversion based on the BIM format three-dimensional model data.

[0061] According to the element mapping relationship table corresponding to the IFC format, the batch mapping of professional domain layer elements based on the JAVA reflection mechanism can be specifically as follows: 1) Obtain the delivered model data and basic attribute information in batches by type according to the element type mapping list; 2) Obtain the IFC object creation factory registered in the Spring container (used to manage and organize objects in the application) when the service is started through the mapped IFC object type, and use the java reflection mechanism to create IFC objects and convert object properties through the factory and IFC object type; 3) Create an IfcClassificationReference object (an object in IFC used to classify elements), and create an aggregation relationship between objects of the same IFC object type and the object; 4) Create an IfcRelContainedInSpatialStructure object (an object in IFC used to define the containment relationship between components and spatial structures), and create an aggregation relationship between objects of the same IFC object type and the IfcFloor object; 5) Convert the IfcSpace spatial object according to the above method.

[0062] By mapping the core layer elements individually and mapping the professional domain layer elements in batches, the mapping efficiency and magnitude can be considered to improve the mapping efficiency. By mapping elements through the Java reflection mechanism, the code reusability, maintainability and scalability can be improved.

[0063] Step 240: When the target conversion format is the architectural standard IFC format and the model attribute of the three-dimensional model data is a spatial model, determine that the three-dimensional data mapping method is a solid scanning and stretching method; or, when the target conversion format is the IFC format and the model attribute of the three-dimensional model data is electromechanical equipment, determine that the three-dimensional data mapping method is a triangular surface method.

[0064] Step 250, when the three-dimensional data mapping method is the entity scanning and stretching method, the spatial model in the three-dimensional model data is projected to obtain two-dimensional data, and the floor height to which the spatial model belongs is recorded; the geometric center point of the spatial model and the relative coordinate points of each point in the two-dimensional data and the geometric center point are determined according to the two-dimensional data; according to each relative coordinate point, the floor height, and the format template corresponding to the IFC format, the three-dimensional model data mapping result in the IFC format is generated.

[0065] For example, the geospatial data MULTIPOLYGON(((3705066425,39900 66425,39900 70000,37050 70000,37050 66425)))(define an expandable polygon) of the BIM model can be projected to obtain two-dimensional data. For example, the height of the floor to which the spatial model belongs is 6000. Based on the two-dimensional data, the geometric center point of the spatial model can be determined, and the relative coordinates of each point in the two-dimensional data and the geometric center point can be calculated.

[0066] According to the relative coordinate points, floor heights, and the format template corresponding to the IFC format, the 3D model data mapping result in the IFC format is generated. Specifically, it can be: create an IfcShapeRepresentation object (an object in the IFC format, used to represent a specific geometry and its context), set the identifier to Body (entity), the type to SweptSolid (swept body), and create an extruded body object (IfcExtrudedAreaSolid, an object in IFC, representing a geometric body formed by stretching a two-dimensional cross section) according to the calculated relative coordinate points and floor heights.

[0067] For example, the 3D model data mapping result in the converted IFC format is as follows:

[0068] #5326741=IFCCARTESIANPOINTLIST2D(((-1500.000000000004,460.565000000002),(-1500.00000 0000004,-460.564999999998),(1499.999999999996,-460.564999999998),(1499.999999999996,4 60.565000000002),(999.999999999996,460.565000000002),(-1400.00000000004,460.565000000002),(-1500.00000000004,460.565000000002),(-1500.00000000004,460.565000000002)));

[0069] #5326742=IFCINDEXEDPOLYCURVE(#5326741,$,.T.);

[0070] #5326743=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#5326742);

[0071] #5326744=IFCCARTESIANPOINT((0.0,0.0,0.0));

[0072] #5326745=IFCAXIS2PLACEMENT3D(#5326744,$,$);

[0073] #5326746=IFCDIRECTION((0.0,0.0,1.0));

[0074] #5326747=IFCEXTRUDEDAREASOLID(#5326743,#5326745,#5326746,5600.0);

[0075] #5326748=IFCSHAPEREPRESENTATION(#9,'Body','SweptSolid',(#5326747)).

[0076] Among them, "#5326748" represents a 3D geometry in IFC format, which references "#5326747" data. "#5326747" represents an extruded area entity formed using "#5326743" (defining a closed contour), "#5326745" (defining axis placement), and "#5326746" (defining direction). "#5326744" defines a 3D Cartesian point for positioning 3D geometry. "#5326742" defines an indexed multi-curve. "#5326741" defines a 2D Cartesian point list containing a list of points on a 2D plane for defining the boundary of a polygon.

[0077] Step 260, when the three-dimensional data mapping method is a triangular face method, determine the center point coordinates, index array, and coordinate point array in the three-dimensional data of the electromechanical equipment of the three-dimensional model data; select three index values ​​in the index array as a group of data, and extract the corresponding three point coordinates in the coordinate point array according to each group of data; generate the three-dimensional model data mapping result in IFC format according to the three point coordinates corresponding to each group of data and the format template corresponding to the IFC format.

[0078] When generating an IFC format file, the coordinate point array can be created in a three-dimensional object (IfcCartesianPoint, an object in IFC, used to define points in an orthogonal right Cartesian coordinate system) and stored in an ordered list in sequence. According to the index array, the point coordinates of the corresponding position are taken from the ordered list in groups of three index values ​​to create an IfcFace object (an object in IFC, used to represent a two-dimensional face entity). Create an IfcShapeRepresentation object, set the identifier to Body, the type to Brep (boundary method), and put the generated IfcFace object into it, so as to generate the three-dimensional model data mapping result in the IFC format.

[0079] Exemplarily, according to the three point coordinates corresponding to each set of data and the format template corresponding to the IFC format, the three-dimensional model data mapping result in the IFC format is generated as follows:

[0080] #613=IFCCARTESIANPOINT((150.0,-1650.0091554131377,0.0));

[0081] #614=IFCCARTESIANPOINT((150.0,-150.05493247882805,0.0));

[0082] #615=IFCCARTESIANPOINT((150.0,-1650.0091554131377,5600.0));

[0083] #629=IFCPOLYLOOP((#613,#614,#615));

[0084] #630=IFCFACEOUTERBOUND(#629,.T.);

[0085] #631=IFCFACE((#630)).

[0086] Among them, "#613", "#614" and "#615" represent the coordinates of three points extracted according to three index values. "#629" represents a polygonal ring formed by connecting the three selected point coordinates ("#613", "#614" and "#615") in sequence. "#630" represents the outer boundary of the surface formed by "#629". "#631" represents the surface (two-dimensional entity) formed by the outer boundary defined by "#630".

[0087] Step 270: construct an IFC format file according to the static data mapping result, the 3D model data mapping result and the metadata corresponding to the target conversion format.

[0088] The IFC format file can be generated by assembling the obtained data according to the standard file of the IFC format. The IFC format file can include IFC header information, converted core layer element information, converted professional field layer element information, 3D model data mapping results after spatial model conversion, and 3D model data mapping results after electromechanical equipment conversion.

[0089] Step 280: perform data non-empty verification, entity integrity verification, and reference integrity verification on the IFC format file; when the verification passes, perform model rendering according to the IFC format file to obtain a model rendering result corresponding to the target conversion format.

[0090] Figure 3 1 is a schematic diagram of a model rendering result of an IFC format file provided according to the second embodiment of the present invention. Figure 3 As shown, the left side is the rendering result of a specific BIM model, and the right side is the model rendering result in IFC format obtained by rendering the IFC format file generated based on the BIM model data to be converted. According to the comparison between the rendering result of the BIM model and the rendering result of the IFC format, it can be seen that the method according to the embodiment of the present invention can well convert the BIM model data into the IFC format, maintain the data integrity and accuracy of the original BIM model, and improve the efficiency of data sharing and interaction, which is particularly suitable for data integration and application in multi-professional collaborative design, construction management and operation and maintenance stages.

[0091] It should be noted that the execution steps of the embodiments of the present invention are not limited to the above exemplary execution steps.

[0092] Embodiment 3

[0093] Figure 4 1 is a flowchart of a method for format conversion of building data provided according to Embodiment 3 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 4 As shown, the method includes:

[0094] Step 410: Obtain the scope to be converted and the target conversion format of the BIM model, where the target conversion format is a geographic data format.

[0095] Step 420: Read the data to be converted in the specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data.

[0096] Step 430: Obtain an element mapping relationship table corresponding to the geographic data format, and map the static data into the geographic data format according to the element mapping relationship table.

[0097] When converting BIM to GeoPackage, the static data may specifically be metadata tables necessary for the GeoPackage mode, for example, the gpkg_spatial_ref_sys table (a table in the GeoPackage format used to store all spatial reference coordinate systems), the gpkg_contents table (a table in the GeoPackage format used to store metadata of all tables, including the data type and description of each table), and the gpkg_geometry_columns table (a table in the GeoPackage format used to store geometry information in each table containing geometry data).

[0098] When performing static data mapping based on the element mapping relationship table, you can create a business data table and save the table information in the gpkg_contents table. Business data tables include: Building table (building information table), Floor table (building internal floor information table), Frame table (table storing frame or structure information), Area table (table storing geographic spatial area information, such as storage area name, boundary, area and purpose, etc.). You can also write the geo field definition information into the gpkg_geometry_columns table based on the element mapping relationship table. When performing static data mapping, you can also write the target projection coordinate system standard data used in 3D data conversion into the gpkg_spatial_ref_sys table.

[0099] Step 440: When the target conversion format is a geographic data format, determine that the three-dimensional data mapping method is an orthogonal parallel projection based on the target projection coordinate system.

[0100] Among them, the target projection coordinate system can be the EPSG:3857 coordinate system.

[0101] Step 450: When the three-dimensional data mapping method is orthogonal parallel projection based on the target projection coordinate system, orthogonal parallel projection is used in the target projection coordinate system to project the three-dimensional model data into target two-dimensional coordinates; based on the target two-dimensional coordinates and the format template corresponding to the geographic data format, a three-dimensional model data mapping result in the geographic data format is generated.

[0102] Exemplarily, the basic information of buildings, floors, spaces, and electromechanical equipment delivered according to the BIM standard, as well as the projection coordinate information of spaces and electromechanical equipment are obtained; the contour coordinate information of the floors is aggregated according to the relationship between the spaces and the floors; the data is written into the above-mentioned business data tables according to the mapping relationship configuration, and a three-dimensional model data mapping result is generated in the geographic data format.

[0103] Step 460: construct a geographic data format file according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format.

[0104] The geographic data format file may be a file formed according to various metadata tables, such as a geographic data format file formed according to a gpkg_spatial_ref_sys table, a gpkg_contents table, a gpkg_geometry_columns table and the data in the tables.

[0105] Step 470: perform data non-empty verification, entity integrity verification, and reference integrity verification on the target format file; when the verification passes, perform model rendering according to the target format file to obtain a model rendering result corresponding to the target conversion format.

[0106] Figure 5 1 is a schematic diagram of a model rendering result of a geographic data format file provided according to the third embodiment of the present invention. Figure 5 As shown, the left side is the rendering result of a specific BIM model, and the right side is the model rendering result in geographic data format obtained by rendering the geographic data format file generated based on the data to be converted of the BIM model. By comparing the rendering result of the BIM model with the rendering result in geographic data format, it can be seen that the method according to the embodiment of the present invention can well convert the BIM model data into geographic data format, maintain the data integrity and accuracy of the original BIM model, improve the sharing and reusability of model information, facilitate information sharing and collaborative work between different participants, improve the overall efficiency of project management, and avoid repeated modeling and data entry between different software through unified data format conversion, reducing the risk of data redundancy and errors.

[0107] Embodiment 4

[0108] Figure 6 1 is a schematic diagram of a structure of a format conversion device for building data provided according to a fourth embodiment of the present invention. Figure 6 As shown, the device includes: a conversion parameter acquisition module 610, an original data acquisition module 620, a static data mapping module 630, a three-dimensional data mapping mode determination module 640, a three-dimensional data mapping module 650 and a target format file construction module 660. Among them:

[0109] The conversion parameter acquisition module 610 is used to obtain the to-be-converted scope and target conversion format of the BIM model;

[0110] The original data acquisition module 620 is used to read the data to be converted in the specific BIM model according to the scope to be converted; the data to be converted includes static data and three-dimensional model data;

[0111] The static data mapping module 630 is used to obtain an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table;

[0112] A three-dimensional data mapping mode determination module 640 is used to determine the three-dimensional data mapping mode according to the target conversion format and the model attributes of the three-dimensional model data;

[0113] A three-dimensional data mapping module 650, used to map the three-dimensional model data into a target conversion format according to the three-dimensional data mapping method;

[0114] The target format file construction module 660 is used to construct a target format file according to the static data mapping result, the 3D model data mapping result and the metadata corresponding to the target conversion format.

[0115] Optionally, the three-dimensional data mapping mode determination module 640 includes:

[0116] The first determination unit of the three-dimensional data mapping mode is used to determine that the three-dimensional data mapping mode is a solid scanning and stretching mode when the target conversion format is the architectural standard IFC format and the model attribute of the three-dimensional model data is a spatial model; or

[0117] The second three-dimensional data mapping mode determining unit is used to determine that the three-dimensional data mapping mode is a triangular face mode when the target conversion format is an IFC format and the model attribute of the three-dimensional model data is an electromechanical device; or

[0118] The third three-dimensional data mapping mode determining unit is used to determine the three-dimensional data mapping mode as orthogonal parallel projection based on the target projection coordinate system when the target conversion format is the geographic data format.

[0119] Optionally, the three-dimensional data mapping module 650 includes:

[0120] The spatial model projection unit is used to project the spatial model in the three-dimensional model data to obtain two-dimensional data when the three-dimensional data mapping method is the entity scanning and stretching method, and record the height of the floor to which the spatial model belongs;

[0121] A relative coordinate point determination unit, used to determine the geometric center point of the space model and the relative coordinate points of each point in the two-dimensional data and the geometric center point according to the two-dimensional data;

[0122] The first generating unit of the 3D model data mapping result is used to generate the 3D model data mapping result in the IFC format according to the relative coordinate points, the floor heights, and the format template corresponding to the IFC format.

[0123] Optionally, the three-dimensional data mapping module 650 includes:

[0124] The electromechanical equipment data determination unit is used to determine the center point coordinates, the index array, and the coordinate point array in the electromechanical equipment three-dimensional data of the three-dimensional model data when the three-dimensional data mapping mode is a triangular face mode;

[0125] A coordinate extraction unit, used for selecting three index values ​​in the index array as a group of data, and extracting corresponding three point coordinates in the coordinate point array according to each group of data;

[0126] The second generating unit for the 3D model data mapping result is used to generate the 3D model data mapping result in the IFC format according to the three point coordinates corresponding to each group of data and the format template corresponding to the IFC format.

[0127] Optionally, the three-dimensional data mapping module 650 includes:

[0128] An orthogonal parallel projection unit, used to project the three-dimensional model data into target two-dimensional coordinates by using orthogonal parallel projection in the target projection coordinate system when the three-dimensional data mapping method is to perform orthogonal parallel projection based on the target projection coordinate system;

[0129] The third generating unit for the three-dimensional model data mapping result is used to generate the three-dimensional model data mapping result in the geographic data format according to the target two-dimensional coordinates and the format template corresponding to the geographic data format.

[0130] Optionally, the static data mapping module 630 includes:

[0131] The core layer element mapping unit is used to map the core layer elements separately according to the element mapping relationship table corresponding to the IFC format when the target conversion format is the architectural standard IFC format;

[0132] A professional domain layer element mapping unit is used to perform batch mapping of professional domain layer elements based on a JAVA reflection mechanism according to an element mapping relationship table corresponding to the IFC format;

[0133] The static data mapping result generating unit is used to generate the static data mapping result in IFC format according to the core layer element mapping result and the professional field layer element mapping result.

[0134] Optionally, the device further includes:

[0135] A verification module is used to perform data non-null verification, entity integrity verification and reference integrity verification on the target format file after the target format file is constructed;

[0136] The model rendering module is used to render the model according to the target format file when the verification is passed, and obtain the model rendering result corresponding to the target conversion format.

[0137] The format conversion device for building data provided in the embodiment of the present invention can execute the format conversion method for building data provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0138] Embodiment 5

[0139] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0140] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0141] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0142] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a format conversion method for building data.

[0143] In some embodiments, the format conversion method of architectural data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the format conversion method of architectural data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the format conversion method of architectural data in any other appropriate manner (for example, by means of firmware).

[0144] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0145] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0146] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0148] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0149] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0150] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0151] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for converting the format of building data, characterized in that: include: Obtain the scope of the BIM model to be converted and the target conversion format; Reading the data to be converted in a specific BIM model according to the scope to be converted; The data to be converted includes static data and three-dimensional model data; Acquire an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table; Determining a three-dimensional data mapping method according to the target conversion format and the model attributes of the three-dimensional model data; Mapping the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method; A target format file is constructed according to the static data mapping result, the three-dimensional model data mapping result and metadata corresponding to the target conversion format.

2. The method according to claim 1, characterized in that Determining a three-dimensional data mapping method according to the target conversion format and the model attributes of the three-dimensional model data includes: When the target conversion format is the architectural standard IFC format and the model attribute of the three-dimensional model data is a spatial model, determining that the three-dimensional data mapping method is a solid scanning stretching method; or, When the target conversion format is the IFC format and the model attribute of the three-dimensional model data is electromechanical equipment, determining that the three-dimensional data mapping method is a triangular face method; or, When the target conversion format is a geographic data format, the three-dimensional data mapping method is determined to be an orthogonal parallel projection based on a target projection coordinate system.

3. The method according to claim 2, characterized in that Mapping the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method includes: When the three-dimensional data mapping method is a solid scanning and stretching method, the space model in the three-dimensional model data is projected to obtain two-dimensional data, and the height of the floor to which the space model belongs is recorded; Determine the geometric center point of the spatial model and the relative coordinates of each point in the two-dimensional data and the geometric center point according to the two-dimensional data; A three-dimensional model data mapping result in the IFC format is generated according to each relative coordinate point, the floor height, and a format template corresponding to the IFC format.

4. The method according to claim 2, characterized in that Mapping the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method includes: When the three-dimensional data mapping method is a triangular face method, determining the center point coordinates, the index array, and the coordinate point array in the three-dimensional data of the electromechanical equipment of the three-dimensional model data; Selecting three index values ​​in the index array as a group of data, and extracting corresponding three point coordinates in the coordinate point array according to each group of data; According to the three point coordinates corresponding to each set of data and the format template corresponding to the IFC format, a 3D model data mapping result in the IFC format is generated.

5. The method according to claim 2, characterized in that: Mapping the three-dimensional model data to the target conversion format according to the three-dimensional data mapping method includes: When the three-dimensional data mapping method is to perform orthogonal parallel projection based on a target projection coordinate system, orthogonal parallel projection is used in the target projection coordinate system to project the three-dimensional model data into target two-dimensional coordinates; A three-dimensional model data mapping result in the geographic data format is generated according to the target two-dimensional coordinates and a format template corresponding to the geographic data format.

6. The method according to claim 1, characterized in that Acquiring an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and mapping the static data to the target conversion format according to the element mapping relationship table, including: When the target conversion format is the architectural standard IFC format, the core layer elements are mapped separately according to the element mapping relationship table corresponding to the IFC format; According to the element mapping relationship table corresponding to the IFC format, batch mapping of professional domain layer elements is performed based on the JAVA reflection mechanism; Based on the core layer element mapping results and the professional field layer element mapping results, static data mapping results in IFC format are generated.

7. The method according to claim 1, characterized in that After building the target format files, also include: Performing data non-empty verification, entity integrity verification, and reference integrity verification on the target format file; When the verification is passed, the model is rendered according to the target format file to obtain a model rendering result corresponding to the target conversion format.

8. A format conversion device for building data, characterized in that: include: A conversion parameter acquisition module is used to obtain the scope of the BIM model to be converted and the target conversion format; An original data acquisition module is used to read the data to be converted in a specific BIM model according to the range to be converted; the data to be converted includes static data and three-dimensional model data; A static data mapping module, configured to obtain an element mapping relationship table corresponding to the target conversion format according to the target conversion format, and map the static data to the target conversion format according to the element mapping relationship table; A three-dimensional data mapping mode determination module, used to determine the three-dimensional data mapping mode according to the target conversion format and the model attributes of the three-dimensional model data; A three-dimensional data mapping module, used for mapping the three-dimensional model data into the target conversion format according to the three-dimensional data mapping method; The target format file construction module is used to construct the target format file according to the static data mapping result, the three-dimensional model data mapping result and the metadata corresponding to the target conversion format.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for format conversion of architectural data according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for format conversion of building data according to any one of claims 1 to 7 when executed.