Storage method, device, equipment and storage medium for three-dimensional building data
By analyzing and encapsulating three-dimensional building data and storing it in relational and non-relational databases, the problem of incomplete data in the three-dimensional drawing inspection process is solved, and the high-fidelity storage and query performance of data is improved.
Patent Information
- Application Number
- CN202111423179.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-11-26
AI Technical Summary
When existing intelligent drawing review software stores and querys three-dimensional architectural drawing inspection process data, due to the limitations of storage space and query performance, it is difficult to store inspection data results in high fidelity, which often leads to incomplete data and structural breakage.
By obtaining three-dimensional building data, using preset analysis algorithms for analysis and packaging processing, the overall building data, building component data and mapping relationship data are generated, and the building component data is stored in the mongoDB database, and the overall building data and mapping relationship data are stored in the In MYSQL database, ensure data integrity and queryability.
The integrity of the data in the three-dimensional drawing inspection process is realized, the problems of data incompleteness and structural surface breakage are solved, and the performance of data storage and query is improved.
Smart Images

Figure CN114564542B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data storage, and in particular to a storage method, device, equipment and storage medium for three-dimensional building data. Background Art
[0002] Three-dimensional architectural data is commonly used in the current construction field. It is used to save various parameters and spatial relationships of architectural design. Compared with two-dimensional traditional drawings, it is more intuitive and more conducive to modifying various details of the building. With the development of the construction industry, the inspection of three-dimensional architectural drawings has become more frequent. In the environment of artificial intelligence, intelligent drawing review has emerged to help people check repeated and error-prone points in three-dimensional drawings, improve the quality of drawing inspection, and save labor costs.
[0003] The metadata definition in the existing intelligent drawing review software is to store the drawing review result data through a combination of relational database and non-relational database, and make some trade-offs in data volume in pursuit of performance.
[0004] However, as 3D data continues to grow in detail and more and more interrelated data is generated, traditional relational and non-relational databases are facing bottlenecks in their applications. The metadata definitions in existing intelligent drawing review software are limited by storage space and query performance, making it difficult to store the inspection data results generated during the inspection process with high fidelity, often resulting in loss of details and structural damage. Therefore, a technical solution is needed to solve the problem of incomplete data in the current 3D drawing inspection process. Summary of the invention
[0005] The main purpose of the present invention is to solve the technical problem of incomplete data in the three-dimensional drawing inspection process.
[0006] A first aspect of the present invention provides a method for storing three-dimensional building data, comprising the steps of:
[0007] Acquire three-dimensional building data to be stored;
[0008] According to a preset analysis algorithm, the three-dimensional building data is analyzed and packaged to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data;
[0009] The building component data is stored in a mongoDB database, and the overall building data and the mapping relationship data are stored in a MYSQL database;
[0010] The mapping relationship data is transmitted to an external port for retrieving the stored three-dimensional building data.
[0011] Optionally, in a first implementation of the first aspect of the present invention, after transmitting the mapping relationship data to an external port for retrieving stored three-dimensional building data, the method further includes:
[0012] Receiving a read instruction, and analyzing the overall building identification corresponding to the read instruction;
[0013] In the MYSQL database, read the building overall data corresponding to the building overall identification, and read the mapping relationship data corresponding to the building overall data;
[0014] According to the mapping relationship data, the building component data corresponding to the overall building data is captured from the mongoDB database;
[0015] According to the mapping relationship data, the overall building data and the building component data corresponding to the overall building data are transmitted to the external port for viewing the three-dimensional building data.
[0016] Optionally, in a second implementation of the first aspect of the present invention, the analyzing and packaging the three-dimensional building data according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data includes:
[0017] Setting identification for the three-dimensional building data to generate overall building data;
[0018] Analyzing the composition of the three-dimensional building data, setting identifiers for components in the three-dimensional building data, and generating building component data;
[0019] Based on the mapping relationship between the building component data and the building overall data, mapping relationship data is generated.
[0020] Optionally, in a third implementation of the first aspect of the present invention, analyzing the composition of the three-dimensional building data, setting identifiers for components in the three-dimensional building data, and generating building component data includes:
[0021] Traversing all the smallest unit files of the three-dimensional building data;
[0022] An identifier is set for each of the minimum unit files in turn, and each of the minimum unit files is encapsulated as overall data to generate building component data.
[0023] Optionally, in a fourth implementation of the first aspect of the present invention, the building component data includes: building component entity data, building component identification data, and storing the building component data in a mongoDB database includes:
[0024] The building component identification data is stored in a mongoDB database.
[0025] Optionally, in a fifth implementation of the first aspect of the present invention, the overall building data includes: overall building entity data, overall building identification data, and storing the overall building data and the mapping relationship data in a MYSQL database includes:
[0026] The building overall identification data and the mapping relationship data are stored in a MYSQL database.
[0027] Optionally, in a sixth implementation of the first aspect of the present invention, after transmitting the mapping relationship data to an external port for retrieving stored three-dimensional building data, the method further includes:
[0028] receiving a component extension instruction, wherein the component extension instruction includes: component extension entity data;
[0029] Setting an identifier for the component extension entity data, and encapsulating the component extension entity data into integral data to generate component extension data;
[0030] According to the component extension data, the overall building data and the mapping relationship data are updated to obtain new overall building data and new mapping relationship data.
[0031] A second aspect of the present invention provides a storage device for three-dimensional building data, the storage device for three-dimensional building data comprising:
[0032] An acquisition module, used for acquiring three-dimensional building data to be stored;
[0033] An analysis and packaging module is used to analyze and package the three-dimensional building data according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data;
[0034] A storage module, used to store the building component data in a mongoDB database, and store the overall building data and the mapping relationship data in a MYSQL database;
[0035] The transmission module is used to transmit the mapping relationship data to the external port for retrieving the stored three-dimensional building data.
[0036] A third aspect of the present invention provides a storage device for three-dimensional building data, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the storage device for three-dimensional building data executes the above-mentioned three-dimensional building data storage method.
[0037] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for storing three-dimensional building data.
[0038] In the embodiment of the present invention, by saving the basic data of the entire inspection process of the drawing file in the service based on the original relational database and the non-relational database, the integrity of the drawing inspection process data is ensured, and the problem of incomplete three-dimensional drawing inspection process data is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of an embodiment of a method for storing three-dimensional building data in an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of an embodiment of a storage device for three-dimensional building data in an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of another embodiment of a storage device for three-dimensional building data according to an embodiment of the present invention;
[0042] Figure 4 Schematic diagram of an embodiment of a storage device for three-dimensional building data in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The embodiments of the present invention provide a method, device, equipment and storage medium for storing three-dimensional building data.
[0044] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0045] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of a method for storing three-dimensional building data in an embodiment of the present invention includes:
[0046] 101. Obtain three-dimensional building data to be stored;
[0047] In this embodiment, the three-dimensional building data may be existing three-dimensional construction data such as STP, CGR, DWG, DGN, PLN, VWX, and RVT.
[0048] 102. Analyze and encapsulate the three-dimensional building data according to a preset analysis algorithm to obtain overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: mapping relationship data between the building component data and the overall building data;
[0049] In this embodiment, the three-dimensional building data is analyzed, and then an overall identification is set for the three-dimensional building data to obtain the overall building data. The overall building data here includes both the entity data of the three-dimensional building data and the identification data. An identification symbol is assigned to the three-dimensional building data to confirm the uniqueness of the three-dimensional building data, and each building component such as door, window, floor and other component resources existing in the three-dimensional building data is assigned an identification symbol one by one, and the components in the three-dimensional building data are located by symbols, and then based on the association relationship between the components and the overall building data, the upper and lower relationships and spatial positions of the components in the overall building data are used as mapping relationship data.
[0050] Furthermore, the following steps may be performed at 102:
[0051] 1021. Setting identification for three-dimensional building data to generate overall building data;
[0052] 1022. Analyze the composition of the three-dimensional building data, set identifiers for components in the three-dimensional building data, and generate building component data;
[0053] 1023. Generate mapping relationship data based on the mapping relationship between the building component data and the building overall data.
[0054] In steps 1021-1023, the three-dimensional building data is identified as a whole, and then the three-dimensional building data is analyzed in turn, and each building component such as door, window, floor and other component resources are assigned identification symbols one by one to obtain building component data. Then, based on the association relationship between the component and the overall building data, the hierarchical relationship and spatial position of the component in the overall building data are used as mapping relationship data.
[0055] Furthermore, the following steps may be performed at 1022:
[0056] 10221. Traverse all the smallest unit files of 3D building data;
[0057] 10222. Set an identifier for each minimum unit file in turn, and encapsulate each minimum unit file into overall data to generate building component data.
[0058] In steps 10221-10222, the minimum metadata range of the 3D building data is analyzed to ensure that the result set of each piece of data can represent a sub-process of an inspection, and the combination of all the minimum metadata can trace back the complete inspection record of the drawing. Therefore, when defining metadata, it is necessary to record the mapping relationship between the building identification of the inspected drawing, the inspection rule identification and the data, so as to achieve data simplification on the basis of data integrity. The metadata result set generated during the inspection process is encapsulated into a data file and stored separately.
[0059] 103. Store the building component data in the mongoDB database, and store the overall building data and mapping relationship data in the MYSQL database;
[0060] In this embodiment, the building component data is stored in a mongoDB database, which is a non-relational database and storing the mapping relationship may cause distortion. The overall building data and the mapping relationship data are stored in a MYSQL database, which is a relational database and storing the mapping relationship can speed up the mapping relationship calculation.
[0061] Furthermore, the building component data in step 103 includes: building component entity data, building component identification data, and storing the building component data in the mongoDB database includes:
[0062] 1031. Store the building component identification data in a mongoDB database.
[0063] In step 1031, the building component data may include building component entity data and building component identification data. The building component entity data may be stored locally, while the identification may be stored in a mongoDB database, thereby reducing the amount of stored data and increasing the speed of calling out component data.
[0064] Furthermore, in step 103, the overall building data includes: overall building entity data, overall building identification data, and storing the overall building data and mapping relationship data in the MYSQL database includes:
[0065] 1032. Store the overall building identification data and mapping relationship data in the MYSQL database.
[0066] In step 1032, the overall building data includes overall building entity data and overall building identification data. The overall building data can be stored locally, and the identification storage and mapping relationship data can be stored in a MYSQL database.
[0067] 104. Transmit the mapping relationship data to the external port for retrieving the stored three-dimensional building data.
[0068] In this embodiment, the mapping relationship data is transmitted in the external port, and the mapping relationship data can be used as an identification symbol provided to the outside. When retrieving data, matching judgment is performed based on the retrieved data, and data is retrieved from the MYSQL database and the mongoDB database.
[0069] Furthermore, after step 104, the following steps may be performed:
[0070] 1041. Receive a reading instruction and analyze the overall building identification corresponding to the reading instruction;
[0071] 1042. In the MYSQL database, read the building overall data corresponding to the building overall identification, and read the mapping relationship data corresponding to the building overall data;
[0072] 1043. According to the mapping relationship data, the building component data corresponding to the overall building data is captured from the mongoDB database;
[0073] 1044. According to the mapping relationship data, the overall building data and the building component data corresponding to the overall building data are transmitted to the external port for viewing the three-dimensional building data.
[0074] In steps 1041-1044, the read instruction is an instruction that the external port needs to retrieve data. The read instruction determines the overall building identification, and retrieves the overall building data and mapping relationship data in the MYSQL database based on the overall building identification. Then, based on the mapping relationship data, the building component data is captured from the mongoDB database. The obtained data is transmitted to the external port to ensure that the external viewing is fast and accurate.
[0075] Furthermore, after step 104, the following steps may be performed:
[0076] 1045. Receive a component extension instruction, wherein the component extension instruction includes: component extension entity data;
[0077] 1046. Setting an identifier for component extension entity data, and encapsulating the component extension entity data into integral data to generate component extension data;
[0078] 1047. According to the component extension data, the overall building data and mapping relationship data are updated to obtain new overall building data and new mapping relationship data.
[0079] In steps 1045-1047, the extended instruction component has identification data, component entity data, and extended entity data, and an identification is set for the component extended data. Then the overall data is encapsulated to form the component extended data. The component extended data is added to the building overall data, and the mapping relationship is added to generate new building overall data and new mapping relationship data.
[0080] In the embodiment of the present invention, by saving the basic data of the entire inspection process of the drawing file in the service based on the original relational database and the non-relational database, the integrity of the drawing inspection process data is ensured, and the problem of incomplete three-dimensional drawing inspection process data is solved.
[0081] The above describes the storage method of the three-dimensional building data in the embodiment of the present invention. The following describes the storage device of the three-dimensional building data in the embodiment of the present invention. Figure 2 , an embodiment of a storage device for three-dimensional building data in an embodiment of the present invention includes:
[0082] An acquisition module 201 is used to acquire three-dimensional building data to be stored;
[0083] The analysis and packaging module 202 is used to analyze and package the three-dimensional building data according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data;
[0084] Storage module 203, used to store the building component data in a mongoDB database, and store the building overall data and the mapping relationship data in a MYSQL database;
[0085] The transmission module 204 is used to transmit the mapping relationship data to the external port for retrieving the stored three-dimensional building data.
[0086] In the embodiment of the present invention, by saving the basic data of the entire inspection process of the drawing file in the service based on the original relational database and the non-relational database, the integrity of the drawing inspection process data is ensured, and the problem of incomplete three-dimensional drawing inspection process data is solved.
[0087] See also Figure 3 Another embodiment of the storage device for three-dimensional building data in the embodiment of the present invention includes:
[0088] An acquisition module 201 is used to acquire three-dimensional building data to be stored;
[0089] The analysis and packaging module 202 is used to analyze and package the three-dimensional building data according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data;
[0090] Storage module 203, used to store the building component data in a mongoDB database, and store the building overall data and the mapping relationship data in a MYSQL database;
[0091] The transmission module 204 is used to transmit the mapping relationship data to the external port for retrieving the stored three-dimensional building data.
[0092] Wherein, the analysis and packaging module 202 includes:
[0093] The overall generating unit 2021 is used to generate overall building data by setting identifiers for the three-dimensional building data;
[0094] A component generating unit 2022, configured to analyze the composition of the three-dimensional building data, set identifiers for components in the three-dimensional building data, and generate building component data;
[0095] The mapping generation unit 2023 is used to generate mapping relationship data based on the mapping relationship between the building component data and the building overall data.
[0096] The component generation unit 2022 is specifically used for:
[0097] Traversing all the smallest unit files of the three-dimensional building data;
[0098] An identifier is set for each of the minimum unit files in turn, and each of the minimum unit files is encapsulated as overall data to generate building component data.
[0099] The storage module 203 is specifically used for:
[0100] The building component identification data is stored in a mongoDB database.
[0101] The storage module 203 is further specifically used for:
[0102] The building overall identification data and the mapping relationship data are stored in a MYSQL database.
[0103] The storage device for the three-dimensional building data further includes a reading module 205, and the reading module 205 is specifically used for:
[0104] Receiving a read instruction, and analyzing the overall building identification corresponding to the read instruction;
[0105] In the MYSQL database, read the building overall data corresponding to the building overall identification, and read the mapping relationship data corresponding to the building overall data;
[0106] According to the mapping relationship data, the building component data corresponding to the overall building data is captured from the mongoDB database;
[0107] According to the mapping relationship data, the overall building data and the building component data corresponding to the overall building data are transmitted to the external port for viewing the three-dimensional building data.
[0108] The storage device for the three-dimensional building data further includes an expansion module 206, and the reading module 206 is specifically used for:
[0109] receiving a component extension instruction, wherein the component extension instruction includes: component extension entity data;
[0110] Setting an identifier for the component extension entity data, and encapsulating the component extension entity data into integral data to generate component extension data;
[0111] According to the component extension data, the overall building data and the mapping relationship data are updated to obtain new overall building data and new mapping relationship data.
[0112] In the embodiment of the present invention, by saving the basic data of the entire inspection process of the drawing file in the service based on the original relational database and the non-relational database, the integrity of the drawing inspection process data is ensured, and the problem of incomplete three-dimensional drawing inspection process data is solved.
[0113] above Figure 2 and Figure 3 The storage device for three-dimensional building data in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The storage device for three-dimensional building data in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0114] Figure 44 is a schematic diagram of the structure of a storage device for three-dimensional building data provided by an embodiment of the present invention. The storage device 400 for three-dimensional building data may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 410 (for example, one or more processors) and a memory 420, and one or more storage media 430 (for example, one or more mass storage devices) storing application programs 433 or data 432. Among them, the memory 420 and the storage medium 430 may be temporary storage or permanent storage. The program stored in the storage medium 430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the storage device 400 for three-dimensional building data. Furthermore, the processor 410 may be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the storage device 400 for three-dimensional building data.
[0115] The storage device 400 based on the three-dimensional building data may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input and output interfaces 460, and / or one or more operating systems 431, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be understood by those skilled in the art that Figure 4 The illustrated storage device structure for three-dimensional building data does not constitute a limitation on the storage device based on three-dimensional building data, and may include more or less components than illustrated, or a combination of certain components, or a different arrangement of components.
[0116] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for storing three-dimensional building data.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0119] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for storing three-dimensional building data, characterized in that: Includes steps: Acquire three-dimensional building data to be stored; According to a preset analysis algorithm, the three-dimensional building data is analyzed and packaged to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data; The building component data is stored in a mongoDB database, and the overall building data and the mapping relationship data are stored in a MYSQL database; Transmitting the mapping relationship data to an external port for retrieving the stored three-dimensional building data; The overall building data is obtained by setting the three-dimensional building data as an overall identification. The overall building data contains both entity data and identification data of the three-dimensional building data. An identification symbol is assigned to the three-dimensional building data to confirm the uniqueness of the three-dimensional building data. Each building component in the three-dimensional building data is assigned an identification symbol one by one. The component in the three-dimensional building data is located by the identification symbol. Then, based on the association relationship between the component and the overall building data, a hierarchical relationship and spatial position data are constructed in the overall building data as the mapping relationship data; The three-dimensional building data is analyzed and packaged according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, including: Setting identification for the three-dimensional building data to generate overall building data; Analyzing the composition of the three-dimensional building data, setting identifiers for components in the three-dimensional building data, and generating building component data; Generate mapping relationship data based on the mapping relationship between the building component data and the building overall data; The analyzing the composition of the three-dimensional building data, setting identifiers for components in the three-dimensional building data, and generating building component data comprises: Traversing all the smallest unit files of the three-dimensional building data; sequentially setting an identifier for each of the minimum unit files, and encapsulating each of the minimum unit files into integral data to generate building component data; After transmitting the mapping relationship data to the external port for retrieving the stored three-dimensional building data, the method further includes: Receiving a read instruction, and analyzing the overall building identification corresponding to the read instruction; In the MYSQL database, read the building overall data corresponding to the building overall identification, and read the mapping relationship data corresponding to the building overall data; According to the mapping relationship data, the building component data corresponding to the overall building data is captured from the mongoDB database; According to the mapping relationship data, the overall building data and the building component data corresponding to the overall building data are transmitted to the external port for viewing the three-dimensional building data.
2. The method for storing building data according to claim 1, characterized in that: The building component data includes: building component entity data, building component identification data, and storing the building component data in a mongoDB database includes: The building component identification data is stored in a mongoDB database.
3. The method for storing building data according to claim 1, characterized in that: The building overall data includes: building overall entity data, building overall identification data, and storing the building overall data and the mapping relationship data in the MYSQL database includes: The building overall identification data and the mapping relationship data are stored in a MYSQL database.
4. The method for storing building data according to claim 1, characterized in that: After transmitting the mapping relationship data to the external port for retrieving the stored three-dimensional building data, the method further includes: receiving a component extension instruction, wherein the component extension instruction includes: component extension entity data; Setting an identifier for the component extension entity data, and encapsulating the component extension entity data into integral data to generate component extension data; According to the component extension data, the overall building data and the mapping relationship data are updated to obtain new overall building data and new mapping relationship data.
5. A storage device for three-dimensional building data, characterized in that: The storage device of the three-dimensional building data comprises: An acquisition module, used for acquiring three-dimensional building data to be stored; An analysis and packaging module is used to analyze and package the three-dimensional building data according to a preset analysis algorithm to obtain the overall building data, building component data, and mapping relationship data of the three-dimensional building data, wherein the mapping relationship data includes: the mapping relationship data between the building component data and the overall building data; A storage module, used to store the building component data in a mongoDB database, and store the overall building data and the mapping relationship data in a MYSQL database; A transmission module, used for transmitting the mapping relationship data to an external port, so as to retrieve the stored three-dimensional building data; The overall building data is obtained by setting the three-dimensional building data as an overall identification. The overall building data contains both entity data and identification data of the three-dimensional building data. An identification symbol is assigned to the three-dimensional building data to confirm the uniqueness of the three-dimensional building data. Each building component in the three-dimensional building data is assigned an identification symbol one by one. The component in the three-dimensional building data is located by the identification symbol. Then, based on the association relationship between the component and the overall building data, a hierarchical relationship and spatial position data are constructed in the overall building data as the mapping relationship data; The analysis and packaging module includes: an overall generation unit, which is used to set identifiers for the three-dimensional building data and generate overall building data; A component generating unit, used for analyzing the composition of the three-dimensional building data, setting identifiers for components in the three-dimensional building data, and generating building component data; A mapping generation unit, configured to generate mapping relationship data based on a mapping relationship between the building component data and the building overall data; Wherein, the component generation unit is specifically used for: Traversing all the smallest unit files of the three-dimensional building data; sequentially setting an identifier for each of the minimum unit files, and encapsulating each of the minimum unit files into integral data to generate building component data; The storage device for the three-dimensional building data further includes a reading module, and the reading module is specifically used for: Receiving a read instruction, and analyzing the overall building identification corresponding to the read instruction; In the MYSQL database, read the building overall data corresponding to the building overall identification, and read the mapping relationship data corresponding to the building overall data; According to the mapping relationship data, the building component data corresponding to the overall building data is captured from the mongoDB database; According to the mapping relationship data, the overall building data and the building component data corresponding to the overall building data are transmitted to the external port for viewing the three-dimensional building data.
6. A storage device for three-dimensional building data, characterized in that: The storage device for the three-dimensional building data comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the three-dimensional building data storage device to execute the three-dimensional building data storage method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for storing three-dimensional building data according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
BIM data lightweight method and apparatus
CN106951432A
3D (Three-Dimensional) lightweight conversion method based on BIM (Building Information Modeling) file
CN108647330A