A data synchronization method, system, terminal and storage medium based on BIM-CIM platform
Through the data synchronization method between the BIM-CIM platforms, the target area location is obtained and converted into coordinate point data, three-dimensional visual data is constructed and building attributes are updated simultaneously, which solves the data synchronization difficulties between the BIM-CIM platforms, and achieves efficient coordination and dynamic synchronization.
Patent Information
- Application Number
- CN202510669763.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-05-23
AI Technical Summary
In the prior art, data flows between BIM-CIM platforms cannot achieve real-time two-way synchronization, resulting in difficulty in data sharing.
By obtaining the target area position based on the CIM platform, inversely compute the target tiles and converting them into coordinate point data, building a terrain plane based on the BIM platform and converting it into three-dimensional visual data, editing building properties and synchronously updating to the BIM platform.
It realizes efficient collaboration between the CIM platform and the BIM middle platform and dynamic synchronization of building data, solves the problem that data flow cannot be synchronized in real time and improves data sharing efficiency.
Smart Images

Figure CN120196684B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data synchronization method, system, terminal and computer-readable storage medium based on a BIM-CIM platform. Background Art
[0002] With the rapid advancement of the construction of new smart cities and national infrastructure, the demand for efficient and accurate urban design and management is increasing. Against this background, the integrated application of Building Information Modeling (BIM) and Geographic Information System (GIS) has become the forefront of urban management innovation. BIM technology has changed the way of designing, building and managing construction projects by providing detailed three-dimensional digital models, enabling project participants to collaborate efficiently in a virtual environment and ensure the accurate transmission and management of information. City Information Modeling (CIM) is based on technologies such as BIM, GIS, and the Internet of Things (IoT). It integrates multi-dimensional and multi-scale information model data and urban perception data such as the city's above-ground and underground, indoor and outdoor, historical, current and future, to build an organic complex of urban information in a three-dimensional digital space.
[0003] However, BIM has the characteristics of large data volume, diverse formats, and rich semantic descriptions of component details. At present, there are still difficulties in achieving collaborative interoperability with BIM through the CIM platform. As a result, when data is shared through the BIM-CIM platform, data flow cannot be synchronized in real time in both directions, which has become a problem that needs to be solved urgently.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention
[0005] The main purpose of the present invention is to provide a data synchronization method, system, terminal and computer-readable storage medium based on the BIM-CIM platform, aiming to solve the problem in the prior art that BIM-CIM data streams cannot be synchronized in real time and in two directions when data is shared through the BIM-CIM platform.
[0006] To achieve the above object, the present invention provides a data synchronization method based on the BIM-CIM platform, the data synchronization method based on the BIM-CIM platform comprising the following steps:
[0007] Based on the CIM platform, the target area position is obtained, the target area position is inversely calculated according to a preset tile arrangement rule to obtain a target tile, and the terrain data of the target tile is converted according to the center point of the target area position to obtain multiple coordinate point data;
[0008] Based on the BIM platform, the coordinate point data are connected to obtain multiple terrain planes, the multiple terrain planes are constructed to obtain a BIM model, and the BIM model is converted according to a preset conversion rule to obtain three-dimensional visualization data;
[0009] Based on the CIM platform, the architectural attributes of the three-dimensional visualization data are edited to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update.
[0010] Optionally, the data synchronization method based on the BIM-CIM platform, wherein the method is based on the CIM platform, obtaining the target area position, performing inverse calculation on the target area position according to a preset tile arrangement rule to obtain the target tile, and converting the terrain data of the target tile according to the center point of the target area position to obtain multiple coordinate point data, specifically includes:
[0011] Based on the CIM platform, a user's selection instruction and geographic data are obtained, and the geographic data is selected according to the selection instruction to obtain the target area location;
[0012] Inversely calculating the position of the target area according to a preset tile arrangement rule to obtain a target tile, and parsing the terrain data of the target tile to obtain terrain information;
[0013] The terrain information is converted according to the center point of the target area position to obtain a plurality of coordinate point data.
[0014] Optionally, the data synchronization method based on the BIM-CIM platform, wherein the inverse calculation of the target area position according to a preset tile arrangement rule to obtain the target tile, and the parsing of the terrain data of the target tile to obtain the terrain information, specifically includes:
[0015] Obtaining coordinate information and tile data of the target area position, performing rectangle calculation on the coordinate information, and obtaining tile row and column numbers of an external matrix;
[0016] Acquire maximum level information in the digital elevation model, and determine a tile range according to the maximum level information and the tile row and column numbers;
[0017] Constructing according to the tile row and column numbers, the maximum level information and the tile range to generate a tile access path;
[0018] The tile data is decoded according to the tile access path to obtain a target tile, and the terrain data of the target tile is parsed to obtain terrain information.
[0019] Optionally, in the data synchronization method based on the BIM-CIM platform, the preset conversion rule includes an octree index rule;
[0020] The converting of the BIM model according to the preset conversion rules to obtain three-dimensional visualization data specifically includes:
[0021] Convert the data of the BIM model into an IFC file according to the octree indexing rule, and extract the IFC file to obtain semantic information and non-semantic information;
[0022] Converting the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files;
[0023] Constructing three-dimensional visualization data according to a plurality of the multi-level tile files;
[0024] The three-dimensional visualization data is used for display on the CIM platform.
[0025] Optionally, in the data synchronization method based on the BIM-CIM platform, the semantic information includes construction relationships, attributes and types, and the non-semantic information includes geometric expressions and coordinate references;
[0026] The converting of the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files specifically includes:
[0027] Converting the construction relationship, the attribute, the type, the geometric expression, and the coordinate reference to obtain a transmission file;
[0028] The IFC file is divided into blocks according to the spatial index of the transmission file to generate multiple multi-level tile files.
[0029] Optionally, in the data synchronization method based on the BIM-CIM platform, the building attributes include size and material;
[0030] The method of editing the building attributes of the three-dimensional visualization data based on the CIM platform to obtain target attributes and sending the target attributes to the BIM platform for synchronous update specifically includes:
[0031] Based on the CIM platform, a correspondence is established between the UID corresponding to the size and the material and the data of the CIM platform to obtain a correspondence table;
[0032] The CIM platform edits the size and the material to obtain target attributes;
[0033] The target attributes are sent to the BIM platform for synchronous update according to the correspondence table.
[0034] Optionally, the data synchronization method based on the BIM-CIM platform, wherein the building attributes of the three-dimensional visualization data are edited based on the CIM platform to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update, further comprising:
[0035] Based on the BIM platform, the size and the material are edited to obtain current target properties;
[0036] Sending the current target attributes to the CIM platform for synchronous update through a preset update mechanism and the corresponding relationship table;
[0037] The preset update mechanism includes a full update mechanism and a component-level dynamic request mechanism.
[0038] In addition, to achieve the above-mentioned purpose, the present invention further provides a data synchronization system based on the BIM-CIM platform, wherein the data synchronization system based on the BIM-CIM platform:
[0039] A coordinate generation module is used to obtain the target area position based on the CIM platform, perform inverse calculation on the target area position according to a preset tile arrangement rule to obtain a target tile, and convert the terrain data of the target tile according to the center point of the target area position to obtain multiple coordinate point data;
[0040] A data conversion module is used to connect the plurality of coordinate point data based on the BIM platform to obtain a plurality of terrain planes, construct the plurality of terrain planes to obtain a BIM model, and convert the BIM model according to preset conversion rules to obtain three-dimensional visualization data;
[0041] The synchronous update module is used to edit the building attributes of the three-dimensional visualization data based on the CIM platform, obtain the first target attribute, and send the first target attribute to the BIM platform for update synchronization.
[0042] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a data synchronization program based on the BIM-CIM platform, and when the data synchronization program based on the BIM-CIM platform is executed by the processor, the steps of the data synchronization method based on the BIM-CIM platform as described above are implemented.
[0043] In the present invention, based on the CIM platform, the target area position is obtained, the target area position is back-calculated according to a preset tile arrangement rule to obtain a target tile, and the terrain data of the target tile is converted according to the center point of the target area position to obtain multiple coordinate point data; based on the BIM platform, the multiple coordinate point data are connected to obtain multiple terrain planes, the multiple terrain planes are constructed to obtain a BIM model, and the BIM model is converted according to a preset conversion rule to obtain three-dimensional visualization data; based on the CIM platform, the building attributes of the three-dimensional visualization data are edited to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update. Through a two-way data transmission mechanism, the present invention achieves efficient collaboration between the CIM platform and the BIM middle platform and dynamic synchronization of building data. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of a preferred embodiment of the data synchronization method based on the BIM-CIM platform of the present invention;
[0045] Figure 2 This is a structural diagram of a preferred embodiment of the data synchronization method based on the BIM-CIM platform of the present invention;
[0046] Figure 3 This is a flow chart of coordinate point data conversion in a preferred embodiment of the data synchronization method based on the BIM-CIM platform of the present invention;
[0047] Figure 4 It is a flowchart of three-dimensional visualization data generation according to a preferred embodiment of the data synchronization method based on the BIM-CIM platform of the present invention;
[0048] Figure 5 This is a structural diagram of a BIM-CIM database according to a preferred embodiment of the data synchronization method based on the BIM-CIM platform of the present invention;
[0049] Figure 6 This is a structural diagram of a preferred embodiment of the data synchronization system based on the BIM-CIM platform of the present invention;
[0050] Figure 7 It is a structural diagram of a preferred embodiment of the terminal of the device of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the present invention more clear and distinct, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0052] Current BIM technology, by providing detailed three-dimensional digital models, has transformed the way building projects are designed, constructed, and managed. This allows project participants to collaborate efficiently in a virtual environment, ensuring accurate information transfer and management. GIS technology, on the other hand, provides macro-level analysis and management of geospatial data, supporting environmental analysis and decision-making. In recent years, the promotion of urban information models (CIMs) has not only driven the deep integration of BIM and GIS data but also provided a new management and operational perspective for city-level engineering projects. CIM, based on technologies such as BIM, GIS, and the Internet of Things (IoT), integrates multi-dimensional and multi-scale information model data, encompassing aboveground and underground, indoor and outdoor, historical, current, and future, along with urban perception data, to construct an organic, three-dimensional digital urban information complex. This integrated application enhances data sharing and interoperability, laying a solid data foundation for refined urban governance. Therefore, a data synchronization method based on the BIM-CIM platform is needed. This method, through a bidirectional data transfer mechanism, enables efficient collaboration and dynamic synchronization of building data between the CIM platform and the BIM middleware, thus addressing the challenges of collaborative modeling and information flow between BIM and CIM.
[0053] The data synchronization method based on the BIM-CIM platform described in the preferred embodiment of the present invention is as follows: Figure 1 and Figure 2 As shown, the data synchronization method based on the BIM-CIM platform includes the following steps:
[0054] Step S10: Based on the CIM platform, the target area position is obtained, the target area position is inversely calculated according to the preset tile arrangement rule to obtain the target tile, and the terrain data of the target tile is converted according to the center point of the target area position to obtain multiple coordinate point data.
[0055] like Figure 3 As shown, step S10 includes:
[0056] Step S11: Based on the CIM platform, obtain the user's selection instruction and geographic data, select the geographic data according to the selection instruction, and obtain the target area location;
[0057] Step S12: inversely calculate the position of the target area according to a preset tile arrangement rule to obtain a target tile, and analyze the terrain data of the target tile to obtain terrain information;
[0058] Step S13: converting the terrain information according to the center point of the target area to obtain a plurality of coordinate point data.
[0059] Specifically, based on the CIM platform, the user's selection instructions and geographic data are obtained, and the geographic data is selected according to the selection instructions to obtain the target area position (determine the selection area, and the user determines the target area position by selecting the area with the mouse; export the terrain data corresponding to the target tile, wherein the target area position is the area selected by the user, and the area will contain a number of tiles (which varies according to the selection range), and the target tile only includes three-dimensional tiles (3DTiles)); the target area position is reversed according to the preset tile arrangement rule to obtain the target tile (the target tile corresponding to the selected area is reversed according to the tile arrangement rule), and the terrain data of the target tile is parsed to obtain terrain information (the terrain data is read and the terrain information contained in the terrain data is parsed); the terrain information is converted according to the center point of the target area position to obtain multiple coordinate point data (the terrain information is converted into coordinate point data (XYZ point data), and the terrain data corresponding to the target tile is exported, wherein X, Y and Z represent the horizontal axis, vertical axis and vertical axis of the coordinate axis respectively).
[0060] like Figure 3 As shown, step S12 includes:
[0061] Step S121: Acquire the coordinate information and tile data of the target area, perform rectangle calculation on the coordinate information, and obtain tile row and column numbers of the circumscribed matrix;
[0062] Step S122: obtaining maximum level information in the digital elevation model, and determining a tile range according to the maximum level information and the tile row and column numbers;
[0063] Step S123: constructing a tile access path according to the tile row and column numbers, the maximum level information, and the tile range;
[0064] Step S124: Decode the tile data according to the tile access path to obtain a target tile, and parse the terrain data of the target tile to obtain terrain information.
[0065] Specifically, the coordinate information and tile data of the target area position are obtained, a rectangle calculation is performed on the coordinate information, and the tile row and column numbers of the external matrix are obtained (before the tile calculation and decoding processing, the coordinates of the selected area need to be extracted and processed, including obtaining the coordinates of the XYZ point data of the selected area, calculating the vertex information of the maximum external rectangle, and solving the corresponding tile row and column numbers, that is, obtaining the tile row and column numbers of the external matrix); the maximum level information in the digital elevation model is obtained, and the tile range is determined according to the maximum level information and the tile row and column numbers (the maximum level information of the local digital elevation model (DEM) is obtained, and the tile range under the maximum level is determined in combination with the tile row and column number information); a tile access path is generated according to the tile row and column numbers, the maximum level information and the tile range (and a tile access path (URL, Uniform URL) is generated in combination with the local DEM maximum level information). ResourceLocator)); decoding the tile data (tile terrain data file) according to the tile access path to obtain a target tile, parsing the terrain data of the target tile to obtain terrain information.
[0066] As an example, a custom data structure is preset, and the coordinate information of the XYZ point data of the selected area, the vertex coordinates of the circumscribed rectangle, the tile row and column numbers, and the URL are stored in the custom data structure. The custom data structure is read, and the tile terrain data file (Terrian, Terrain Data) and its related characteristics (such as decoded geometric information and attribute information) are expanded to finally construct the tile decoding result (target tile).
[0067] In this embodiment, the coordinates of the XYZ point data of the selected area are parsed, the key information such as the rectangular range and the layer, row and column numbers of the tile are extracted and stored, and the tile access path (URL) is generated to complete the tile acquisition and decoding operations. At the same time, the tile coordinates are inversely calculated based on the tile data, and the application characteristics of the tile are expanded. Finally, the center coordinates of the selected area and the tile file data are output to provide support for subsequent processing and rendering.
[0068] Step S20: Based on the BIM platform, connect the plurality of coordinate point data to obtain a plurality of terrain planes, construct the plurality of terrain planes to obtain a BIM model, and convert the BIM model according to a preset conversion rule to obtain three-dimensional visualization data.
[0069] like Figure 4 As shown, step S20 includes:
[0070] Step S21: Based on the BIM platform, connect the plurality of coordinate point data to obtain a plurality of terrain planes, and construct the plurality of terrain planes to obtain a BIM model;
[0071] Step S22: converting the data of the BIM model into an IFC file according to the octree indexing rule, and extracting the IFC file to obtain semantic information and non-semantic information;
[0072] Step S23: converting the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate multiple multi-level tile files;
[0073] Step S24: construct three-dimensional visualization data according to the plurality of multi-level tile files.
[0074] Specifically, the preset conversion rules include octree index rules. Based on the BIM platform, multiple coordinate point data are connected to obtain multiple terrain planes (reading tile terrain files, parsing the horizontal (u) and vertical coordinates (v) and relative height values (h) of multiple coordinate point data, and converting these coordinate point data into specific latitude, longitude and height values through linear interpolation calculation; filtering the parsed XYZ point data, retaining the valid coordinate point data within the selection range, and solving the maximum bounding box (Bbox, Bounding Box) of the selection area, projecting it to the coordinate system, and filtering out the valid vertices within the projection range; calculating the relative coordinates of the filtered vertices according to the coordinates of the center point of the selection range, converting all valid point data into standardized XYZ format point data, and transmitting it to the BIM middle platform for terrain modeling), constructing multiple terrain planes to obtain a BIM model; performing format conversion on the data of the BIM model according to the octree index rule to obtain an IFC file (format conversion is performed on the terrain model and architectural design data, and the model is converted from the IFC file format to a three-dimensional model transmission format (glTF, GL Transmission The method further comprises: extracting the IFC file to obtain semantic information and non-semantic information; converting the semantic information and the non-semantic information to obtain a transmission file (spatial index file); and dividing the IFC file into blocks according to the transmission file to generate multiple multi-level tile files, wherein the three-dimensional visualization data is used for display on the CIM platform.
[0075] As an example, a plurality of the terrain planes are constructed to obtain a BIM model. For example, the tile terrain file is read and parsed, and the u, v, and h data of the vertex are extracted, where u and v represent the horizontal and vertical positions of the vertex in the tile. The specific latitude and longitude of the vertex are calculated by linear interpolation through the longitude and latitude range of the tile (minU to maxU, minV to maxV). h represents the relative height of the vertex. Combined with the minimum and maximum height ranges of the tile, the actual height of the vertex is calculated by linear interpolation. The interpolation formula is as follows:
[0076] ;
[0077] ;
[0078] ;
[0079] Among them, minU is the minimum longitude of the tile, maxU is the maximum longitude of the tile, minV is the minimum latitude of the tile, maxV is the maximum latitude of the tile, minHeight is the minimum height of the tile, and maxHeight is the maximum height of the tile.
[0080] Using the above interpolation formula, the actual latitude, longitude, and altitude of each coordinate are calculated and converted into standard XYZ point data. The parsed XYZ point data is filtered to retain only valid points within the selection range. The maximum bounding rectangle (Bbox) of the selection range is calculated and projected into the coordinate system to filter out the vertices within the projected range. At the same time, the coordinates of the center point of the selection area are calculated, and the relative coordinates of each vertex relative to the center point are calculated:
[0081] Relative abscissa = vertex abscissa - center abscissa;
[0082] Relative ordinate = vertex ordinate - center ordinate;
[0083] Among them, the filtered vertex coordinates and relative coordinates are converted into standardized XYZ point data and transmitted to the BIM middle platform. After receiving these terrain data, the BIM middle platform fits and generates a terrain model, and constructs a curved or gridded terrain foundation to support architectural design modeling. During the modeling process, the BIM middle platform can dynamically adjust terrain parameters (such as slope, height or local terrain characteristics) to optimize the adaptability of architectural design. Furthermore, after parsing the tile terrain file, the vertex information is extracted and converted into standardized XYZ format point data through interpolation calculation. The effective data is screened in combination with the box selection range, and the relative coordinates of each vertex are solved. The processed terrain data is transmitted to the BIM middle platform for dynamic terrain modeling and optimization of architectural design.
[0084] In this embodiment, the terrain model and architectural design data in the BIM platform are converted into three-dimensional visualization data in the 3DTiles format and loaded into the CIM platform for display. Through unified format conversion rules and index organization methods, the terrain model and architectural design data are segmented to generate tile files and index files that comply with the 3DTiles specification, so as to achieve efficient three-dimensional visualization loading and dynamic interaction.
[0085] The step S23 includes:
[0086] Step S231: converting the construction relationship, the attribute, the type, the geometric expression, and the coordinate reference to obtain a transmission file;
[0087] Step S232: The IFC file is divided into blocks according to the spatial index of the transmission file to generate multiple multi-level tile files.
[0088] Specifically, the semantic information includes construction relationships, attributes and types, and the non-semantic information includes geometric expressions and coordinate references. The construction relationships, attributes, types, geometric expressions and coordinate references are converted (after exporting the terrain and building models in the BIM platform to IFC format, use the tools of the IFC open source tool library to parse the IFC file, extract the semantic information (such as component relationships, attributes, types) and non-semantic information (such as geometric expressions and coordinate references) of the model. After completing the extraction of semantic and geometric information, the model data is uniformly converted to glTF format, and the local coordinate system is converted to the terrain. The IFC file is partitioned according to the spatial index of the transmission file to generate multiple multi-level tile files (the octree indexing method is used to partition the model into multiple logical tiles. The index level corresponds to the multiple levels of detail (LOD) of the model. Tile files of different levels are generated according to the spatial range and resolution of each tile. The model data is spatially segmented according to the indexing rules. The binary geometry data files of each tile are output respectively, and the top-level multi-level tile file is generated for tile indexing and loading).
[0089] In this embodiment, if all the data in the previous steps are directly stored as a single glTF file, it will cause too many drawing calls during the loading stage, thereby causing problems such as excessive CPU scheduling pressure and rendering jams. Therefore, after the model is converted into a glTF file, it is necessary to divide the model into blocks based on a unified octree spatial index to generate multi-level tile files. With the guidance of the index file of the multi-level tile file, the CIM platform can efficiently load and dynamically display tiles, ensuring the smoothness and interactivity of three-dimensional visualization.
[0090] Step S30: Based on the CIM platform, the building attributes of the three-dimensional visualization data are edited to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update.
[0091] like Figure 5 As shown, step S30 includes:
[0092] Step S31: Based on the CIM platform, a corresponding relationship is established according to the UID corresponding to the size and the material and the data of the CIM platform to obtain a corresponding relationship table;
[0093] Step S32: the CIM platform edits the size and the material to obtain target attributes;
[0094] Step S33: Send the target attributes to the BIM platform for synchronous update according to the correspondence table.
[0095] Specifically, the building attributes include size and material (BIM building data with a unique identifier (UID, Unique Identifier) is loaded in the CIM platform). Based on the CIM platform, a correspondence is established between the UID corresponding to the size and the material and the data of the CIM platform (a correspondence table between the CIM platform and the BIM middle platform building data is established based on the UID) to obtain a correspondence table; the CIM platform edits the size and the material (the user edits the building attributes in the CIM platform, and after completing the editing, the modified content and the corresponding UID are sent to the BIM middle platform through a response request (POST). After receiving the POST request, the BIM middle platform locates the corresponding building data from the database based on the UID) to obtain the target attribute; the target attribute is sent to the BIM platform according to the correspondence table for synchronous update. Furthermore, the BIM middle platform updates the building data, writes the modified content into the database, and returns the status information of the successful update to the CIM platform.
[0096] In this embodiment, when loading the BIM building model in the CIM platform, each building has a unique UID, which is used to identify the building instance and corresponds to the building database in the BIM middle platform. After the CIM platform is loaded, the user can edit the building properties, such as modifying the name, material, geometric dimensions, functional properties, etc. After the editing is completed, the CIM platform encapsulates the updated content and UID of the building data through a POST request, and sends the modified information to the interface of the BIM middle platform. After receiving the request, the BIM middle platform searches for the corresponding building instance in the building database through the UID and updates its properties. After the update is completed, the BIM middle platform returns the update result to the CIM platform to notify whether the editing operation is successful.
[0097] For example, when the CIM platform loads a building model, it establishes a mapping relationship with the BIM middle-office building database through the UID to ensure the uniqueness of the building data. The user edits the building properties in the CIM platform, such as modifying the building name, material, geometric dimensions, etc. The CIM platform encapsulates the edited properties as a POST request and sends the modified content and UID to the BIM middle-office. After receiving the POST request, the BIM middle-office searches for the corresponding building data in the database according to the UID and updates the properties. After the BIM middle-office completes the data update, it feeds back the update results to the CIM platform to ensure that the modified information is successfully synchronized. When quickly editing or submitting modifications multiple times, in order to avoid performance problems caused by repeated requests, the system deduplicates the POST request and adds it to the request queue when the CIM platform sends the request. After receiving the request, the BIM middle-office determines whether there is a repeated update operation of the UID to avoid repeated database modifications and improve synchronization efficiency.
[0098] Furthermore, after step S30, the step further includes editing the size and the material based on the BIM platform to obtain the current target attributes; through the preset update mechanism and the correspondence table (when loading building components on the CIM platform, the correspondence between the BIM middle platform and the CIM platform is established through the UID), the current target attributes are sent to the CIM platform for synchronous update (editing the model attributes of the building on the BIM platform, and synchronizing to the CIM platform through a full update after completion); wherein, the preset update mechanism includes a full update mechanism and a component-level dynamic request mechanism, that is, clicking on the building component on the CIM platform, obtaining dynamic component attribute information from the BIM middle platform through a GET request, modifying the building data in the CIM platform, submitting the modified attributes to the BIM middle platform through a POST request, and updating the database record of the corresponding component through the UID to realize reverse update of the data; on the basis of full update and dynamic synchronization, a buffer mechanism is adopted to ensure smooth data transmission and synchronization.
[0099] For example, after the BIM platform completes the editing of building attributes, the complete data of the model, such as geometric information, materials, functional attributes, etc., is transmitted to the CIM platform through the full update mechanism. The CIM platform stores these data in the corresponding building subject entity library through UID, and displays the updated model in real time on the visual interface. For complex building components, their unique attribute information (such as construction records, maintenance plans, etc.) is still stored in the BIM middle platform. When the user clicks on the building component on the CIM platform, the CIM platform sends an attribute request to the BIM middle platform through a GET request, which specifically includes request parameters (such as UID). The BIM middle platform locates the corresponding component in the database according to the UID and returns its detailed attribute data for dynamic display on the CIM platform. The properties of building components (such as when adjusting the size or modifying the material) are submitted to the BIM middle platform in the form of a POST request. The request format includes the UID and the updated property content. After receiving the POST request, the BIM middle platform finds the corresponding component through the UID and updates the record in the database to complete the reverse synchronization of the properties. During the fast editing and large-scale synchronization process, in order to prevent display problems caused by data conflicts or delays, the system introduces a buffer mechanism: when the BIM platform is completed, the data is first stored in the buffer zone and then written to the CIM platform after the full update is completed; when the CIM platform submits the modified data through a POST request, the buffer zone temporarily stores the updated content and clears the buffer zone after the BIM middle platform confirms that the update is complete to ensure data consistency.
[0100] In this embodiment, after editing building properties on the BIM platform, the underlying data is synchronized to the CIM platform via a full update mechanism. Simultaneously, a dynamic component-level request mechanism, namely a dynamic GET request, enables real-time loading of component-level properties. The CIM platform also supports reverse modification of BIM mid-stage data via POST requests. This buffering mechanism and layered update strategy optimizes data collaboration efficiency between the BIM and CIM platforms, enabling bidirectional synchronization and dynamic management of building information models, ensuring data integrity and consistency.
[0101] Further, if Figure 6 As shown, based on the above-mentioned data synchronization method based on the BIM-CIM platform, the present invention also provides a data synchronization system based on the BIM-CIM platform, wherein the data synchronization system based on the BIM-CIM platform includes:
[0102] A coordinate generation module 51 is configured to obtain a target area position based on a CIM platform, perform reverse calculations on the target area position according to a preset tile arrangement rule to obtain a target tile, and convert terrain data of the target tile according to a center point of the target area position to obtain multiple coordinate point data.
[0103] A data conversion module 52 is configured to connect the plurality of coordinate point data based on the BIM platform to obtain a plurality of terrain planes, construct the plurality of terrain planes to obtain a BIM model, and convert the BIM model according to a preset conversion rule to obtain three-dimensional visualization data;
[0104] The synchronization update module 53 is used to edit the building attributes of the three-dimensional visualization data based on the CIM platform, obtain the first target attribute, and send the first target attribute to the BIM platform for update synchronization.
[0105] Further, if Figure 7 As shown, based on the above-mentioned data synchronization method and system based on the BIM-CIM platform, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 7 Only some of the components of the terminal are shown, but it should be understood that implementation of all of the shown components is not required, and more or fewer components may be implemented instead.
[0106] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as the terminal's hard drive or memory. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card, etc. equipped on the terminal. Furthermore, the memory 20 may include both the terminal's internal storage unit and an external storage device. The memory 20 is used to store application software installed on the terminal and various types of data, such as program code for the installed terminal. The memory 20 may also be used to temporarily store data that has been output or is about to be output. In one embodiment, the memory 20 stores a data synchronization program 40 based on the BIM-CIM platform. The data synchronization program 40 based on the BIM-CIM platform can be executed by the processor 10, thereby implementing the data synchronization method based on the BIM-CIM platform described in this application.
[0107] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, configured to execute program codes or process data stored in the memory 20, such as executing the data synchronization method based on the BIM-CIM platform.
[0108] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The terminals communicate with each other via a system bus.
[0109] In one embodiment, when the processor 10 executes the data synchronization program 40 based on the BIM-CIM platform in the memory 20, the following steps are implemented:
[0110] Based on the CIM platform, the target area position is obtained, the target area position is inversely calculated according to a preset tile arrangement rule to obtain a target tile, and the terrain data of the target tile is converted according to the center point of the target area position to obtain multiple coordinate point data;
[0111] Based on the BIM platform, the coordinate point data are connected to obtain multiple terrain planes, the multiple terrain planes are constructed to obtain a BIM model, and the BIM model is converted according to a preset conversion rule to obtain three-dimensional visualization data;
[0112] Based on the CIM platform, the building attributes of the three-dimensional visualization data are edited to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update;
[0113] The method of obtaining the target area position based on the CIM platform, performing reverse calculation on the target area position according to a preset tile arrangement rule to obtain the target tile, and converting the terrain data of the target tile according to the center point of the target area position to obtain multiple coordinate point data specifically includes:
[0114] Based on the CIM platform, a user's selection instruction and geographic data are obtained, and the geographic data is selected according to the selection instruction to obtain the target area location;
[0115] Inversely calculating the position of the target area according to a preset tile arrangement rule to obtain a target tile, and parsing the terrain data of the target tile to obtain terrain information;
[0116] Convert the terrain information according to the center point of the target area to obtain multiple coordinate point data;
[0117] The inverse calculation of the target area position according to the preset tile arrangement rule to obtain the target tile, and the analysis of the terrain data of the target tile to obtain the terrain information specifically includes:
[0118] Obtaining coordinate information and tile data of the target area position, performing rectangle calculation on the coordinate information, and obtaining tile row and column numbers of an external matrix;
[0119] Acquire maximum level information in the digital elevation model, and determine a tile range according to the maximum level information and the tile row and column numbers;
[0120] Constructing according to the tile row and column numbers, the maximum level information and the tile range to generate a tile access path;
[0121] The tile data is decoded according to the tile access path to obtain a target tile, and the terrain data of the target tile is parsed to obtain terrain information.
[0122] Wherein, the preset conversion rule includes an octree index rule;
[0123] The converting of the BIM model according to the preset conversion rules to obtain three-dimensional visualization data specifically includes:
[0124] Convert the data of the BIM model into an IFC file according to the octree indexing rule, and extract the IFC file to obtain semantic information and non-semantic information;
[0125] Converting the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files;
[0126] Constructing three-dimensional visualization data according to a plurality of the multi-level tile files;
[0127] The three-dimensional visualization data is used for display on the CIM platform.
[0128] Wherein, the semantic information includes construction relationships, attributes and types, and the non-semantic information includes geometric expressions and coordinate references;
[0129] The converting of the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files specifically includes:
[0130] Converting the construction relationship, the attribute, the type, the geometric expression, and the coordinate reference to obtain a transmission file;
[0131] The IFC file is divided into blocks according to the spatial index of the transmission file to generate multiple multi-level tile files.
[0132] Wherein, the building attributes include size and material;
[0133] The method of editing the building attributes of the three-dimensional visualization data based on the CIM platform to obtain target attributes and sending the target attributes to the BIM platform for synchronous update specifically includes:
[0134] Based on the CIM platform, a correspondence is established between the UID corresponding to the size and the material and the data of the CIM platform to obtain a correspondence table;
[0135] The CIM platform edits the size and the material to obtain target attributes;
[0136] Sending the target attributes to the BIM platform for synchronous update according to the correspondence table;
[0137] The method further includes editing the building attributes of the three-dimensional visualization data based on the CIM platform to obtain target attributes, and sending the target attributes to the BIM platform for synchronous update.
[0138] Based on the BIM platform, the size and the material are edited to obtain current target properties;
[0139] Sending the current target attributes to the CIM platform for synchronous update through a preset update mechanism and the corresponding relationship table;
[0140] The preset update mechanism includes a full update mechanism and a component-level dynamic request mechanism.
[0141] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a data synchronization program based on the BIM-CIM platform, and when the data synchronization program based on the BIM-CIM platform is executed by a processor, the steps of the data synchronization method based on the BIM-CIM platform as described above are implemented.
[0142] In summary, the present invention provides a data synchronization method, system, terminal and storage medium based on the BIM-CIM platform, the method comprising: based on the CIM platform, obtaining the target area position, inversely calculating the target area position according to a preset tile arrangement rule to obtain a target tile, converting the terrain data of the target tile according to the center point of the target area position to obtain a plurality of coordinate point data; based on the BIM platform, connecting the plurality of coordinate point data to obtain a plurality of terrain planes, constructing the plurality of terrain planes to obtain a BIM model, converting the BIM model according to a preset conversion rule to obtain three-dimensional visualization data; based on the CIM platform, editing the building attributes of the three-dimensional visualization data to obtain target attributes, and sending the target attributes to the BIM platform for synchronous update. The present invention realizes efficient collaboration and dynamic synchronization of building data between the CIM platform and the BIM middle platform through a two-way data transmission mechanism.
[0143] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or terminal system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or terminal system comprising the element.
[0144] Of course, those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware (such as a processor, controller, etc.) through a computer program. The program can be stored in a computer-readable storage medium that can be read by a computer. When executed, the program can include the processes in the above-described method embodiments. The computer-readable storage medium can be a memory, a magnetic disk, an optical disk, etc.
[0145] It should be understood that the application of the present invention is not limited to the above examples. For those skilled in the art, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A data synchronization method based on BIM-CIM platform, characterized in that: The data synchronization method based on the BIM-CIM platform includes: Based on the CIM platform, the target area position is obtained, the target area position is inversely calculated according to a preset tile arrangement rule to obtain a target tile, and the terrain data of the target tile is converted according to the center point of the target area position to obtain multiple coordinate point data; Based on the BIM platform, the coordinate point data are connected to obtain multiple terrain planes, the multiple terrain planes are constructed to obtain a BIM model, and the BIM model is converted according to a preset conversion rule to obtain three-dimensional visualization data; Based on the CIM platform, the building attributes of the three-dimensional visualization data are edited to obtain target attributes, and the target attributes are sent to the BIM platform for synchronous update; The method of obtaining the target area position based on the CIM platform, performing reverse calculation on the target area position according to a preset tile arrangement rule to obtain a target tile, and converting the terrain data of the target tile according to the center point of the target area position to obtain multiple coordinate point data specifically includes: Based on the CIM platform, a user's selection instruction and geographic data are obtained, and the geographic data is selected according to the selection instruction to obtain the target area location; Inversely calculating the position of the target area according to a preset tile arrangement rule to obtain a target tile, and parsing the terrain data of the target tile to obtain terrain information; Convert the terrain information according to the center point of the target area to obtain multiple coordinate point data; The step of back-calculating the target area position according to a preset tile arrangement rule to obtain a target tile, and parsing the terrain data of the target tile to obtain terrain information specifically includes: Obtaining coordinate information and tile data of the target area position, performing rectangle calculation on the coordinate information, and obtaining tile row and column numbers of an external matrix; Acquire maximum level information in the digital elevation model, and determine a tile range according to the maximum level information and the tile row and column numbers; Constructing according to the tile row and column numbers, the maximum level information and the tile range to generate a tile access path; The tile data is decoded according to the tile access path to obtain a target tile, and the terrain data of the target tile is parsed to obtain terrain information.
2. The data synchronization method based on the BIM-CIM platform according to claim 1, characterized in that: The preset conversion rules include octree index rules; The converting of the BIM model according to the preset conversion rules to obtain three-dimensional visualization data specifically includes: Convert the data of the BIM model into an IFC file according to the octree indexing rule, and extract the IFC file to obtain semantic information and non-semantic information; Converting the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files; Constructing three-dimensional visualization data according to a plurality of the multi-level tile files; The three-dimensional visualization data is used for display on the CIM platform.
3. The data synchronization method based on the BIM-CIM platform according to claim 2, characterized in that: The semantic information includes construction relationships, attributes and types, and the non-semantic information includes geometric expressions and coordinate references; The converting of the semantic information and the non-semantic information to obtain a transmission file, and performing block processing on the IFC file according to the transmission file to generate a plurality of multi-level tile files specifically includes: Converting the construction relationship, the attribute, the type, the geometric expression, and the coordinate reference to obtain a transmission file; The IFC file is divided into blocks according to the spatial index of the transmission file to generate multiple multi-level tile files.
4. The data synchronization method based on the BIM-CIM platform according to claim 1, characterized in that: Said building attributes include size and material; The method of editing the building attributes of the three-dimensional visualization data based on the CIM platform to obtain target attributes and sending the target attributes to the BIM platform for synchronous update specifically includes: Based on the CIM platform, a correspondence is established between the UID corresponding to the size and the material and the data of the CIM platform to obtain a correspondence table; The CIM platform edits the size and the material to obtain target attributes; The target attributes are sent to the BIM platform for synchronous update according to the correspondence table.
5. The data synchronization method based on the BIM-CIM platform according to claim 4 is characterized in that: The method further includes editing the building attributes of the three-dimensional visualization data based on the CIM platform to obtain target attributes, and sending the target attributes to the BIM platform for synchronous update, and then further including: Based on the BIM platform, the size and the material are edited to obtain current target properties; Sending the current target attributes to the CIM platform for synchronous update through a preset update mechanism and the corresponding relationship table; The preset update mechanism includes a full update mechanism and a component-level dynamic request mechanism.
6. A data synchronization system based on the BIM-CIM platform, characterized in that: The data synchronization system based on the BIM-CIM platform is applied to the data synchronization method based on the BIM-CIM platform according to any one of claims 1 to 5, and the data synchronization system based on the BIM-CIM platform includes: A coordinate generation module is used to obtain the target area position based on the CIM platform, perform inverse calculation on the target area position according to a preset tile arrangement rule to obtain a target tile, and convert the terrain data of the target tile according to the center point of the target area position to obtain multiple coordinate point data; A data conversion module is used to connect the plurality of coordinate point data based on the BIM platform to obtain a plurality of terrain planes, construct the plurality of terrain planes to obtain a BIM model, and convert the BIM model according to preset conversion rules to obtain three-dimensional visualization data; The synchronous update module is used to edit the building attributes of the three-dimensional visualization data based on the CIM platform, obtain the first target attribute, and send the first target attribute to the BIM platform for update synchronization.
7. A terminal, characterized in that: The terminal includes: a memory, a processor, and a data synchronization program based on the BIM-CIM platform stored in the memory and executable on the processor. When the data synchronization program based on the BIM-CIM platform is executed by the processor, the steps of the data synchronization method based on the BIM-CIM platform as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a data synchronization program based on the BIM-CIM platform. When the data synchronization program based on the BIM-CIM platform is executed by the processor, the steps of the data synchronization method based on the BIM-CIM platform according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Collection and lightweight system and method for three-dimensional space data based on CIM (common information model) platform
CN116089555A