GIM analysis method and system based on Cesium platform
By importing and parsing GIM files in the Cesium platform, combined with the rendering ability of the Cesium engine, the problem of insufficient geographical information system on the Unity platform is solved, and efficient web display and application of GIM models is realized, and the application of power grid engineering design and construction is improved. efficiency.
Patent Information
- Application Number
- CN202310843346.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
The Unity platform lacks a complete geographic information system and cannot directly use latitude and longitude to conduct engineering positioning and application, which limits the rendering and application efficiency of GIM files.
Import .gim format files in Cesium platform, load GIM parsing plug-in, decompress files to obtain parameter information, build project-level relationships, use Cesium engine for rendering, and realize the web-side visual display of the GIM model.
Through the merger of analysis and rendering processes, the operation efficiency is improved, and GIM results provide reliable application support for the GIM results in grid engineering design, construction, operation and maintenance.
Smart Images

Figure CN119312432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building information model systems, and in particular to a GIM parsing method based on a Cesium platform. Background Art
[0002] The publication number published by the State Intellectual Property Office on July 2, 2021 is CN113065180A, and the name is "GIM parsing method and device, equipment and storage medium". It proposes a method for rendering and loading GIM parsing results based on the Unity platform, including: obtaining a GIM file; decompressing the GIM file to obtain parameter information; wherein the parameter information includes header information, primitive information and vertex information; obtaining the GIM type according to the header information; constructing an engineering hierarchy relationship according to the GIM specification and the GIM type; traversing the engineering hierarchy relationship, and superimposing the matrix relationship of each level according to the vertex information to obtain the rendering position; adding the primitive information of each level to the rendering position.
[0003] However, Unity is a real-time 3D platform used to create visualization products and build interactive and virtual experiences. It emphasizes the rendering of specific scenes, but lacks a complete geographic information system and cannot directly use longitude and latitude for engineering positioning and engineering applications. Summary of the invention
[0004] In view of the above problems, the present invention provides a GIM parsing method and system based on the Cesium platform.
[0005] The technical solution of the present invention is: a GIM parsing method based on the Cesium platform, comprising the following steps: Step 1): In the Cesium platform, import the .gim format file; Step 2): Load the GIM parsing plug-in in the Cesium engine; Step 3): Decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; Step 4): Get the GIM type based on the header information, build the project hierarchy relationship based on the GIM standard, and traverse the project hierarchy relationship; Step 5): Based on the fixed point information, the matrix relationship of each level is superimposed to obtain the rendering position; Step 6): Add the primitive information of each level at the rendering position; Step 7): Use the Cesium engine for rendering and present the GIM 3D model on the web page.
[0006] In step 3), the GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
[0007] The GIM types include a transformation type and a transmission type.
[0008] When traversing the engineering hierarchy relationship, a multi-branch tree is used to traverse all levels and perform a depth-first search.
[0009] The engineering hierarchy relationship includes: first-level engineering, second-level engineering, third-level engineering and fourth-level equipment system.
[0010] A GIM parsing system based on the Cesium platform, including: Import module, used to import .gim format files in the Cesium platform; Loading module, used to load the GIM parsing plug-in in the Cesium engine; The decompression module is used to decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; A construction module is used to obtain the GIM type according to the header information, build the project hierarchy relationship according to the GIM standard, and traverse the project hierarchy relationship; The superposition module is used to superimpose the matrix relationship of each level according to the fixed point information to obtain the rendering position; Add a module to add primitive information of each level at the rendering position; The rendering module is used to render using the Cesium engine and present the GIM 3D model on the web page.
[0011] The GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
[0012] In the work, the present invention obtains the GIM file, decompresses the GIM file to obtain parameter information, determines the position of the graphic element in the platform geographic system according to various parameter information, and uses the Cesium engine for rendering to realize the visual display of the GIM model on the web page. Through this method, the parsing and conversion of the GIM file until the rendering is combined into one operation, which improves the efficiency of the operation and provides reliable conditions for the in-depth application of GIM results in the design, construction, operation and maintenance of power grid projects. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the following briefly introduces the drawings required for the specific implementation or the prior art description. In the drawings, each part is not necessarily drawn according to the actual scale.
[0014] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0015] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0016] In the description of the present invention, it should be understood that the terms "upper", "lower", "left", "right", "vertical", "horizontal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0017] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0018] The present invention Figure 1 As shown, a GIM parsing method based on the Cesium platform includes the following steps: Step 1): In the Cesium platform, import the .gim format file; Step 2): Load the GIM parsing plug-in in the Cesium engine; Step 3): Decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; Step 4): Get the GIM type based on the header information, build the project hierarchy relationship based on the GIM standard, and traverse the project hierarchy relationship; Step 5): Based on the fixed point information, the matrix relationship of each level is superimposed to obtain the rendering position; Step 6): Add the primitive information of each level at the rendering position; Step 7): Use the Cesium engine for rendering and present the GIM 3D model on the web page.
[0019] In the work, the present invention obtains the GIM file, decompresses the GIM file to obtain parameter information, determines the position of the graphic element in the platform geographic system according to various parameter information, and uses the Cesium engine for rendering to realize the visual display of the GIM model on the web page. Through this method, the parsing and conversion of the GIM file until the rendering is combined into one operation, which improves the efficiency of the operation and provides reliable conditions for the in-depth application of GIM results in the design, construction, operation and maintenance of power grid projects.
[0020] In step 3), the GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
[0021] The GIM types include a transformation type and a transmission type.
[0022] When traversing the engineering hierarchy relationship, a multi-branch tree is used to traverse all levels and perform a depth-first search.
[0023] The engineering hierarchy relationship includes: first-level engineering, second-level engineering, third-level engineering and fourth-level equipment system.
[0024] A GIM parsing system based on the Cesium platform, including: Import module, used to import .gim format files in the Cesium platform; Loading module, used to load the GIM parsing plug-in in the Cesium engine; The decompression module is used to decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; A construction module is used to obtain the GIM type according to the header information, build the project hierarchy relationship according to the GIM standard, and traverse the project hierarchy relationship; The superposition module is used to superimpose the matrix relationship of each level according to the fixed point information to obtain the rendering position; Add a module to add primitive information of each level at the rendering position; The rendering module is used to render using the Cesium engine and present the GIM 3D model on the web page.
[0025] The GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
[0026] The GIM file in the present invention is a result of the digital design of power grid engineering. In the specific application process, it is necessary to truly reflect the engineering construction scene based on a complete map. Cesium is a cross-platform, cross-browser JavaScript library for displaying three-dimensional earth and maps. The GIM parsing method based on the Cesium platform can parse and render .gim format files into the geographic information system to provide support for the application of the results.
Claims
1. A GIM parsing method based on the Cesium platform, characterized in that: The following steps are involved: Step 1): In the Cesium platform, import the .gim format file; Step 2): Load the GIM parsing plug-in in the Cesium engine; Step 3): Decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; Step 4): Get the GIM type based on the header information, build the project hierarchy relationship based on the GIM standard, and traverse the project hierarchy relationship; Step 5): Based on the fixed point information, the matrix relationship of each level is superimposed to obtain the rendering position; Step 6): Add the primitive information of each level at the rendering position; Step 7): Use the Cesium engine for rendering and present the GIM 3D model on the web page.
2. According to a GIM parsing method based on the Cesium platform according to claim 1, it is characterized in that: In step 3), the GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
3. According to a GIM parsing method based on the Cesium platform according to claim 1, it is characterized in that: The GIM types include a transformation type and a transmission type.
4. According to a GIM parsing method based on the Cesium platform according to claim 1, it is characterized in that: When traversing the engineering hierarchy relationship, a multi-branch tree is used to traverse all levels and perform a depth-first search.
5. According to a GIM parsing method based on Cesium platform according to claim 1, it is characterized in that: The engineering hierarchy relationship includes: first-level engineering, second-level engineering, third-level engineering and fourth-level equipment system.
6. A GIM parsing system based on the Cesium platform, characterized in that: include: Import module, used to import .gim format files in the Cesium platform; Loading module, used to load the GIM parsing plug-in in the Cesium engine; The decompression module is used to decompress the GIM file to obtain parameter information, including header information, primitive information and fixed point information; The construction module is used to obtain the GIM type according to the header information, build the project hierarchy relationship according to the GIM standard, and traverse the project hierarchy relationship; The superposition module is used to superimpose the matrix relationship of each level according to the fixed point information to obtain the rendering position; Add a module to add primitive information of each level at the rendering position; The rendering module is used to render using the Cesium engine and present the GIM 3D model on the web page.
7. A GIM parsing system based on the Cesium platform according to claim 1, characterized in that: The GIM file is decompressed to obtain a memory structure tree corresponding to the GIM file, wherein the memory structure tree carries a device group unique identifier and attribute information of the GIM file.
Citation Information
Patent Citations
GIM analysis method and device, equipment and storage medium
CN113065180A