Method and device for generating LOD1-grade GIS model through municipal road BIM design model, computer equipment and medium
By performing specific data analysis, attribute query and geometric processing on the municipal road BIM design model, a GIS model with LOD1 level is generated, which solves the technical difficulties in BIM and GIS data integration, improves the integrity and accuracy of data integration, and promotes the informatization management of municipal road projects.
Patent Information
- Application Number
- CN202510155879.5
- 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
When generating the LOD1-level GIS model of municipal road BIM design models, the municipal road BIM faces technical difficulties such as LOD level definition, geometric model conversion and extraction, basic attribute setting, and coordinate system conversion, resulting in insufficient integrity and accuracy of the integration of GIS data and BIM data.
By reading the road IFC file, analyzing the IFC element categories, classifying components and attribute data, querying the extended attributes of the components, determining the LOD level, performing triangular mesh processing, extracting the basic road line shape, setting CityGML attributes, completing coordinate system conversion, and generating a GIS model with LOD1 level.
The completeness and accuracy of LOD1-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.
Smart Images

Figure CN120104706A_ABST
Abstract
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 LOD1 level GIS model from a municipal road BIM design model. Background Art
[0002] Geographic Information System (GIS) is good at macro-level management and planning, while Building Information Modeling (BIM) focuses on detailed information in the micro field. How to integrate such macro and micro models in different fields is a difficult underlying supporting technology problem for current smart city applications. One of the technical routes is to convert the municipal road BIM design model into a GIS model through data conversion. The implementation of this technology will effectively improve project management efficiency, enhance spatial analysis capabilities, and promote multi-departmental collaboration.
[0003] The details are as follows:
[0004] 1. Improve project management efficiency:
[0005] Converting the municipal road BIM design model into a GIS model through data conversion helps 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.
[0006] 2. Enhance spatial analysis capabilities:
[0007] GIS has powerful spatial analysis capabilities and can conduct in-depth analysis of natural conditions such as topography, geology, and climate, providing a scientific basis for road design.
[0008] 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.
[0009] 3. Promote multi-departmental collaboration:
[0010] Municipal road design involves multiple departments, such as planning, transportation, environmental protection, water conservancy, etc. Through the GIS platform, information sharing and collaborative work among departments can be achieved, reducing information islands and communication barriers.
[0011] 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.
[0012] However, since BIM and GIS use different data formats and storage methods, different coordinate systems, different geometric expressions and semantic definitions, the generation of GIS models from municipal road BIM design models faces technical difficulties such as LOD level definition, geometric model conversion and extraction, basic attribute settings, and coordinate system conversion. Summary of the invention
[0013] 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 LOD1 level model conversion, a method, device, computer equipment and medium for generating LOD1 level GIS model from municipal road BIM design model are provided, which can improve the integrity and accuracy of the integration of LOD1 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.
[0014] In a first aspect, the present invention provides a method for generating a LOD1 level GIS model from a municipal road BIM design model, comprising:
[0015] 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;
[0016] 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;
[0017] 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;
[0018] Filter the LOD level attribute information of the LOD level component elements, select the component elements with LOD level attribute values of LOD1 to obtain the LOD1 level component elements;
[0019] Perform triangulation processing on the geometric entities of LOD1 level component elements to create and merge triangulated networks;
[0020] Extract the basic alignment of the road from the triangulated network, set the CityGML attributes based on the basic alignment of the road to obtain a CityGML model, scale the CityGML model and set the coordinate system to obtain a CityGML model that completes the coordinate system conversion;
[0021] Generate a LOD1 GIS model from the CityGML model that completes the coordinate system conversion.
[0022] 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:
[0023] 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;
[0024] 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;
[0025] 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.
[0026] 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:
[0027] 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;
[0028] Construct the FeatureJoiner module, input component elements with component codes, LOD classification rules, and component classification and coding, perform comparative query through component codes to determine the LOD level of component elements, add LOD level attributes to component elements and output LOD level component elements.
[0029] In some examples, the processing of the geometric entities of the LOD1 level component elements into triangulated meshes to create and merge triangulated meshes includes:
[0030] Construct the Triangulator module, input the LOD1 level component elements, perform triangulation processing on the geometric entities of the LOD1 level component elements, form triangulated meshes and output discrete triangulated meshes;
[0031] Construct the MeshMerger module, input discrete triangulated meshes, aggregate the discrete triangulated meshes and output the aggregated triangulated meshes.
[0032] In some examples, extracting the basic road alignment from the triangulated network includes:
[0033] Construct the HullReplacer module, input the aggregated triangulated network, reconstruct the aggregated triangulated network geometry with convex polygons, form the outer contour and output it;
[0034] Build the CenterlineReplacer module, input the outer contour, and extract the centerline of the outer contour to form the basic line shape of the road.
[0035] In some examples, setting CityGML attributes according to the road basic line shape to obtain a CityGML model includes:
[0036] Construct the CityGMLGeometrySetter module, input the road basic alignment, and convert the road basic alignment into a CityGML model;
[0037] Build the AttributeCreator module, input the CityGML model, and add the basic attribute information required by the CityGML model.
[0038] In some examples, scaling the CityGML model and setting the coordinate system to obtain a CityGML model that completes the coordinate system conversion includes:
[0039] Build the Scaler module, input the CityGML model, and set the scaling ratios in the X, Y, and Z directions for scaling;
[0040] Build the LocalCoordinateSystemSetter module, input the scaled CityGML model, and set an independent coordinate system;
[0041] Construct the CsmapReprojector module, input the CityGML model after setting the independent coordinate system, and project it to the geographic coordinate system or projection coordinate system used by GIS, complete the coordinate system conversion and output the CityGML model.
[0042] In a second aspect, the present invention provides a device for generating a LOD1 level GIS model from a municipal road BIM design model, comprising:
[0043] The road 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;
[0044] 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;
[0045] The LOD 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;
[0046] 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 LOD1 to obtain LOD1 level component elements;
[0047] The triangulation creation module is used to process the geometric entities of LOD1 level component elements into triangulated meshes to create and merge triangulated networks;
[0048] Road basic alignment extraction module, used to extract road basic alignment from triangulated network;
[0049] The CityGML attribute setting module is used to set the CityGML attributes from the road basic line shape to obtain the CityGML model;
[0050] The model scaling module is used to scale the CityGML model and set the coordinate system to obtain a CityGML model that completes the coordinate system conversion;
[0051] The CityGML file generation module is used to generate a LOD1 level GIS model from a CityGML model that has completed coordinate system conversion.
[0052] 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.
[0053] 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.
[0054] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0055] (1) The present invention classifies and codes the components involved in the municipal road BIM design model according to the provisions of 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 LOD1 level, a series of data converters are developed to define the LOD level, convert and extract the geometric model, and set the basic attributes of the model, so as to realize the generation of the LOD1 level GIS model from the municipal road BIM design model. This method can improve the integrity and accuracy of the integration of LOD1 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.
[0056] (2) Solve the problem of how to convert the municipal road BIM design model into a LOD1 GIS model, improve the integrity and accuracy of the integration of LOD1 GIS data and municipal road BIM data, and promote the informatization and intelligent management of municipal road projects. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] 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.
[0058] Figure 1 It is a schematic diagram of a method for generating a LOD1 level GIS model from a municipal road BIM design model provided by an embodiment of the present invention;
[0059] Figure 2is a schematic diagram of an original model provided by an embodiment of the present invention;
[0060] Figure 3 It is a schematic diagram of a LOD1 level GIS model provided by an embodiment of the present invention;
[0061] Figure 4 It is a schematic diagram of a device for generating a LOD1 level GIS model from a municipal road BIM design model provided by an embodiment of the present invention;
[0062] Figure 5 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] In the first embodiment of the present invention, a method for generating a LOD1 level GIS model from a municipal road BIM design model is provided. Figure 1 As shown, the following steps are included:
[0068] 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;
[0069] 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;
[0070] S3: Reading LOD level: Based on the component elements of the connection component coding, LOD classification rules, and 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;
[0071] S4: Generate IFC models corresponding to different LOD levels: filter LOD level attribute information of LOD level component elements, select component elements with LOD level attribute values of LOD1 to obtain LOD1 level component elements;
[0072] S5: Create and merge triangulated networks: Process the geometric entities of LOD1 level component elements into triangulated meshes to create and merge triangulated networks;
[0073] S6: Extracting road basic alignment: extracting road basic alignment from triangulated network;
[0074] S7: Setting CityGML attributes: setting CityGML attributes according to the road basic line shape to obtain a CityGML model;
[0075] S8: scaling the model and setting the coordinate system: scaling the CityGML model and setting the coordinate system to obtain a CityGML model that completes the coordinate system conversion;
[0076] S9: Generate CityGML file: Generate LOD1 level GIS model from the CityGML model that completes the coordinate system conversion.
[0077] In the embodiment of the present invention, in step S1, by constructing a road IFC file reading module, the original model is as follows: Figure 2 As 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.
[0078] In the embodiment of the present invention, in step S2, multiple FeatureJoinerAndTester modules are constructed, and various component elements and attribute elements output from S1 are input. According to the ifc_property_set{} data of the component element, the extended attribute and extended attribute set data of the component are queried from the attribute element IfcPropertySet, 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 entity and basic attribute data, and outputs various component elements. In step S2, the FeatureJoinerAndTester module is composed of multiple submodules, specifically:
[0079] 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;
[0080] 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;
[0081] 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.
[0082] In the embodiment of the present invention, in step S3, the specific steps are:
[0083] 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;
[0084] 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.
[0085] In the embodiment of the present invention, in step S4, an IFC model corresponding to different LOD levels is generated: a TestFilterOfLod module is constructed, component elements in S302 are input, and component elements with LOD level attribute values of LOD1 are selected for output by filtering their LOD level attribute information.
[0086] In the embodiment of the present invention, in step S5, the specific steps are:
[0087] S501: Construct the Triangulator module, input the LOD1 level component elements in S4, perform triangulation processing on their geometric entities, form triangulation and output;
[0088] S502: Construct a MeshMerger module, input the discrete triangulated mesh generated in S501, aggregate it and output it.
[0089] In the embodiment of the present invention, in step S6, the specific steps are:
[0090] S601: construct a HullReplacer module, input the triangulated network aggregated in S502, reconstruct its geometric shape with convex polygons, form an outer contour and output it;
[0091] S602: Construct a CenterlineReplacer module, input the outer contour generated in S601, extract the centerline from it to form the basic road line shape and output it.
[0092] In the embodiment of the present invention, in step S7, the specific steps are:
[0093] S701: construct the CityGMLGeometrySetter module, input the road basic alignment formed in S602, convert it into a CityGML model and output it;
[0094] S702: Build an AttributeCreator module, input the CityGML model formed in S701, add basic attribute information required by the CityGML model such as "gml_id, gml_name", and output it.
[0095] In the embodiment of the present invention, in step S8, since the units and coordinates of the IFC model and the CityGML model are inconsistent, the CityGML model generated by the conversion needs to be scaled and the coordinate system needs to be set, specifically:
[0096] S801: Build the Scaler module, input the CityGML model formed in S702, set the scaling ratios in the three directions of X, Y, and Z to 0.001, scale and output;
[0097] S802: Construct LocalCoordinateSystemSetter module. Since there is no coordinate system information in the IFC model, the CityGML model formed in S801 also has no coordinate system information. Therefore, the model in S801 is input here, and an independent coordinate system (such as a local coordinate system) is set and then output;
[0098] S803: Construct a CsmapReprojector module, input the model in S802, project it to the geographic coordinate system or projection coordinate system used by GIS, complete the coordinate system conversion and output the CityGML model.
[0099] In the embodiment of the present invention, in step S9, a CityGML file is generated: a RoadOfLod1 writing module is constructed, the CityGML model in S803 is input, a file is written, and a RoadOfLod1.gml file is generated, which is a GIS model of the LOD1 level. Figure 3 The GIS model of LOD1 level is the basic line shape of the road, which is used to express the topological relationship between the location, routing and routes of the road.
[0100] 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.
[0101] See also Figure 4 , Figure 4 The schematic diagram of the structure of the device provided by the embodiment of the present invention, wherein the device 400 may include a road IFC file reading module 401, a component code acquisition module 402, an LOD level reading module 403, an IFC model generation module 404, a triangulation network creation module 405, a road basic linear extraction module 406, a CityGML attribute setting module 407, a model scaling module 408 and a CityGML file generation module 409, wherein:
[0102] The road IFC file reading module 401 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;
[0103] The component code acquisition module 402 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;
[0104] The LOD level reading module 403 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;
[0105] The IFC model generation module 404 is used to filter the LOD level attribute information of the LOD level component elements, and select the component elements with the LOD level attribute value of LOD1 to obtain the LOD1 level component elements;
[0106] The triangulated network creation module 405 is used to process the geometric entities of the LOD1 level component elements into triangulated meshes to create and merge triangulated networks;
[0107] A road basic linear shape extraction module 406 is used to extract the road basic linear shape from the triangulated network;
[0108] The CityGML attribute setting module 407 is used to set the CityGML attributes according to the road basic linear shape to obtain the CityGML model;
[0109] The model scaling module 408 is used to scale the CityGML model and set the coordinate system to obtain a CityGML model that completes the coordinate system conversion;
[0110] The CityGML file generation module 409 is used to generate a GIS model of LOD1 level from the CityGML model that has completed the coordinate system conversion.
[0111] In a third embodiment of the present invention, a computer device is also provided, such as Figure 5 As shown, it shows a schematic diagram of the structure of a computer device involved in an embodiment of the present invention, specifically:
[0112] The computer device may include one or more processing core processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will appreciate that Figure 5 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:
[0113] The processor 501 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 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operation storage medium, user interface and application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0114] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 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 502 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 502 may also include a controller to provide the processor 501 with access to the memory 502.
[0115] The computer device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 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 503 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.
[0116] The computer device may further include an input unit 504, 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.
[0117] 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 501 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby implementing the steps in the above method embodiment.
[0118] 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.
[0119] 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.
[0120] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0121] 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.
[0122] 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.
[0123] The above is a detailed introduction to the method, device, computer equipment and medium for generating LOD1 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 LOD1 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 with LOD level attribute values of LOD1 to obtain the LOD1 level component elements; Perform triangulation processing on the geometric entities of LOD1 level component elements to create and merge triangulated networks; Extract the basic alignment of the road from the triangulated network, set the CityGML attributes based on the basic alignment of the road to obtain a CityGML model, scale the CityGML model and set the coordinate system to obtain a CityGML model that completes the coordinate system conversion; Generate a LOD1 GIS model from the CityGML model that completes the coordinate system conversion.
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 to determine the LOD level of component elements, add LOD level attributes to component elements and output LOD level component elements.
4. The method according to claim 3, characterized in that The processing of the geometric entities of the LOD1 level component elements into triangulated meshes to create and merge triangulated meshes includes: Construct the Triangulator module, input the LOD1 level component elements, perform triangulation processing on the geometric entities of the LOD1 level component elements, form triangulated meshes and output discrete triangulated meshes; Construct the MeshMerger module, input discrete triangulated meshes, aggregate the discrete triangulated meshes and output the aggregated triangulated meshes.
5. The method according to claim 4, characterized in that The method of extracting the basic road line shape from the triangulated network includes: Construct the HullReplacer module, input the aggregated triangulated network, reconstruct the aggregated triangulated network geometry with convex polygons, form the outer contour and output it; Build the CenterlineReplacer module, input the outer contour, and extract the centerline of the outer contour to form the basic line shape of the road.
6. The method according to claim 5, characterized in that The step of setting CityGML attributes according to the road basic linear shape to obtain a CityGML model includes: Construct the CityGMLGeometrySetter module, input the road basic alignment, and convert the road basic alignment into a CityGML model; Build the AttributeCreator module, input the CityGML model, and add the basic attribute information required by the CityGML model.
7. The method according to claim 6, characterized in that The step of scaling the CityGML model and setting the coordinate system to obtain the CityGML model after completing the coordinate system conversion includes: Build the Scaler module, input the CityGML model, and set the scaling ratios in the X, Y, and Z directions for scaling; Build the LocalCoordinateSystemSetter module, input the scaled CityGML model, and set an independent coordinate system; Construct the CsmapReprojector module, input the CityGML model after setting the independent coordinate system, and project it to the geographic coordinate system or projection coordinate system used by GIS, complete the coordinate system conversion and output the CityGML model.
8. A device for generating LOD1 level GIS model from municipal road BIM design model, characterized in that: include: The road 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; The LOD 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 LOD1 to obtain LOD1 level component elements; The triangulation creation module is used to process the geometric entities of LOD1 level component elements into triangulated meshes to create and merge triangulated networks; Road basic alignment extraction module, used to extract road basic alignment from triangulated network; The CityGML attribute setting module is used to set the CityGML attributes from the road basic line shape to obtain the CityGML model; The model scaling module is used to scale the CityGML model and set the coordinate system to obtain a CityGML model that completes the coordinate system conversion; The CityGML file generation module is used to generate a LOD1 level GIS model from a CityGML model that has completed coordinate system conversion.
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.