Method for converting electrical equipment IFC files into CityGML files
By analyzing the IFC format files of electrical equipment and building a mapping framework for graphs, the two-way mapping between IFC and CityGML format is realized, which solves the information loss problem of electrical equipment format conversion in the prior art, and realizes efficient integration of BIM and GIS.
Patent Information
- Application Number
- CN202210261654.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-09
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-05-09
AI Technical Summary
The existing mapping method between IFC and CityGML format cannot be applied to electrical equipment, and the existence of unidirectional mapping results in information loss, which is not conducive to the integration of BIM and GIS.
By analyzing the IFC format file of the electrical equipment, the primitive objects of the electrical equipment components are obtained, and a feature mapping table of IFC features and CityGML features is constructed based on the mapping framework of the graph, so as to achieve the separate mapping of geometric information and semantic information of the electrical equipment components, and obtain the CityGML format file of the electrical equipment.
It realizes a complete and nearly lossless mapping of electrical equipment from BIM model to CityGML architectural model, fills the gap in the analysis application of electrical equipment on the GIS platform, and realizes the in-depth application of GIS's spatial analysis function on the BIM model.
Smart Images

Figure CN114638199B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of geographic spatial information systems, and in particular to a method for converting an IFC file of an electrical device into a CityGML file. Background Art
[0002] IFC and CityGML are the more common file data formats in BIM models and GIS, respectively. How to convert IFC to CityGML format has become a hot topic of research today. Since BIM models do not use geographic positioning, but a local coordinate system that hinders environmental analysis, converting BIM models into corresponding GIS will help answer many environmental questions. At present, the mapping methods between IFC and GIS standards are generally divided into two categories. One mapping is completed in the BIM field by extending the BIM data standard with the content of GML, which is the basis of CityGML. The other is to extend the GIS standard so that it can include information from the BIM model. However, these methods have their own major limitations. First, they are only applicable to the conversion of building BIM models to the formats supported by GIS, lacking universality and flexibility, and are even more unsuitable for the format conversion of electrical equipment in the power field; second, these methods can only support one-way mapping, that is, they can only allow conversion from one format to another, and this one-way mapping method often causes information loss, resulting in inaccurate conversion results, which is not conducive to the integration of BIM and GIS. Summary of the invention
[0003] The purpose of this application is to provide a method for converting an IFC file of electrical equipment into a CityGML file, so as to solve the problem that the existing mapping method based on these two formats of data cannot be applied to electrical equipment, and the one-way mapping easily causes information loss, which is not conducive to the integration of BIM and GIS.
[0004] To achieve the above object, the present application provides a method for converting an IFC file of an electrical device into a CityGML file, comprising:
[0005] Parse the IFC format file of the electrical equipment to obtain the graphic element objects of the electrical equipment components;
[0006] Based on the graph mapping framework, a feature mapping table between IFC features and CityGML features is constructed;
[0007] According to the feature mapping table, the geometric information and semantic information of the electrical equipment components are mapped respectively to obtain the CityGML format file of the electrical equipment.
[0008] Further, as preferably, before parsing the IFC format file of the electrical device, it also includes:
[0009] Determine the business type of the substation and the type of electrical equipment for the substation under different business types.
[0010] Further, as a preferred embodiment, the parsing of the IFC format file of the electrical equipment to obtain the graphic primitive object of the electrical equipment component includes:
[0011] Use IfcOpenShell software to read the IFC format files of electrical equipment and count the IFC classes contained in the IFC format files;
[0012] Determine the subordinate relationship between different IFC classes and obtain the graphic elements of electrical equipment components.
[0013] Further, preferably, the graph-based mapping framework constructs a feature mapping table of IFC features and CityGML features, including:
[0014] Determine the characteristics of all IFC classes based on the type of electrical equipment and the dependencies between different IFC classes;
[0015] Match the features of the IFC class with the CityGML features in the CityGML file, and build a feature mapping table between the IFC features and the CityGML features.
[0016] Further, preferably, the mapping of the geometric information and the semantic information of the electrical equipment components respectively includes:
[0017] Extract the geometric information of electrical equipment components from the IFC format file of electrical equipment;
[0018] Convert the local coordinates in the geometric information into global spatial position coordinates.
[0019] Further, preferably, the mapping of the geometric information and the semantic information of the electrical equipment components respectively further includes:
[0020] Extracting semantic information of electrical equipment components from an IFC format file of the electrical equipment; the semantic information includes attribute information and associated information of the construction;
[0021] Map attribute information directly to corresponding CityGML format data;
[0022] Map the tree structure of the association information to the corresponding CityGML format data.
[0023] The present application also provides a device for converting an IFC file of an electrical device into a CityGML file, comprising:
[0024] A parsing unit, used for parsing the IFC format file of the electrical equipment to obtain the graphic element objects of the electrical equipment components;
[0025] A mapping table construction unit is used to construct a feature mapping table between IFC features and CityGML features based on a graph mapping framework;
[0026] The mapping unit is used to map the geometric information and semantic information of the electrical equipment components respectively according to the feature mapping table to obtain the CityGML format file of the electrical equipment.
[0027] Further, as a preferred embodiment, the device for converting the IFC file of electrical equipment into the CityGML file further includes:
[0028] The equipment type determination unit is used to determine the business type of the substation and determine the electrical equipment types of the substation under different business types.
[0029] The present application also provides a terminal device, including:
[0030] one or more processors;
[0031] A memory, coupled to the processor, for storing one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for converting an IFC file of an electrical device into a CityGML file as described in any one of the above items.
[0033] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for converting an IFC file of an electrical device into a CityGML file as described in any one of the above items is implemented.
[0034] Compared with the prior art, the beneficial effects of this application are:
[0035] The present application discloses a method for converting an IFC file of an electrical device into a CityGML file, the method comprising: parsing the IFC format file of the electrical device to obtain the graphic primitive objects of the electrical device components; constructing a feature mapping table of IFC features and CityGML features based on the mapping framework of the graph; and mapping the geometric information and semantic information of the electrical device components respectively according to the feature mapping table to obtain the CityGML format file of the electrical device. Based on the mapping rules of the graph, the present application realizes the complete and nearly lossless mapping of the electrical equipment from the BIM model to the CityGML building model, which not only fills the gap in the analysis and application of electrical equipment on the GIS platform, but also realizes the in-depth application of the spatial analysis function of GIS on the BIM model. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 It is a flowchart of a method for converting an IFC file of an electrical device into a CityGML file provided by a certain embodiment of the present application;
[0038] Figure 2 It is a flowchart of a method for converting an IFC file of an electrical device into a CityGML file provided by another embodiment of the present application;
[0039] Figure 3 yes Figure 1 Schematic diagram of the process of the sub-steps of step S10;
[0040] Figure 4 It is a structural diagram of a BIM model of common electrical equipment in a substation provided in a certain embodiment of the present application;
[0041] Figure 5 It is an IFC class statistical chart of an electrical equipment model provided by a certain embodiment of the present application;
[0042] Figure 6 It is a schematic diagram of the subordinate relationship of the transformer IFC class provided in a certain embodiment of the present application;
[0043] Figure 7 It is a schematic diagram of the IFC file parsing process of an electrical equipment model provided by a certain embodiment of the present application;
[0044] Figure 8 yes Figure 1 Schematic diagram of the process of the sub-steps of step S20;
[0045] Fig. 9 It is a geometric information expression method of IFC and CityGML provided in a certain embodiment of the present application;
[0046] Fig.10 It is a geometric mapping diagram from IFC to CityGML provided in a certain embodiment of the present application;
[0047] Fig.11 It is a semantic mapping diagram from IFC to CityGML provided in a certain embodiment of the present application;
[0048] Fig.12 is a data format conversion flow chart provided by a certain embodiment of the present application;
[0049] Fig.13 It is a structural schematic diagram of a device for converting an IFC file of an electrical device into a CityGML file provided by a certain embodiment of the present application;
[0050] Fig.14 It is a structural schematic diagram of a device for converting an IFC file of an electrical device into a CityGML file provided by another embodiment of the present application;
[0051] Fig.15 It is a structural diagram of a terminal device provided in a certain embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] It should be understood that the step numbers used in this article are only for the convenience of description and are not intended to limit the order in which the steps are executed.
[0054] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0055] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0056] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.
[0057] The method for converting an electrical equipment IFC file into a CityGML file provided in this application is mainly applicable to the conversion of electrical equipment in the power field between BIM models and GIS. To further illustrate the solution of this embodiment, the terms used in this application are first explained as follows:
[0058] BIM model: Building Information Model, describes a computer-aided design model that is mainly based on three-dimensional graphics, object-oriented, and related to architecture.
[0059] GIS: Geographic Information System, also known as "Geo-Science Information System", is a specific and very important spatial information system. It is a technical system that collects, stores, manages, calculates, analyzes, displays and describes the geographical distribution data of the entire or part of the earth's surface (including the atmosphere) with the support of computer hardware and software systems.
[0060] IFC format: a more common file data format in BIM models.
[0061] CityGML format: A file data format commonly used in GIS platforms, and a format used for data exchange and storage of virtual three-dimensional city models.
[0062] IfcOpenSheel: An IFC parser and open source python toolkit "IfcOpenSheel" that can read IFC files and parse them into object trees.
[0063] CityGML4j: A CityGML parser, which is an application programming interface (API) for reading, writing and runtime manipulation of GML-based data models.
[0064] It should be noted that the IFC format was originally designed for architectural design services. Therefore, the existing format conversion technology is mainly aimed at converting the BIM model of buildings with relatively unified structural information into the CityGML format of the geographic information system. Electrical equipment is the most important component of power grid engineering, but there is currently no format conversion method for electrical equipment. The main reasons include: 1) The object class in IFC is constructed based on architectural-related majors, and electrical equipment is not in the basic class of IFC; 2) The BIM model of electrical equipment is not obtained by combining equipment components, and its component objects are only surrounded by coordinate points and envelope surfaces; 3) The graph model used in the existing technology needs to build an ontology specifically for spatial objects, so it can only target a single type of spatial object. In summary, the existing mapping method between the IFC format and the CityGML format is based on the structural characteristics and attribute types of the building itself, and cannot be used for format conversion of other types of spatial objects. It is also difficult to adapt to the application scenarios of power engineering that contain a large number of electrical equipment. At the same time, the existing methods are usually one-way mappings, and it is easy to lose the content of the original data during the data format conversion process, and thus it is impossible to complete the data import completely and accurately.
[0065] In order to solve the above problem, a certain embodiment of the present application provides a method for converting an IFC file of an electrical device into a CityGML file, such as Figure 1The method for converting the electrical equipment IFC file into a CityGML file includes steps S10 to S30, and each step is specifically as follows:
[0066] S10. Parse the IFC format file of the electrical equipment to obtain graphic primitive objects of components of the electrical equipment.
[0067] Specifically, before executing step S10, it is usually necessary to execute step S40, such as Figure 2 Specifically, step S40 includes: determining the service type of the substation, and determining the type of electrical equipment of the substation under different service types.
[0068] It should be noted that, unlike the architectural BIM model which is detailed to the component information, the IFC format does not contain the class of electrical equipment, so electrical equipment manufacturers cannot provide BIM models at the component level. Different types of electrical equipment will meet different operational requirements. Compared with the architectural BIM model which already contains component-level associations and semantic information, the BIM model analysis of electrical equipment requires confirmation of the equipment type first.
[0069] Substations can be divided into booster stations, step-down stations, converter stations and switch stations according to their business types. Each substation contains a large number of different types of electrical equipment. Since the component types and numbers of different types of electrical equipment are very different, for example, oil-immersed power transformers generally contain eleven components, while converter valves usually only consist of seven types of components. Therefore, each type of electrical equipment needs to establish a separate graph conversion rule set based on its own components.
[0070] Before analyzing the power equipment, you need to first determine the business type of the substation and specify the type of electrical equipment in the substation IFC file. For example, a booster station usually includes: circuit breakers, disconnectors, grounding switches, current transformers, voltage transformers, busbars, and lightning arresters.
[0071] Usually, the production of a type of equipment needs to follow unified technical standards and fixed functional requirements, so even if the manufacturer is different, the components of the equipment will remain the same. For example, an oil-immersed power transformer consists of an iron core, a coil, an iron core lead bushing, a high-voltage bushing, an oil level gauge, a radiator, etc. As long as it is the same type of equipment, its components are basically the same.
[0072] After the type of the electrical equipment is determined, step S10 is further performed, that is, the IFC files of the components included in the equipment are parsed respectively.
[0073] In one embodiment, step S10 specifically includes steps S101 and S102. Figure 3 Specifically, the contents of each step are as follows:
[0074] S101. Use IfcOpenShell software to read the IFC format file of the electrical equipment, and count the IFC classes contained in the IFC format file.
[0075] At present, the common BIM model of electrical equipment in substations only realizes the geometric form of objects, such as Figure 4 shown. Figure 4 BIM models of equipment such as transformers, shunt reactors, series reactors, 35kV tank circuit breakers, capacitor banks, 35kV disconnectors, resistors, lightning arresters, starting reactors, grounding switches, valve towers, etc. are given. It can be seen that the BIM models of each type of electrical equipment have different structures and appearances, and are usually composed of single graphic elements, and the graphic element structure and quantity are also different. However, these independent models often ignore the correlation between components. For example, there is no relationship between the oil pillow, oil storage cabinet and oil purifier in the transformer BIM model. Therefore, in step S101, it is first necessary to separate different components from an overall electrical equipment BIM model, and then read the IFC format file of the component. Specifically, the following steps are included:
[0076] 1) First, organize the geometric information of the transformer in IFC format.
[0077] 1.1) Read the IfcAxis2Placement3D class in the IFC file, obtain the spatial position information and coordinate axis orientation information of all coordinate systems, and obtain the IfcLocalPlacement class to confirm the relationship between the coordinate systems;
[0078] 1.2) Extract the IfcCartesianPoint class in the file, read the three-dimensional coordinates of all nodes, and convert the relative coordinates of the nodes into global coordinates based on the spatial relationship between the local coordinate systems.
[0079] 2) Read the transformer attribute information in the IFC file.
[0080] 2.1) Reading the IfcProduct and IfcOwnerHistory classes can obtain the type, function and purpose of the device;
[0081] 2.2) Reading the IfcSite and IfcProject classes can obtain the spatial relationship between the installation location of the equipment and the constituent elements of the transformer model.
[0082] 3) Sort out the relationship between each instance in the IFC file.
[0083] 3.1) Read the IfcFacetedBrep instance number contained in the IfcshapeRepresentation instance and establish the connection between all model components;
[0084] 3.2) Read the plane IfcFace instance number contained in each IfcFacetedBrep instance, and establish the association relationship of all faces constituting the envelope;
[0085] 3.3) Read the node IfcCartesianPoint instance number contained in each IfcFace instance, and establish the association relationship between the node and the model edge;
[0086] 3.4) According to the association relationship, the instance of one of the components is saved separately as a component object.
[0087] S102: Determine the subordinate relationship between different IFC classes, and obtain the graphic element object of the electrical equipment component.
[0088] In BIM modeling software, the BIM model of electrical equipment is usually made as a whole using a parametric method. Equipment components can only be represented by primitives. For example, an insulator string (component) is composed of multiple cylinder-like primitives. The IFC file does not specify the correspondence between primitives and equipment components. Each primitive is represented by multiple IFC classes. The IFC file of the entire electrical equipment model will contain a large number of IFC classes. It is necessary to extract the corresponding primitives from the basic primitives contained in the IFC file based on the morphological characteristics of the component. The appearance of different types of components can be very different, so the types and numbers of primitives that make up the components are also very different. These differences will be reflected in the IFC file as the number and type of IFC instances contained.
[0089] In this step, the classes contained in each electrical equipment BIM model are first counted. Figure 5 As shown, Figure 5 (ad) give the IFC class statistics of disconnector, transformer, valve tower and resistor respectively. According to the statistical results, it can be analyzed that ifcpolyloop, ifcfaceouterbound, ifcface and ifccartesianpoint are the classes that represent the geometric information of the primitives.
[0090] It should be noted that each instance in the IFC file has an instance number unique index, and each instance contains the numbers of other instances related to it. By sorting out the other instance numbers contained in the IFC file of electrical equipment, the subordinate relationship between IFC classes can be determined. Specifically, these classes are divided into classes containing geometric information and classes containing semantic information, as shown in Table 1.
[0091] Table 1 Geometric information class and semantic information class of electrical equipment IFC
[0092]
[0093]
[0094] As can be seen from the table above, each geometric information class and semantic information class has its own definition. Among them, the geometric information class defines the size, direction and spatial position of the component elements of the equipment model, and the semantic information class defines the historical modification record, site information and spatial context information of the component. By sorting out the relationship, a tree structure between IFC classes can be generated. Figure 6 As shown, Figure 6 A simple example of dependencies between IFC classes of transformers is provided.
[0095] Specifically, the tree structure of the IFC model suggests two possibilities for developing a parser: a top-down approach and a bottom-up approach. The top-down approach first gets the root of the IFC and finds its child entities, while the bottom-up approach searches for inseparable objects and builds the tree starting from these leaf nodes. The bottom-up approach is effective for BIM models and GIS models because it ignores some unnecessary searches. However, for complex building models, the reconstruction time of the entire file tree may be too long because there may be more than one relationship between objects. Therefore, as a preferred implementation method, the parser strategy adopted in the framework is a top-down approach. The parser will find the IfcProject and the related IfcBuilding by looking at these reverse attributes, and then continue to look down until the elements of all components are visited. Taking the transformer as an example, the process is as follows Figure 7 As shown in the figure, the small rectangular box represents the semantic information parsing route, and the large rectangular box represents the geometric information parsing process.
[0096] S20. Based on the graph mapping framework, a feature mapping table of IFC features and CityGML features is constructed.
[0097] See also Figure 8 In a specific embodiment, step S20 further includes the following sub-steps:
[0098] S201, determining the characteristics of all IFC classes according to the type of electrical equipment and the subordinate relationship between different IFC classes;
[0099] S202: Match the features of the IFC class with the CityGML features in the CityGML file, and construct a feature mapping table of the IFC features and the CityGML features.
[0100] In this embodiment, the mapping between IFC and CityGML is completed based on the graph, and the graph is generated based on the organizational structure of IFC and CityGML. Although both IFC and CityGML are used to represent buildings, the representation methods and organizational structures of objects are different. For example, the outer surface of the equipment is represented by the IfcFace class in IFC, while it is represented by the Wall class in CityGML. By examining different instances of components in IFC and CityGML, we constructed the mapping rules between the two organizational structures, as shown in Table 2.
[0101] Table 2 Organizational structure mapping rules
[0102]
[0103] S30. According to the feature mapping table, the geometric information and the semantic information of the components of the electrical equipment are respectively mapped to obtain a CityGML format file of the electrical equipment.
[0104] In a specific implementation, step S30 specifically includes:
[0105] A) Geometric information mapping:
[0106] a) Extract the geometric information of electrical equipment components from the IFC format file of the electrical equipment;
[0107] b) Convert the local coordinates in the geometric information into global spatial position coordinates.
[0108] The most important step in data conversion between IFC and CityGML is to convert the local layout system of IFC to the world coordinate system of CityGML. IFC uses a local coordinate system, and the position of equipment components is defined in the local coordinate system. However, CityGML uses a world coordinate system, and the coordinate values of all objects are absolute coordinates without reference to other objects. The conversion from the local position system to the world coordinate system can be achieved by coordinate conversion.
[0109]
[0110] In the formula, I () Indicates the coordinates of IFC, C () Represents the coordinates of CityGML. M represents the rotation matrix, and Δ represents the translation.
[0111] In addition to the different coordinate systems, IFC and CityGML also have different geometric expressions. For example, the coordinate points of an outer surface of a device are stored in the child nodes of IfcPolyLoop, while in CityGML, the same area may be represented by a list of coordinates, such as Fig. 9As shown. Through the formulated geometric mapping diagram, the spatial positions of the nodes in IFC are saved one by one in CityGML, such as Fig.10 shown.
[0112] B) Semantic Information Mapping:
[0113] c) extracting semantic information of components of the electrical equipment from an IFC format file of the electrical equipment; the semantic information includes association information of attribute information and construction;
[0114] d) Map the attribute information directly to the corresponding CityGML format data;
[0115] e) Map the tree structure of the associated information into corresponding CityGML format data.
[0116] In this embodiment, the BIM model of the electrical equipment contains the semantic information of the building components in addition to the geometric information. The semantic information is divided into attribute information and component association information. The attribute information can be directly mapped, while the association information between components is implicit information and needs to be extracted from IFC. By reading these relationship definitions, a tree structure of the BIM model defining the relationship between components can be generated, such as Fig.11 (a) As shown in Figure 2. In the BIM model, an electrical device corresponds to a building in CityGML. Therefore, we define each component in the electrical device as a floor in the building to achieve the construction of associated information, such as Fig.11 (b) as shown.
[0117] The embodiment of the present application realizes a complete and nearly lossless mapping of electrical equipment from the BIM model to the CityGML building model based on the mapping rules of the graph, which not only fills the gap in the analysis and application of electrical equipment on the GIS platform, but also realizes the in-depth application of the spatial analysis function of GIS on the BIM model.
[0118] See also Fig.12 In a specific embodiment, a data format conversion flow chart of the method for converting the electrical equipment IFC file into the CityGML file of the present application is also provided. Based on the IFC and CityGML geometry and semantic consistency mapping method of the substation electrical equipment, the electrical equipment in the substation BIM model can be imported into the GIS platform.
[0119] See also Fig.13 In a specific embodiment, the present application also provides a device for converting an IFC file of an electrical device into a CityGML file, comprising:
[0120] The parsing unit 01 is used to parse the IFC format file of the electrical equipment to obtain the graphic element objects of the electrical equipment components;
[0121] A mapping table construction unit 02 is used to construct a feature mapping table of IFC features and CityGML features based on a graph mapping framework;
[0122] The mapping unit 03 is used to map the geometric information and semantic information of the components of the electrical equipment respectively according to the feature mapping table to obtain a CityGML format file of the electrical equipment.
[0123] In a specific embodiment, the device for converting the electrical equipment IFC file into the CityGML file further includes an equipment type determination unit 04, such as Fig.14 As shown. Among them,
[0124] The equipment type determination unit 04 is used to determine the service type of the substation and determine the electrical equipment types of the substation under different service types.
[0125] It can be understood that the device for converting an IFC file of an electrical equipment into a CityGML file provided in the embodiment of the present application is used to execute the method for converting an IFC file of an electrical equipment into a CityGML file as described in any of the above embodiments. Based on the mapping rules of the graph, this embodiment realizes the complete and nearly lossless mapping of electrical equipment from the BIM model to the CityGML building model, which not only fills the gap in the analysis and application of electrical equipment on the GIS platform, but also realizes the in-depth application of the spatial analysis function of GIS on the BIM model.
[0126] See also Fig.15 , a certain embodiment of the present application further provides a terminal device, including:
[0127] one or more processors;
[0128] A memory, coupled to the processor, for storing one or more programs;
[0129] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for converting the electrical equipment IFC file into the CityGML file as described above.
[0130] The processor is used to control the overall operation of the terminal device to complete all or part of the steps of the method for converting the above-mentioned electrical equipment IFC file into a CityGML file. The memory is used to store various types of data to support the operation of the terminal device, and these data may include, for example, instructions for any application or method used to operate on the terminal device, and application-related data. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0131] In an exemplary embodiment, the terminal device can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the method of converting the IFC file of electrical equipment into the CityGML file as described in any of the above embodiments, and achieve the technical effect consistent with the above method.
[0132] In another exemplary embodiment, a computer-readable storage medium including a computer program is also provided, and when the computer program is executed by a processor, the steps of the method for converting an IFC file of an electrical device into a CityGML file as described in any of the above embodiments are implemented. For example, the computer-readable storage medium may be the above-mentioned memory including the computer program, and the above-mentioned computer program may be executed by a processor of a terminal device to complete the method for converting an IFC file of an electrical device into a CityGML file as described in any of the above embodiments, and achieve the technical effect consistent with the above-mentioned method.
[0133] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A method for converting an IFC file of an electrical device into a CityGML file, characterized in that: include: Parse the IFC format file of the electrical equipment to obtain the graphic element objects of the electrical equipment components; Based on the graph mapping framework, a feature mapping table between IFC features and CityGML features is constructed; According to the feature mapping table, the geometric information and semantic information of the electrical equipment components are mapped respectively to obtain the CityGML format file of the electrical equipment; Before parsing the IFC format file of the electrical equipment, the method further includes: Determine the business type of the substation and the type of electrical equipment for the substation under different business types; The step of parsing the IFC format file of the electrical equipment to obtain the graphic primitive objects of the electrical equipment components includes: Use IfcOpenShell software to read the IFC format files of electrical equipment and count the IFC classes contained in the IFC format files; Determine the subordinate relationship between different IFC classes and obtain the graphic element objects of electrical equipment components; The steps of using IfcOpenShell software to read the IFC format file of the electrical equipment include: Separate different components from the BIM model of electrical equipment, and use IfcOpenShell software to read the IFC format files of various components of electrical equipment; The graph-based mapping framework constructs a feature mapping table of IFC features and CityGML features, including: Determine the characteristics of all IFC classes based on the type of electrical equipment and the dependencies between different IFC classes; Match the features of the IFC class with the CityGML features in the CityGML file, and build a feature mapping table between the IFC features and the CityGML features.
2. The method for converting an IFC file of an electrical equipment into a CityGML file according to claim 1, characterized in that: The mapping of geometric information and semantic information of the electrical equipment components respectively includes: Extract the geometric information of electrical equipment components from the IFC format file of electrical equipment; Convert the local coordinates in the geometric information into global spatial position coordinates.
3. The method for converting an IFC file of an electrical equipment into a CityGML file according to claim 2, characterized in that: The mapping of the geometric information and the semantic information of the electrical equipment components respectively further includes: Extracting semantic information of electrical equipment components from an IFC format file of the electrical equipment; the semantic information includes attribute information and associated information of the construction; Map attribute information directly to corresponding CityGML format data; Map the tree structure of the association information to the corresponding CityGML format data.
4. A device for converting an IFC file of an electrical device into a CityGML file, characterized in that: include: The parsing unit is used to parse the IFC format file of the electrical equipment to obtain the graphic element objects of the electrical equipment components, including: Use IfcOpenShell software to read the IFC format files of electrical equipment and count the IFC classes contained in the IFC format files; Determine the subordinate relationship between different IFC classes and obtain the graphic element objects of electrical equipment components; The steps of using IfcOpenShell software to read the IFC format file of the electrical equipment include: Separate different components from the BIM model of electrical equipment, and use IfcOpenShell software to read the IFC format files of various components of electrical equipment; The mapping table construction unit is used to construct a feature mapping table between IFC features and CityGML features based on the graph mapping framework, including: Determine the characteristics of all IFC classes based on the type of electrical equipment and the dependencies between different IFC classes; Match the features of the IFC class with the CityGML features in the CityGML file, and construct a feature mapping table between the IFC features and the CityGML features; A mapping unit, used for mapping the geometric information and semantic information of the electrical equipment components respectively according to the feature mapping table, to obtain a CityGML format file of the electrical equipment; The equipment type determination unit is used to determine the business type of the substation and determine the electrical equipment types of the substation under different business types.
5. A terminal device, characterized in that: include: one or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for converting an IFC file of an electrical device into a CityGML file as described in any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for converting an IFC file of an electrical device into a CityGML file as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method for converting BIM entity model into multiple levels of details (LOD) GIS standardized model
CN105931294A
Rapid BIM model construction method based on national power grid GIM standard
CN113536438A