Method and device for generating LOD2-4 grade GIS model through municipal road BIM design model, computer equipment and medium

By reading IFC files from the municipal road BIM design model, parsing component element categories, determining LOD levels and generating CityGML files, the technical difficulties in converting municipal road BIM design model to generate LOD2-4 level GIS models are solved, the integrity and accuracy of data integration are improved, and the informatization and intelligent management of municipal road projects are promoted.

CN120104707APending Publication Date: 2025-06-06MCC SOUTHERN CITY CONSTR ENG TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510155881.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-12
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively solve the problem of generating LOD2-4-level GIS models in the transformation of municipal road BIM design models, especially in terms of differences and technical difficulties in the definition of LOD levels and integrated display.

Method used

By reading the road IFC file, parsing component feature categories, classifying data, querying extended attributes, determining LOD level, creating and merging triangular networks, setting CityGML attributes, performing model scaling and coordinate system settings, and generating CityGML files of LOD2-4 levels.

Benefits of technology

The completeness and accuracy of LOD2-4 level GIS data and municipal road BIM data integration have been improved, providing technical routes and feasible methods for the informatization and intelligent management of municipal road projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104707A_ABST
    Figure CN120104707A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for generating an LOD2-4 grade GIS model through a municipal road BIM design model, computer equipment and a medium. The method comprises the steps that a road IFC file is read; obtaining component codes; the levels of LOD2, LOD3 and LOD4 are read; generating IFC models corresponding to different LOD levels; respectively creating and combining triangulation networks of the LOD2 level, the LOD3 level and the LOD4 level; respectively setting CityGML attributes of the levels of LOD2, LOD3 and LOD4; respectively scaling the level models of LOD2, LOD3 and LOD4, and setting a coordinate system; and respectively generating CityGML files at the levels of LOD2, LOD3 and LOD4. According to the method, the integrity and the accuracy of integration of the LOD2-4-grade GIS data and the municipal road BIM data can be improved, and a technical route and a feasible method are provided for integration of the municipal road BIM data and the GIS data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of municipal road three-dimensional design and geographic information technology, and in particular to a method, device, computer equipment and medium for generating a LOD2-4 level GIS model from a municipal road BIM design model. Background Art

[0002] Currently, the municipal road GIS model of LOD1 is the basic line shape of the road, which is used to express the topological relationship between the positioning, routing and routes of the road, and to display the spatial layout of a large-scale road network in a mesh manner; the municipal road GIS model of LOD2 is a three-dimensional brief model, which is used to display a brief model automatically generated based on the road centerline and width information, and to express the spatial range information of the road section; the municipal road GIS model of LOD3 is a refined road model, which is used to express the material of the road surface and the information of landmarks such as lane lines, including road lane divisions and intersection connectivity; the municipal road GIS model of LOD4 is a full-factor road design result, including the road components, ancillary facilities and spatial combination relationships described in the road model, and the spatial combination relationships contain clear road semantics, topology and geometric information.

[0003] It can be seen that when converting the municipal road BIM design model to generate LOD1 and LOD2-4 models, in addition to solving common technical problems such as data format, coordinate system, and geometric expression conversion, due to the huge differences in the expression content of LOD1 and LOD2-4 models, the LOD1 model focuses on simplifying the BIM design model to extract the basic road line shape, while the LOD2-4 model needs to focus on LOD level definition and integrated display issues. Summary of the invention

[0004] The technical problem to be solved by the present invention is, in view of the above-mentioned needs and technical difficulties, especially the problem of LOD2-4 level model conversion, a method, device, computer equipment and medium for generating LOD2-4 level GIS model from a municipal road BIM design model are provided, which can improve the integrity and accuracy of the integration of LOD2-4 level GIS data and municipal road BIM data, provide a technical route and feasible method for the integration of municipal road BIM and GIS data, and promote the informatization and intelligent management of municipal road projects.

[0005] In a first aspect, the present invention provides a method for generating a LOD2-4 level GIS model from a municipal road BIM design model, comprising:

[0006] Read the road IFC file, parse the IFC element categories involved in the road components from the road IFC file, and classify the components and attribute data according to the element categories to obtain the classified IFC elements containing the components and attribute data, wherein the IFC elements include component elements and attribute elements;

[0007] Based on the component elements and attribute elements, the extended attributes and extended attribute set data of the corresponding component are queried, and the extended attributes and extended attribute set data are connected to the component elements, and then the component coding data is screened out, and the component coding data is connected to the component elements to obtain the component elements connected with the component coding;

[0008] Based on the component elements of the connection component coding, the LOD classification rules, and the component classification and coding, the LOD level of the component elements is determined, and the LOD level attribute is added to the component elements to obtain the LOD level component elements;

[0009] Filter the LOD level attribute information of the LOD level component elements, select the component elements whose LOD level attribute values ​​are LOD2, LOD3, and LOD4, and obtain the LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively;

[0010] Create and merge LOD2, LOD3, LOD4 level triangulated networks based on LOD2, LOD3, LOD4 component elements respectively;

[0011] Set the CityGML attributes of LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively;

[0012] Scaling the LOD2, LOD3, LOD4 level models and setting the coordinate system based on the CityGML attributes of LOD2, LOD3, LOD4 levels respectively;

[0013] Generate LOD2, LOD3, LOD4 level CityGML files based on LOD2, LOD3, LOD4 level model scaling and set coordinate systems respectively.

[0014] In some examples, the querying of the extended attributes and extended attribute set data of the corresponding component based on the component elements and the attribute elements, connecting the extended attributes and extended attribute set data to the component elements, then screening out the component coding data, connecting the component coding data to the component elements to obtain the component elements connected with the component coding includes:

[0015] Construct the FeatureJoiner module, input various component elements and attribute elements, query the component's extended attributes and extended attribute set data from the attribute element IfcPropertySet according to the ifc_property_set{} data of the component element, connect the extended attributes and extended attribute set data to the component element, and output the connected component element;

[0016] Construct the Tester module, input the connected component elements, use ifc_property_set_name = basic attribute as the screening condition, where the attribute value of the basic attribute is the component code, thereby screening out the component elements with the component code;

[0017] Construct an AttributeManager module, input the filtered component elements with component codes, add component code attributes, thereby adding component code data to the component elements, and output the component elements with component codes.

[0018] In some examples, the determining the LOD level of the component element based on the component element of the connection component code, the LOD classification rule, and the component classification and coding, and adding the LOD level attribute to the component element to obtain the LOD level component element includes:

[0019] Read component classification and coding rules and LOD classification rules, where the component classification and coding rules comply with the requirements of the Unified Standard for Application of Highway Engineering Information Model (JTG / T 2420-2021), and output component classification and coding, and LOD classification planning;

[0020] Construct the FeatureJoiner module, input component elements with component codes, LOD classification rules, and component classification and coding, perform comparative query through component codes, thereby determining the LOD level of component elements, and adding LOD level attributes to component elements.

[0021] In some examples, the creating and merging of LOD2, LOD3, and LOD4 level triangulated networks based on LOD2, LOD3, and LOD4 component elements respectively includes:

[0022] Construct a Triangulator module, input LOD2 level component elements, perform triangulation processing on the geometric entities of the LOD2 level component elements to obtain LOD2 level discrete triangulation meshes, construct a MeshMerger module, input LOD2 level discrete triangulation meshes, aggregate LOD2 level discrete triangulation meshes to obtain LOD2 level triangulation meshes;

[0023] Construct the Triangulator module, input the LOD3 level component elements, perform triangulation processing on the geometric entities of the LOD3 level component elements to form LOD3 level discrete triangulation meshes, construct the MeshMerger module, input the LOD3 level discrete triangulation meshes, aggregate the LOD3 level discrete triangulation meshes to obtain LOD3 level triangulation meshes;

[0024] Construct the Triangulator module, input LOD4 level component elements, perform triangulation processing on the geometric entities of the LOD4 level component elements to form LOD4 level discrete triangulation meshes, construct the MeshMerger module, input LOD4 level discrete triangulation meshes, aggregate the LOD4 level discrete triangulation meshes to obtain LOD4 level triangulation meshes.

[0025] In some examples, the setting of CityGML attributes of LOD2, LOD3, and LOD4 levels based on LOD2, LOD3, and LOD4 level triangulated networks, respectively, includes:

[0026] Construct the CityGMLGeometrySetter module, input the LOD2 triangular mesh formed by aggregation, convert the LOD2 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD2 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD2 CityGML model;

[0027] Construct the CityGMLGeometrySetter module, input the LOD3 triangular mesh formed by aggregation, convert the LOD3 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD3 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD3 CityGML model;

[0028] Construct the CityGMLGeometrySetter module, input the LOD4 triangular mesh formed by aggregation, convert the LOD4 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD4 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD4 CityGML model.

[0029] In some examples, the scaling of the LOD2, LOD3, and LOD4 level models based on the CityGML attributes of the LOD2, LOD3, and LOD4 levels and setting the coordinate system include:

[0030] For the LOD2 level CityGML model, the LOD3 level CityGML model and the LOD4 level CityGML model, the Scaler modules are constructed respectively, and the scaling ratios in the three directions of X, Y and Z are set to obtain the scaled LOD2 level CityGML model, the LOD3 level CityGML model and the LOD4 level CityGML model;

[0031] Construct LocalCoordinateSystemSetter modules respectively, input the scaled LOD2 level CityGML model, LOD3 level CityGML model and LOD4 level CityGML model, and set independent coordinate systems;

[0032] Construct CsmapReprojector modules respectively, input LOD2 level CityGML model, LOD3 level CityGML model and LOD4 level CityGML model after setting independent coordinate system, and project them to the geographic coordinate system or projection coordinate system used by GIS respectively to complete the coordinate system conversion.

[0033] In some examples, the generating of CityGML files of LOD2, LOD3, and LOD4 levels based on the scaling and setting of the LOD2, LOD3, and LOD4 level models, respectively, includes:

[0034] Construct RoadOfLod2, RoadOfLod3, and RoadOfLod4 writing modules respectively, corresponding to the LOD2 level CityGML model, LOD3 level CityGML model, and LOD4 level CityGML model after the input coordinate system conversion, write out files, and generate RoadOfLod2.gml, RoadOfLod3.gml, and RoadOfLod4.gml files, which are GIS models of LOD2, LOD3, and LOD4 levels.

[0035] In a second aspect, the present invention provides a device for generating a LOD2-4 level GIS model from a municipal road BIM design model, comprising:

[0036] The IFC file reading module is used to read the road IFC file, parse the IFC element categories involved in the road components from the road IFC file, and classify the components and attribute data according to the element categories to obtain the IFC elements classified by category containing the components and attribute data, wherein the IFC elements include component elements and attribute elements;

[0037] A component code acquisition module is used to query the extended attributes and extended attribute set data of the corresponding component based on the component elements and attribute elements, and connect the extended attributes and extended attribute set data to the component elements, and then filter out the component code data, and connect the component code data to the component elements to obtain the component elements connected with the component code;

[0038] A level reading module is used to determine the LOD level of the component element based on the component element of the connection component code, the LOD classification rule, and the component classification and coding, and add the LOD level attribute to the component element to obtain the LOD level component element;

[0039] An IFC model generation module is used to filter the LOD level attribute information of LOD level component elements, and select component elements with LOD level attribute values ​​of LOD2, LOD3, and LOD4 to obtain LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively;

[0040] The triangulation generation module is used to create and merge LOD2, LOD3, and LOD4 level triangulations based on LOD2, LOD3, and LOD4 component elements respectively;

[0041] The level attribute setting module is used to set the CityGML attributes of LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively;

[0042] Scaling module, used to scale LOD2, LOD3, LOD4 level models and set coordinate systems based on LOD2, LOD3, LOD4 level CityGML attributes respectively;

[0043] The file generation module is used to generate CityGML files of LOD2, LOD3 and LOD4 levels based on the scaling and coordinate system of the LOD2, LOD3 and LOD4 level models respectively.

[0044] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0045] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0046] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0047] (1) The present invention classifies and codes the components involved in the municipal road BIM design model according to the "Uniform Standard for the Application of Highway Engineering Information Model" (JTG / T 2420-2021), and divides them according to the LOD level; on this basis, for the component model corresponding to the LOD2-4 level, by developing a series of data converters, the model is subjected to LOD level definition, geometric model conversion and extraction, and basic attribute setting, so as to realize the generation of LOD2-4 level GIS model from the municipal road BIM design model. This method can improve the integrity and accuracy of the integration of LOD2-4 level GIS data and municipal road BIM data, and provide a technical route and feasible method for the integration of municipal road BIM and GIS data.

[0048] (2) Solve the problem of how to convert the municipal road BIM design model into a LOD2-4 level GIS model, improve the integrity and accuracy of the integration of LOD2-4 level GIS data and municipal road BIM data, and promote the informatization and intelligent management of municipal road projects.

[0049] (3) It helps to integrate the advantages of both in the macro and micro fields, realize the full life cycle management of municipal road projects, and obtain efficient information support in all stages from planning, design to construction, operation and maintenance. Through the GIS platform, key information such as road network, traffic flow, topography, etc. can be intuitively displayed to help managers make decisions quickly and improve project management efficiency.

[0050] (4) After the municipal road BIM design model is converted into a GIS model through data conversion, the road design scheme can be simulated and evaluated in combination with the spatial analysis function of GIS, and the impact of different design schemes on traffic flow, traffic safety and road capacity can be predicted, thereby optimizing the design scheme.

[0051] (5) After the municipal road BIM design model is converted into a GIS model through data conversion, each department can conduct analysis and decision-making based on a unified data foundation to improve work efficiency and coordination effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 It is a schematic diagram of a method for generating a LOD2-4 level GIS model from a municipal road BIM design model provided by an embodiment of the present invention;

[0054] Figure 2 is a schematic diagram of an original model provided by an embodiment of the present invention;

[0055] Figure 3 It is a schematic diagram of a LOD2 level GIS model provided by an embodiment of the present invention;

[0056] Figure 4 This is a schematic diagram of a LOD3 level GIS model provided by an embodiment of the present invention;

[0057] Figure 5 It is a schematic diagram of a LOD4 level GIS model provided by an embodiment of the present invention;

[0058] Figure 6 It is a schematic diagram of a device for generating a LOD2-4 level GIS model from a municipal road BIM design model provided by an embodiment of the present invention;

[0059] Figure 7 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0061] In the following description, specific embodiments of the present invention will be described with reference to steps and symbols performed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and computer execution referred to herein includes operations by a computer processing unit of electronic signals representing data in a structured form. This operation converts the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present invention are described in the above text, which does not represent a limitation, and testers in the field will understand that the following various steps and operations can also be implemented in hardware.

[0062] The term "module" or "unit" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services in this article can be regarded as implementation objects on the computing system. The apparatus and method in this article are preferably implemented in software, but can also be implemented in hardware, all within the scope of protection of the present invention.

[0063] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "an", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0064] In the first embodiment of the present invention, a method for generating a LOD2-4 level GIS model from a municipal road BIM design model is provided. Figure 1 As shown, the following steps are included:

[0065] S1: reading the road IFC file, parsing the IFC element categories involved in the road components from the road IFC file, and classifying the components and attribute data according to the element categories to obtain the classified IFC elements containing the components and attribute data, wherein the IFC elements include component elements and attribute elements;

[0066] S2: Obtain component code: query the extended attribute and extended attribute set data of the corresponding component based on the component element and the attribute element, connect the extended attribute and extended attribute set data to the component element, then filter out the component code data, connect the component code data to the component element to obtain the component element connected with the component code;

[0067] S3: Reading LOD2, LOD3, and LOD4 levels: Based on the component elements of the connection component coding, the LOD classification rules, and the component classification and coding, the LOD levels of the component elements are determined, and the LOD level attributes are added to the component elements to obtain the LOD level component elements;

[0068] S4: Generate IFC models corresponding to different LOD levels: filter the LOD level attribute information of the LOD level component elements, select the component elements whose LOD level attribute values ​​are LOD2, LOD3, and LOD4, and obtain the LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively;

[0069] S5: Create and merge LOD2, LOD3, LOD4 level triangulated networks respectively: Create and merge LOD2, LOD3, LOD4 level triangulated networks based on LOD2, LOD3, LOD4 component elements respectively;

[0070] S6: Set the CityGML attributes of LOD2, LOD3, and LOD4 levels respectively: Set the CityGML attributes of LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively;

[0071] S7: Scaling the models at the LOD2, LOD3, and LOD4 levels and setting the coordinate system respectively: Scaling the models at the LOD2, LOD3, and LOD4 levels and setting the coordinate system respectively based on the CityGML attributes at the LOD2, LOD3, and LOD4 levels;

[0072] S8: Generate LOD2, LOD3, LOD4 level CityGML files respectively: Generate LOD2, LOD3, LOD4 level CityGML files based on LOD2, LOD3, LOD4 level model scaling and set coordinate system

[0073] In the embodiment of the present invention, in step S1, a road IFC file reading module is constructed, and the original model is as follows: Figure 2As shown in the figure, the road IFC file is read, and the IFC element categories involved in the road components are parsed therefrom, and the components and attribute data are classified according to the element categories, and the classified IFC elements containing components and attribute data are output, such as IfcBuilding Element Proxy, IfcCivilElement, IfcPipeSegment, IfcWall, IfcSlab, IfcFooting, IfcSpace, IfcPropertySet, etc. IFC elements are mainly divided into two categories, one is component elements, such as IfcBuilding Element Proxy, IfcCivilElement, IfcPipeSegment, IfcWall, IfcSlab, IfcFooting, IfcSpace, which store various component geometric entities and basic attributes; the other is attribute elements, such as IfcPropertySet, which store the extended attributes and extended attribute set data of each component entity.

[0074] In the embodiment of the present invention, in step S2, multiple FeatureJoinerAndTester modules are constructed, various component elements and attribute elements output from S1 are input, and the extended attribute and extended attribute set data of the component are queried from the attribute element IfcPropertySet according to the ifc_property_set{} data of the component element, and the extended attribute and extended attribute set data are connected to the component element, and then the component coding data is selected from them, and the component coding data is connected to the component element, so that the component element stores the component coding data in addition to the original component body entity and basic attribute data, and outputs various component elements;

[0075] According to the above scheme, in step S2, the FeatureJoinerAndTester module is composed of multiple sub-modules, specifically:

[0076] S201: Construct a FeatureJoiner module, input various component elements and attribute elements output from S1, query the extended attribute and extended attribute set data of the component from the attribute element IfcPropertySet according to the ifc_property_set{} data of the component element, connect the extended attribute and extended attribute set data to the component element, and output the connected component element;

[0077] S202: Construct a Tester module, input the component elements in S201, use "ifc_property_set_name = basic property" as a screening condition, wherein the attribute value of "basic property" is the component code, thereby screening out component elements with component codes;

[0078] S203: construct an AttributeManager module, input the component element in S202, add a "component code" attribute, thereby adding the component code data to the component element, and output the component element.

[0079] In the embodiment of the present invention, in step S3, the LOD2, LOD3, and LOD4 levels are read, specifically:

[0080] S301: Construct a component coding classification table reading module, read component classification and coding rules, and LOD classification rules, wherein the component classification and coding rules comply with the requirements of the Unified Standard for Application of Highway Engineering Information Model (JTG / T 2420-2021), and output component classification and coding, and LOD classification planning;

[0081] S302: Construct a FeatureJoiner module, input the component elements and LOD classification rules in S203 and the component classification and coding in S301, perform a comparative query through the component coding, thereby determining the LOD level of the component elements, adding the LOD level attribute to the component elements and outputting them.

[0082] In the embodiment of the present invention, in step S4, a TestFilterOfLod module is constructed, the component elements in S302 are input, and the component elements with LOD level attribute values ​​of LOD2, LOD3, and LOD4 are selected and output respectively by filtering their LOD level attribute information.

[0083] In the embodiment of the present invention, in step S5, LOD2, LOD3, and LOD4 level triangulated networks are created and merged respectively, specifically:

[0084] S501: For the LOD2 level model, construct the Triangulator module, input the LOD2 level component elements in S4, perform triangulation processing on its geometric entities, form triangulation and output;

[0085] For the LOD3 level model, the Triangulator module is constructed to input the LOD3 level component elements in S4, perform triangulation processing on its geometric entities, form triangulated meshes and output them;

[0086] For the LOD4 level model, the Triangulator module is constructed to input the LOD4 level component elements in S4, perform triangulation processing on its geometric entities, form triangulated meshes and output them;

[0087] S502: for the LOD2 level model, construct a MeshMerger module, input the LOD2 level discrete triangle mesh generated in S501, perform aggregation processing on it and output it;

[0088] For the LOD3 level model, build the MeshMerger module, input the LOD3 level discrete triangle mesh generated in S501, aggregate it and output it;

[0089] For the LOD4 level model, a MeshMerger module is constructed, and the LOD4 level discrete triangle mesh generated in S501 is input, and the LOD4 level discrete triangle mesh is aggregated and output.

[0090] In the embodiment of the present invention, in step S6, the CityGML attributes of the LOD2, LOD3, and LOD4 levels are set respectively, specifically:

[0091] S601: For the LOD2 level model, construct the CityGMLGeometrySetter module, input the LOD2 level triangulated mesh formed by aggregation in S502, convert it into a CityGML model and output it;

[0092] For the LOD3 level model, construct the CityGMLGeometrySetter module, input the LOD3 level triangulated mesh formed by aggregation in S502, convert it into a CityGML model and output it;

[0093] For the LOD4 level model, construct the CityGMLGeometrySetter module, input the LOD4 level triangulated mesh formed by aggregation in S502, convert it into a CityGML model and output it;

[0094] S602: for the LOD2 level model, construct an AttributeCreator module, input the LOD2 level CityGML model formed in S601, add basic attribute information required by the CityGML model such as "citygml_lod_name, gml_id, gml_name" and output;

[0095] For the LOD3 level model, construct the AttributeCreator module, input the LOD3 level CityGML model formed in S601, add the basic attribute information required by the CityGML model such as "citygml_lod_name, gml_id, gml_name" and output;

[0096] For the LOD4 level model, construct the AttributeCreator module, input the LOD4 level CityGML model formed in S601, add the basic attribute information required by the CityGML model such as "citygml_lod_name, gml_id, gml_name" and output it.

[0097] In the embodiment of the present invention, in step S7, LOD2, LOD3, and LOD4 level models are scaled and the coordinate system is set, specifically:

[0098] S701: for the LOD2, LOD3, and LOD4 level CityGML models generated in S602, respectively, a Scaler module is constructed, and the scaling ratios in the three directions of X, Y, and Z are set to 0.001, and the scaling is performed and then output;

[0099] S702: Construct LocalCoordinateSystemSetter modules respectively. Since there is no coordinate system information in the IFC model, the LOD2, LOD3, and LOD4 level CityGML models formed in S701 also have no coordinate system information. Therefore, the model in S701 is input here, and an independent coordinate system (such as a local coordinate system) is set and then output respectively;

[0100] S703: construct CsmapReprojector modules respectively, input the LOD2, LOD3, and LOD4 level CityGML models in S702, project them respectively to the geographic coordinate system or projection coordinate system used by GIS, complete the coordinate system conversion and output them respectively.

[0101] In the embodiment of the present invention, in step S8, RoadOfLod2, RoadOfLod3, and RoadOfLod4 writing modules are constructed respectively, corresponding to the CityGML model input in S703, and files are written to generate RoadOfLod2.gml, RoadOfLod3.gml, and RoadOfLod4.gml files, which are GIS models of LOD2, LOD3, and LOD4 levels, respectively. Figure 3 , Figure 4 and Figure 5 shown.

[0102] In the second embodiment of the present invention, in order to better implement the method provided in the embodiment of the present invention, the embodiment of the present invention also provides a device based on the above method. The meanings of the terms are the same as those in the above method, and the specific implementation details can refer to the description in the method embodiment.

[0103] See also Figure 6 , Figure 6A schematic diagram of the structure of an apparatus provided in an embodiment of the present invention, wherein the apparatus 600 may include an IFC file reading module 601, a component code acquisition module 602, a level reading module 603, an IFC model generation module 604, a triangulation generation module 605, a level attribute setting module 606, a scaling module 607 and a file generation module 608, wherein:

[0104] The IFC file reading module 601 is used to read the road IFC file, parse the IFC element categories involved in the road components from the road IFC file, and classify the components and attribute data according to the element categories to obtain the classified IFC elements containing the components and attribute data, wherein the IFC elements include component elements and attribute elements;

[0105] The component code acquisition module 602 is used to query the extended attributes and extended attribute set data of the corresponding component based on the component elements and attribute elements, and connect the extended attributes and extended attribute set data to the component elements, and then filter out the component code data, and connect the component code data to the component elements to obtain the component elements connected with the component code;

[0106] The level reading module 603 is used to determine the LOD level of the component element based on the component element of the connection component code, the LOD classification rule, and the component classification and coding, and add the LOD level attribute to the component element to obtain the LOD level component element;

[0107] The IFC model generation module 604 is used to filter the LOD level attribute information of the LOD level component elements, select the component elements with LOD level attribute values ​​of LOD2, LOD3, and LOD4 to obtain LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively;

[0108] A triangulated network generation module 605 is used to create and merge LOD2, LOD3, and LOD4 level triangulated networks based on the component elements of LOD2, LOD3, and LOD4 respectively;

[0109] The level attribute setting module 606 is used to set the CityGML attributes of the LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively;

[0110] A scaling module 607 is used to scale the LOD2, LOD3, LOD4 level models and set the coordinate system based on the CityGML attributes of the LOD2, LOD3, LOD4 levels respectively;

[0111] The file generation module 608 is used to generate CityGML files of LOD2, LOD3 and LOD4 levels based on the scaling and set coordinate systems of the LOD2, LOD3 and LOD4 level models respectively.

[0112] In a third embodiment of the present invention, a computer device is also provided, such as Figure 7 As shown, it shows a schematic diagram of the structure of a computer device involved in an embodiment of the present invention, specifically:

[0113] The computer device may include one or more processing core processors 701, one or more computer readable storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will appreciate that Figure 7 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0114] The processor 701 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 702 and calling data stored in the memory 702, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operation storage medium, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0115] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating storage medium, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a controller to provide the processor 701 with access to the memory 702.

[0116] The computer device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management storage medium, so as to manage charging, discharging, and power consumption management through the power management storage medium. The power supply 703 can also include any components such as one or more DC or AC power supplies, recharge storage media, power failure detection circuits, power converters or inverters, and power status indicators.

[0117] The computer device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0118] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 701 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, thereby implementing the steps in the above method embodiment.

[0119] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0120] To this end, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in any method provided by the embodiment of the present invention.

[0121] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0122] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0123] Since the computer program stored in the computer-readable storage medium can execute the steps in any method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0124] The above is a detailed introduction to the method, device, computer equipment and medium for generating LOD2-4 level GIS model from a municipal road BIM design model provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating a LOD2-4 level GIS model from a municipal road BIM design model, characterized in that: include: Read the road IFC file, parse the IFC element categories involved in the road components from the road IFC file, and classify the components and attribute data according to the element categories to obtain the classified IFC elements containing the components and attribute data, wherein the IFC elements include component elements and attribute elements; Based on the component elements and attribute elements, the extended attributes and extended attribute set data of the corresponding component are queried, and the extended attributes and extended attribute set data are connected to the component elements, and then the component coding data is screened out, and the component coding data is connected to the component elements to obtain the component elements connected with the component coding; Based on the component elements of the connection component coding, the LOD classification rules, and the component classification and coding, the LOD level of the component elements is determined, and the LOD level attribute is added to the component elements to obtain the LOD level component elements; Filter the LOD level attribute information of the LOD level component elements, select the component elements whose LOD level attribute values ​​are LOD2, LOD3, and LOD4, and obtain the LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively; Create and merge LOD2, LOD3, LOD4 level triangulated networks based on LOD2, LOD3, LOD4 component elements respectively; Set the CityGML attributes of LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively; Scaling the LOD2, LOD3, LOD4 level models and setting the coordinate system based on the CityGML attributes of LOD2, LOD3, LOD4 levels respectively; Generate LOD2, LOD3, LOD4 level CityGML files based on LOD2, LOD3, LOD4 level model scaling and set coordinate systems respectively.

2. The method according to claim 1, characterized in that The method of querying the extended attributes and extended attribute set data of the corresponding component based on the component elements and attribute elements, connecting the extended attributes and extended attribute set data to the component elements, then screening out the component coding data, connecting the component coding data to the component elements to obtain the component elements connected with the component coding includes: Construct the FeatureJoiner module, input various component elements and attribute elements, query the component's extended attributes and extended attribute set data from the attribute element IfcPropertySet according to the ifc_property_set{} data of the component element, connect the extended attributes and extended attribute set data to the component element, and output the connected component element; Construct the Tester module, input the connected component elements, use ifc_property_set_name = basic attribute as the screening condition, where the attribute value of the basic attribute is the component code, thereby screening out the component elements with the component code; Construct an AttributeManager module, input the filtered component elements with component codes, add component code attributes, thereby adding component code data to the component elements, and output the component elements with component codes.

3. The method according to claim 2, characterized in that The component elements based on the connection component coding, LOD classification rules and component classification and coding, determine the LOD level of the component elements, add the LOD level attribute to the component elements to obtain the LOD level component elements, including: Read component classification and coding rules and LOD classification rules, where the component classification and coding rules comply with the requirements of the Unified Standard for Application of Highway Engineering Information Model (JTG / T 2420-2021), and output component classification and coding, and LOD classification planning; Construct the FeatureJoiner module, input component elements with component codes, LOD classification rules, and component classification and coding, perform comparative query through component codes, thereby determining the LOD level of component elements, and adding LOD level attributes to component elements.

4. The method according to claim 3, characterized in that The creation and merging of LOD2, LOD3, and LOD4 level triangulated networks based on LOD2, LOD3, and LOD4 component elements respectively include: Construct a Triangulator module, input LOD2 level component elements, perform triangulation processing on the geometric entities of the LOD2 level component elements to obtain LOD2 level discrete triangulation meshes, construct a MeshMerger module, input LOD2 level discrete triangulation meshes, aggregate LOD2 level discrete triangulation meshes to obtain LOD2 level triangulation meshes; Construct the Triangulator module, input the LOD3 level component elements, perform triangulation processing on the geometric entities of the LOD3 level component elements to form LOD3 level discrete triangulation meshes, construct the MeshMerger module, input the LOD3 level discrete triangulation meshes, aggregate the LOD3 level discrete triangulation meshes to obtain LOD3 level triangulation meshes; Construct the Triangulator module, input LOD4 level component elements, perform triangulation processing on the geometric entities of the LOD4 level component elements to form LOD4 level discrete triangulation meshes, construct the MeshMerger module, input LOD4 level discrete triangulation meshes, aggregate the LOD4 level discrete triangulation meshes to obtain LOD4 level triangulation meshes.

5. The method according to claim 4, characterized in that The CityGML attributes of the LOD2, LOD3, and LOD4 levels are set based on the LOD2, LOD3, and LOD4 level triangulated networks, respectively, including: Construct the CityGMLGeometrySetter module, input the LOD2 triangular mesh formed by aggregation, convert the LOD2 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD2 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD2 CityGML model; Construct the CityGMLGeometrySetter module, input the LOD3 triangular mesh formed by aggregation, convert the LOD3 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD3 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD3 CityGML model; Construct the CityGMLGeometrySetter module, input the LOD4 triangular mesh formed by aggregation, convert the LOD4 triangular mesh into a CityGML model, construct the AttributeCreator module, input the converted LOD4 CityGML model, add the basic attribute information required by the CityGML model to obtain the LOD4 CityGML model.

6. The method according to claim 5, characterized in that The LOD2, LOD3, LOD4 level model scaling and setting of the coordinate system are performed based on the CityGML attributes of the LOD2, LOD3, LOD4 levels respectively, including: For the LOD2 level CityGML model, the LOD3 level CityGML model and the LOD4 level CityGML model, the Scaler modules are constructed respectively, and the scaling ratios in the three directions of X, Y and Z are set to obtain the scaled LOD2 level CityGML model, the LOD3 level CityGML model and the LOD4 level CityGML model; Construct LocalCoordinateSystemSetter modules respectively, input the scaled LOD2 level CityGML model, LOD3 level CityGML model and LOD4 level CityGML model, and set independent coordinate systems; Construct CsmapReprojector modules respectively, input LOD2 level CityGML model, LOD3 level CityGML model and LOD4 level CityGML model after setting independent coordinate system, and project them to the geographic coordinate system or projection coordinate system used by GIS respectively to complete the coordinate system conversion.

7. The method according to claim 6, characterized in that The CityGML files of LOD2, LOD3 and LOD4 levels are generated based on the scaling and setting of the LOD2, LOD3 and LOD4 level models, respectively, including: Construct RoadOfLod2, RoadOfLod3, and RoadOfLod4 writing modules respectively, corresponding to the LOD2 level CityGML model, LOD3 level CityGML model, and LOD4 level CityGML model after the input coordinate system conversion, write out files, and generate RoadOfLod2.gml, RoadOfLod3.gml, and RoadOfLod4.gml files, which are GIS models of LOD2, LOD3, and LOD4 levels.

8. A device for generating LOD2-4 level GIS model from municipal road BIM design model, characterized in that: include: The IFC file reading module is used to read the road IFC file, parse the IFC element categories involved in the road components from the road IFC file, and classify the components and attribute data according to the element categories to obtain the IFC elements classified by category containing the components and attribute data, wherein the IFC elements include component elements and attribute elements; A component code acquisition module is used to query the extended attributes and extended attribute set data of the corresponding component based on the component elements and attribute elements, and connect the extended attributes and extended attribute set data to the component elements, and then filter out the component code data, and connect the component code data to the component elements to obtain the component elements connected with the component code; A level reading module is used to determine the LOD level of the component element based on the component element of the connection component code, the LOD classification rule, and the component classification and coding, and add the LOD level attribute to the component element to obtain the LOD level component element; An IFC model generation module is used to filter the LOD level attribute information of LOD level component elements, and select component elements with LOD level attribute values ​​of LOD2, LOD3, and LOD4 to obtain LOD2 level component elements, LOD3 level component elements, and LOD4 level component elements respectively; The triangulation generation module is used to create and merge LOD2, LOD3, and LOD4 level triangulations based on LOD2, LOD3, and LOD4 component elements respectively; The level attribute setting module is used to set the CityGML attributes of LOD2, LOD3, and LOD4 levels based on the LOD2, LOD3, and LOD4 level triangulated networks respectively; Scaling module, used to scale LOD2, LOD3, LOD4 level models and set coordinate systems based on LOD2, LOD3, LOD4 level CityGML attributes respectively; The file generation module is used to generate CityGML files of LOD2, LOD3 and LOD4 levels based on the scaling and coordinate system of the LOD2, LOD3 and LOD4 level models respectively.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.