Building information model coordinate system conversion processing method, device, equipment and medium
Patent Information
- Application Number
- CN202610846786.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-12
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2046-06-12
AI Technical Summary
本申请实施例提供了一种建筑信息模型坐标系统转换处理方法、装置、设备及介质,通过对目标建筑信息模型进行三角化,得到第一三角网格模型和设计坐标系统信息,能够消除目标建筑信息模型专业设计软件生产环境及多源异构存储格式的影响,保证了设计坐标信息的一致性,然后通过对第一三角网格模型进行偏移操作得到第二三角网格模型和设计偏移矩阵,并基于设计坐标系统信息的验证结果确定出第二三角网格模型对应的渲染加载矩阵,从而后续可以依据设计偏移矩阵、渲染加载矩阵和第二三角网格模型进行显示处理,实现了设计坐标到地理坐标的转换,满足多场景应用需求。
Smart Images

Figure CN122389184B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lightweight building information modeling technology, and in particular to a method, apparatus, equipment and medium for converting and processing coordinate systems in building information modeling. Background Technology
[0002] Building Information Modeling (BIM) is a digital representation of the physical and functional characteristics of a construction project and its facilities. By integrating geometric, non-geometric, and process management information into the model, it supports decision-making, implementation, and management at all stages of the project's lifecycle. In accordance with standards and specifications, BIM design uses a Cartesian coordinate system (a planar or spatial rectangular coordinate system), while a geographic coordinate system (a spherical coordinate system used to represent real Earth space) is used for a unified and accurate description of Earth's spatial coordinate information.
[0003] In its own application scenarios such as digital review, drawing-model association (design drawings and BIM), construction management and detailed design, Building Information Modeling (BIM) pays more attention to design characteristics and requires consistency and accuracy with production software during information flow. However, when BIM is applied to macro-geographic scenarios such as Geographic Information System (GIS) and City Information Modeling (CIM), it pays more attention to digital simulation characteristics and requires all data to be converted to the same geographic coordinate system for integrated display. Therefore, there is an urgent need for coordinate system conversion processing methods that can take into account both design coordinate system and geographic coordinate system to meet the needs of multi-scenario applications. Summary of the Invention
[0004] In view of the above-mentioned defects or deficiencies in the related technologies, it is desirable to provide a method, device, equipment and medium for converting coordinate systems in Building Information Modeling (BIM) that can realize the conversion from design coordinates to geographic coordinates.
[0005] Firstly, this application provides a method for transforming the coordinate system of a building information model (BIM) coordinate system, the method comprising: The target building information model is parsed into a first triangular mesh model, and the design coordinate system information is obtained; Verify whether the design coordinate system information is a correct geospatial coordinate system, and determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The second triangular mesh model and the design offset matrix corresponding to the second triangular mesh model are obtained by performing an offset operation on the first triangular mesh model. Construct a JSON file to record the design offset matrix, the rendering loading matrix, and the storage path information of the second triangular mesh model.
[0006] Optionally, in some embodiments of this application, the offset amount of the offset operation includes a first direction offset, a second direction offset, and a third direction offset. The first direction, the second direction, and the third direction are mutually perpendicular. The first direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the first direction. The second direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the second direction. The third direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the third direction.
[0007] Optionally, in some embodiments of this application, the design offset matrix is: ; In the above formula, Represents the design offset matrix. This indicates the offset in the first direction. This indicates the offset in the second direction. This represents the offset to the third direction.
[0008] Optionally, in some embodiments of this application, verifying whether the design coordinate system information is a correct geospatial coordinate system includes: Select the design coordinates of any point in the first triangular mesh model and convert the design coordinates into latitude and longitude. If the latitude and longitude conform to the numerical range of the design coordinate system information, then the design coordinate system information is a correct geospatial coordinate system; otherwise, it is not.
[0009] Optionally, in some embodiments of this application, when the design coordinate system information is not a correct geospatial coordinate system, the cross-section at any point on the Earth ellipsoid in the geodetic coordinate system is taken as the XY plane, with the X-axis pointing east, the Y-axis pointing north, and the Z-axis perpendicular to the XY plane, and a northeast celestial coordinate system is constructed away from the Earth's center. The transformation matrix between the geodetic coordinate system and the northeast celestial coordinate system is calculated using the PROJ tool as the rendering loading matrix.
[0010] Optionally, in some embodiments of this application, if the design coordinate system information is a correct geospatial coordinate system, the first triangular mesh model is obtained by using the 3D Harris corner detection algorithm of the PCL tool to obtain a first point set, and the coordinates of each point in the first point set are transformed to the geodetic coordinate system using the PROJ tool to obtain a second point set. Then, the first point set is offset according to the design offset matrix to obtain a third point set, and the closest point iteration calculation is performed on the second point set and the third point set to obtain the rendering loading matrix.
[0011] Optionally, in some embodiments of this application, the rendering loading matrix is: ; In the above formula, This represents the rendering loading matrix. Indicates the rotation value. Represents the offset value, and satisfies , Indicates the point number. This represents the second point set. This represents the third point set.
[0012] Secondly, this application provides a building information model coordinate system conversion processing device, the building information model coordinate system conversion processing device comprising: The parsing module is used to parse the target building information model into a first triangular mesh model and obtain the design coordinate system information; The determination module is used to verify whether the design coordinate system information is a correct geospatial coordinate system, and to determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The second triangular mesh model and the design offset matrix corresponding to the second triangular mesh model are obtained by performing an offset operation on the first triangular mesh model. The recording module is used to construct a JSON file to record the design offset matrix, the rendering loading matrix, and the storage path information of the second triangular mesh model.
[0013] Thirdly, this application provides an electronic device, which includes a processor and a memory. The memory stores at least one instruction, at least one program, a code set, or an instruction set. The instruction, the program, the code set, or the instruction set is loaded and executed by the processor to implement the steps of the building information model coordinate system transformation processing method according to any one of the first aspects.
[0014] Fourthly, this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the building information model coordinate system transformation processing method according to any one of the first aspects.
[0015] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This application provides a method, apparatus, device, and medium for converting coordinate systems in a Building Information Model (BIM) system. By triangulating the target BIM model, a first triangular mesh model and design coordinate system information are obtained. This eliminates the influence of the professional design software production environment and multi-source heterogeneous storage formats of the target BIM model, ensuring the consistency of design coordinate information. Then, by offsetting the first triangular mesh model, a second triangular mesh model and a design offset matrix are obtained. Based on the verification results of the design coordinate system information, the rendering loading matrix corresponding to the second triangular mesh model is determined. Subsequently, display processing can be performed based on the design offset matrix, the rendering loading matrix, and the second triangular mesh model, realizing the conversion from design coordinates to geographic coordinates and meeting the needs of multiple application scenarios. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating a coordinate system transformation processing method for a building information model provided in this application embodiment; Figure 2 A specific example of a target building information model provided in the embodiments of this application; Figure 3 An embodiment provided in this application Figure 2 The image shown is a rendering of the model after it has been loaded into a BIM scene. Figure 4 An embodiment provided in this application Figure 2 The image shown is a rendering of the model after it has been loaded into a GIS scene. Figure 5 A structural block diagram of a coordinate system conversion processing device for building information modeling provided in this application embodiment; Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The following examples illustrate this. Figures 1 to 6 This application provides a detailed description of the building information model coordinate system conversion processing method, apparatus, equipment, and medium provided in the embodiments of this application.
[0021] Please refer to Figure 1 This is a flowchart illustrating a coordinate system transformation method for a building information model provided in this application embodiment. The coordinate system transformation method specifically includes the following steps: S101, the target building information model is parsed into a first triangular mesh model, and the design coordinate system information is obtained.
[0022] It should be noted that various Building Information Modeling (BIM) design platforms can parse the target BIM model using their own tools or secondary development interfaces. For example, the Bentley platform's Micro Station Connect Edition Update 16 tool can be used to parse the target BIM model. Figure 2 The inlet and outlet design model shown is analyzed as a first triangular mesh model in fbx format, and its design coordinate system adopts the projected coordinate system CGCS2000 / 3-degree Gauss-Kruger CM 108E.
[0023] S102, verify whether the design coordinate system information is a correct geospatial coordinate system, and determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The design offset matrix corresponding to the second triangular mesh model is obtained by offsetting the first triangular mesh model.
[0024] In some embodiments of this application, the offset amount of the offset operation includes a first direction offset, a second direction offset, and a third direction offset. The first direction, second direction, and third direction are mutually perpendicular. The first direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model along the first direction. The second direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model along the second direction. The third direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model along the third direction. For example, the first direction is... Direction, the second direction is Direction, and third-party direction Direction is calculated by traversing all vertices in the first triangular mesh model to determine the maximum coordinate value. minimum coordinates For example, all vertices The maximum value in the coordinates is All vertices The minimum value in the coordinates is And so on, until the coordinates of the center point are obtained. , This is the offset in the first direction. This is the offset in the second direction. This is the third-party offset, i.e.: (1) Furthermore, an offset operation is performed on all vertices in the first triangular mesh model based on the center point, i.e., vertex offset. The corresponding offset coordinates are Thus, the second triangular mesh model and its corresponding design offset matrix are obtained: (2) (3) In equation (3), Represents the design offset matrix. This indicates the offset in the first direction. This indicates the offset in the second direction. This represents the offset to the third direction. (Still using...) Figure 2 Taking the inlet / outlet design model shown as an example, its design offset matrix is: (4) In some embodiments of this application, when verifying whether the design coordinate system information is a correct geospatial coordinate system, the design coordinates of any point in the first triangular mesh model can be selected and converted into latitude and longitude. If the latitude and longitude conform to the numerical range of the design coordinate system information, then the design coordinate system information is a correct geospatial coordinate system; otherwise, it is not. For example, by entering the design coordinates of any point on the EPSG official website, its latitude and longitude are obtained as (108.69, 31.14), which conforms to the numerical range of the projected coordinate system CGCS2000 / 3-degree Gauss-Kruger CM 108E. Alternatively, ArcGIS tools or PROJ tools can also be used for verification.
[0025] Furthermore, when the design coordinate system information is not a correct geospatial coordinate system, the tangent plane at any point on the Earth's ellipsoid in a geodetic coordinate system (such as China Geodetic Coordinate System 2000, CGCS2000) is used as the XY plane, with the X-axis pointing east, the Y-axis pointing north, and the Z-axis perpendicular to the XY plane. A northeast-sky coordinate system is constructed away from the Earth's center. The transformation matrix between the geodetic coordinate system and the northeast-sky coordinate system is calculated using the PROJ tool (an open-source geospatial coordinate calculation library, version 9.4) and used as the rendering loading matrix. Conversely, when the design coordinate system information is a correct geospatial coordinate system, the first point set is obtained by using the 3D Harris corner detection algorithm of the PCL tool (an open-source point cloud library, version 1.15.1) on the first triangular mesh model. The aforementioned FBX format file contains mesh vertices and their normal vectors. The PROJ tool is used to transform the coordinates of each point in the first point set to a geodetic coordinate system (e.g., CGCS2000) to obtain the second point set. Then, the first point set is offset according to the designed offset matrix to obtain the third point set. The rendering loading matrix is obtained by performing nearest-point iteration calculations on the second and third point sets. This involves initial matching according to the nearest-point rule, calculating rotations and offsets, updating the original point cloud using the calculated rotations and offsets, and repeating the above steps. The convergence condition for the iteration is whether the original point cloud and the updated point cloud are sufficiently close, for example, if the average distance between the point clouds is less than a preset threshold, or if the preset maximum number of iterations has been reached. Then, the rendering loading matrix is: (5) In equation (5), This represents the rendering loading matrix. Indicates the rotation value. Represents the offset value, and satisfies , Indicates the point number. This represents the second point set. This represents the third point set. It should be noted that... The calculation result should be in a right-handed coordinate system. If the calculation result is in a left-handed coordinate system, it should be converted to a right-handed coordinate system before applying the rendering loading matrix of equation (5). With right-handed coordinate system The relationship is , Let this be a diagonal matrix with values... Still with Figure 2 Taking the inlet / outlet design model shown as an example, its rendering loading matrix is: (6) S103, construct a JSON file to record the design offset matrix, rendering loading matrix, and storage path information of the second triangular mesh model.
[0026] In some embodiments of this application, it is still referred to as Figure 2 Taking the inlet / outlet design model shown as an example, for instance, reading a JSON file in a BIM scenario to obtain... Figure 3 The loading effect shown is similar to reading the JSON file in a GIS scene and obtaining... Figure 4 The loading effect shown demonstrates that, while ensuring consistency in design coordinates, it also satisfies the requirement for accurate application under other geographic coordinate systems.
[0027] The Building Information Model (BIM) coordinate system conversion processing method provided in this application triangulates the target BIM model to obtain a first triangular mesh model and design coordinate system information. This eliminates the influence of the target BIM model's professional design software production environment and multi-source heterogeneous storage formats, ensuring the consistency of design coordinate information. Then, by performing an offset operation on the first triangular mesh model, a second triangular mesh model and a design offset matrix are obtained. Based on the verification results of the design coordinate system information, the rendering loading matrix corresponding to the second triangular mesh model is determined. Subsequently, display processing can be performed based on the design offset matrix, the rendering loading matrix, and the second triangular mesh model, realizing the conversion from design coordinates to geographic coordinates and meeting the needs of multiple application scenarios.
[0028] Based on the foregoing embodiments, this application provides a building information model coordinate system conversion processing device 100. This building information model coordinate system conversion processing device 100 can be applied to… Figures 1 to 4 In the corresponding embodiment of the building information model coordinate system transformation processing method, please refer to... Figure 5 The building information model coordinate system conversion processing device 100 includes: The parsing module 101 is used to parse the target building information model into a first triangular mesh model and obtain the design coordinate system information; The determination module 102 is used to verify whether the design coordinate system information is a correct geospatial coordinate system, and to determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The design offset matrix corresponding to the second triangular mesh model is obtained by performing an offset operation on the first triangular mesh model. The recording module 103 is used to construct a JSON file to record the design offset matrix, rendering loading matrix, and storage path information of the second triangular mesh model.
[0029] Optionally, in some embodiments of this application, the offset amount of the offset operation includes a first direction offset, a second direction offset, and a third direction offset. The first direction, the second direction, and the third direction are mutually perpendicular. The first direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the first direction. The second direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the second direction. The third direction offset is the average of the maximum and minimum coordinate values of all vertices in the first triangular mesh model in the third direction.
[0030] Optionally, in some embodiments of this application, the offset matrix is designed as follows: ; In the above formula, Represents the design offset matrix. This indicates the offset in the first direction. This indicates the offset in the second direction. This represents the offset to the third direction.
[0031] Optionally, in some embodiments of this application, the determining module 102 is specifically used to select the design coordinates of any point in the first triangular mesh model and convert the design coordinates into latitude and longitude. If the latitude and longitude conform to the numerical range of the design coordinate system information, then the design coordinate system information is a correct geospatial coordinate system; otherwise, it is not.
[0032] Optionally, in some embodiments of this application, the determining module 102 is specifically used to construct a northeast celestial coordinate system when the design coordinate system information is not a correct geospatial coordinate system. The tangent at any point on the Earth ellipsoid in the geodetic coordinate system is taken as the XY plane, with the X-axis pointing east, the Y-axis pointing north, and the Z-axis perpendicular to the XY plane, and far from the Earth's center. The transformation matrix between the geodetic coordinate system and the northeast celestial coordinate system is calculated using the PROJ tool as the rendering loading matrix.
[0033] Optionally, in some embodiments of this application, the determining module 102 is specifically used to obtain a first point set by using the 3D Harris corner detection algorithm of the PCL tool on the first triangular mesh model when the design coordinate system information is a correct geospatial coordinate system, and to transform the coordinates of each point in the first point set to the geodetic coordinate system using the PROJ tool to obtain a second point set, then offsetting the first point set according to the design offset matrix to obtain a third point set, and performing nearest point iteration calculation on the second point set and the third point set to obtain a rendering loading matrix.
[0034] Optionally, in some embodiments of this application, the rendering loading matrix is: ; In the above formula, This represents the rendering loading matrix. Indicates the rotation value. Represents the offset value, and satisfies , Indicates the point number. This represents the second point set. This represents the third point set.
[0035] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0036] The Building Information Model (BIM) coordinate system conversion processing device provided in this application triangulates the target BIM model to obtain a first triangular mesh model and design coordinate system information. This eliminates the influence of the target BIM model's professional design software production environment and multi-source heterogeneous storage formats, ensuring the consistency of design coordinate information. Then, by performing an offset operation on the first triangular mesh model, a second triangular mesh model and a design offset matrix are obtained. Based on the verification results of the design coordinate system information, the rendering loading matrix corresponding to the second triangular mesh model is determined. Subsequently, display processing can be performed based on the design offset matrix, the rendering loading matrix, and the second triangular mesh model, realizing the conversion from design coordinates to geographic coordinates and meeting the needs of multiple application scenarios.
[0037] Based on the foregoing embodiments, this application provides an electronic device. Please refer to... Figure 6 The electronic device 200 may include a processor 201 and a memory 202. The memory 202 stores at least one instruction, at least one program, code set, or instruction set, which is loaded and executed by the processor 201 to implement [the desired functionality]. Figures 1 to 4 The steps of the coordinate system transformation processing method for the building information model in the corresponding embodiment.
[0038] In another aspect, embodiments of this application provide a computer-readable storage medium for storing program code for executing the aforementioned... Figures 1 to 4 Any implementation of the coordinate system transformation processing method for the building information model in the corresponding embodiment.
[0039] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0040] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed between each other can be through some interfaces, indirect coupling or communication connection between devices or modules, and can be electrical, mechanical, or other forms. Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0041] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more units can be integrated into one module. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0042] Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the building information model coordinate system transformation processing method of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0043] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0044] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for transforming coordinate systems in Building Information Modeling (BIM), characterized in that, The building information model coordinate system transformation processing method includes: The target building information model is parsed into a first triangular mesh model, and the design coordinate system information is obtained; Verify whether the design coordinate system information is a correct geospatial coordinate system, and determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The second triangular mesh model and the design offset matrix corresponding to the second triangular mesh model are obtained by performing an offset operation on the first triangular mesh model. Construct a JSON file to record the design offset matrix, the rendering loading matrix, and the storage path information of the second triangular mesh model; The step of verifying whether the design coordinate system information is a correct geospatial coordinate system includes: selecting the design coordinates of any point in the first triangular grid model and converting the design coordinates into latitude and longitude. If the latitude and longitude conform to the numerical range of the design coordinate system information, then the design coordinate system information is a correct geospatial coordinate system; otherwise, it is not. If the design coordinate system information is a correct geospatial coordinate system, the first point set is obtained by using the 3D Harris corner detection algorithm of the PCL tool on the first triangular mesh model. Then, the coordinates of each point in the first point set are transformed to the geodetic coordinate system using the PROJ tool to obtain the second point set. After that, the first point set is offset according to the design offset matrix to obtain the third point set. Finally, the nearest point iteration calculation is performed on the second point set and the third point set to obtain the rendering loading matrix. The rendering loading matrix is: ; In the above formula, This represents the rendering loading matrix. Indicates the rotation value. Represents the offset value, and satisfies , Indicates the point number. This represents the second point set. This represents the third point set.
2. The coordinate system transformation processing method for Building Information Modeling according to claim 1, characterized in that, The offset operation includes a first direction offset, a second direction offset, and a third direction offset. The first direction, the second direction, and the third direction are mutually perpendicular. The first direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model in the first direction. The second direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model in the second direction. The third direction offset is the average of the maximum and minimum coordinates of all vertices in the first triangular mesh model in the third direction.
3. The coordinate system transformation processing method for Building Information Modeling according to claim 2, characterized in that, The design offset matrix is: ; In the above formula, Represents the design offset matrix. This indicates the offset in the first direction. This indicates the offset in the second direction. This represents the offset to the third direction.
4. The coordinate system transformation processing method for Building Information Modeling according to claim 1, characterized in that, If the design coordinate system information is not a correct geospatial coordinate system, the cross-section at any point on the Earth ellipsoid in the geodetic coordinate system is taken as the XY plane, with the X-axis pointing east, the Y-axis pointing north, and the Z-axis perpendicular to the XY plane, and a northeast celestial coordinate system is constructed away from the Earth's center. The transformation matrix between the geodetic coordinate system and the northeast celestial coordinate system is calculated using the PROJ tool and used as the rendering loading matrix.
5. A coordinate system conversion and processing device for Building Information Modeling (BIM), characterized in that, The building information model coordinate system transformation processing device includes: The parsing module is used to parse the target building information model into a first triangular mesh model and obtain the design coordinate system information; The determination module is used to verify whether the design coordinate system information is a correct geospatial coordinate system, and to determine the rendering loading matrix corresponding to the second triangular mesh model based on the verification result. The second triangular mesh model and the design offset matrix corresponding to the second triangular mesh model are obtained by performing an offset operation on the first triangular mesh model. The recording module is used to construct a JSON file to record the design offset matrix, the rendering loading matrix, and the storage path information of the second triangular mesh model; Specifically, the determining module is used to select the design coordinates of any point in the first triangular mesh model and convert the design coordinates into latitude and longitude. If the latitude and longitude conform to the numerical range of the design coordinate system information, then the design coordinate system information is a correct geospatial coordinate system; otherwise, it is not. Furthermore, if the design coordinate system information is a correct geospatial coordinate system, the first triangular mesh model is processed using the 3D Harris corner detection algorithm of the PCL tool to obtain a first point set. The coordinates of each point in the first point set are then converted to a geodetic coordinate system using the PROJ tool to obtain a second point set. The first point set is then offset according to the design offset matrix to obtain a third point set. Finally, the closest point iteration calculation is performed on the second point set and the third point set to obtain the rendering loading matrix. The rendering loading matrix is: ; In the above formula, This represents the rendering loading matrix. Indicates the rotation value. Represents the offset value, and satisfies , Indicates the point number. This represents the second point set. This represents the third point set.
6. An electronic device, characterized in that, The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the instruction, program, code set, or instruction set is loaded and executed by the processor to implement the steps of the building information model coordinate system transformation processing method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the building information model coordinate system transformation processing method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Building information three-dimensional scene rendering positioning method and system and medium
CN115496847A
Intelligent method and system for importing BIM model into rendering engine in urban rail engineering
CN115618478A