CN117493613A - Building information model storage and display method and device and electronic equipment - Google Patents

Building information model storage and display method and device and electronic equipment Download PDF

Info

Publication number
CN117493613A
CN117493613A CN202311461815.5A CN202311461815A CN117493613A CN 117493613 A CN117493613 A CN 117493613A CN 202311461815 A CN202311461815 A CN 202311461815A CN 117493613 A CN117493613 A CN 117493613A
Authority
CN
China
Prior art keywords
data
cache
model
information
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311461815.5A
Other languages
Chinese (zh)
Inventor
马恩成
夏绪勇
张晓龙
王建斌
王琛
姜文明
杨广剑
牛瑞刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Construction Technology Co ltd
Original Assignee
Beijing Construction Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Construction Technology Co ltd filed Critical Beijing Construction Technology Co ltd
Priority to CN202311461815.5A priority Critical patent/CN117493613A/en
Publication of CN117493613A publication Critical patent/CN117493613A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for storing and displaying a building information model and electronic equipment. The method comprises the following steps: storing model data of the building information model in a magnetic disk according to a preset storage structure; the preset storage structure comprises an entry layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer, wherein the second-level storage layer stores category information of model data, the third-level storage layer stores collection information of the model data, and the fourth-level storage layer stores data blocks of the model data; according to the category information and the collection information, determining a data block to be loaded in a disk, loading the data block to be loaded into a cache of a software system, and creating a data index; and retrieving the data to be displayed in the cache based on the data index, and displaying the data to be displayed through the software system. According to the technical scheme, the problems that the existing loading mode needs to perform deserialization operation and convert persistent data into memory data, so that the loading speed is low and the memory consumption is high are solved, the loading efficiency is improved, and the model size and the memory consumption are reduced.

Description

Building information model storage and display method and device and electronic equipment
Technical Field
The present invention relates to the field of building information models, and in particular, to a method and an apparatus for storing and displaying a building information model, and an electronic device.
Background
Because the model data volume of the building information model (Building Information Modeling, BIM) is large, and the building information model is managed by taking a large number of data objects as units (components), the requirements on the data access efficiency, the memory size and the display efficiency are high.
In the prior art, part of BIM software stores all data as one data packet, all data of a model are loaded into a memory each time the model is opened and converted into a memory object for management, the whole model loading process needs to be used for inversely sequencing the persistent object into the memory object, so that higher time consumption is caused, and the consumption of the memory is also higher when the complete model is loaded into the memory. The BIM software is stored in a database mode, real-time database operation is needed for operation of model data, obvious performance problems exist in batch data operation, users can only establish a cache to manage the problem, and efficiency of data operation is guaranteed, but user-defined cache cannot use a transaction mechanism of the database to perform undo/redo mechanism.
Disclosure of Invention
The invention provides a method and a device for storing and displaying a building information model and electronic equipment, which are used for improving loading efficiency and reducing model size and memory consumption.
According to an aspect of the present invention, there is provided a method for storing and displaying a building information model, comprising:
according to a preset storage structure, storing model data of the building information model in a magnetic disk; the preset storage structure comprises an inlet layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer; the second-level storage layer stores category information of the model data, the third-level storage layer stores collection information of the model data, and the fourth-level storage layer stores data blocks of the model data;
determining a data block to be loaded in the disk according to the category information and the set information, loading the data block to be loaded into a cache of a software system, and creating a data index;
and calling the data to be displayed in the cache based on the data index, and displaying the data to be displayed through the software system.
According to another aspect of the present invention, there is provided a storage and display device of a building information model, comprising:
The storage module is used for storing model data of the building information model in a magnetic disk according to a preset storage structure, wherein the preset storage structure comprises an inlet layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer, the second-level storage layer stores category information of the model data, the third-level storage layer stores aggregate information of the model data, and the fourth-level storage layer stores data blocks of the model data;
the loading module is used for determining a data block to be loaded in the disk according to the category information and the set information, loading the data block to be loaded into a cache of a software system and creating a data index;
and the display module is used for calling the data to be displayed in the cache based on the data index and displaying the data to be displayed through the software system.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of storing and displaying building information models according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the method for storing and displaying a building information model according to any one of the embodiments of the present invention when executed.
According to the technical scheme, model data of the building information model are stored in a magnetic disk through a preset storage structure; further determining a data block to be loaded in the disk according to the category information and the collection information, loading the data block to be loaded into a cache of the software system and creating a data index; finally, the data to be displayed in the cache is called based on the data index, and the data to be displayed is displayed through the software system, so that the problems that the existing storage and loading modes need to be subjected to deserialization operation, and the persistent data are converted into memory data, so that the loading speed is low and the memory consumption is high are solved, the loading efficiency is improved, and the model size and the memory consumption are reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for storing and displaying a building information model according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data store of a building information model according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a three-layer cache management mechanism of a software system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a storage and display device for building information models according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To further clarify the technical effects of the present invention, prior art will be further described below with reference to the following examples:
in the prior art, a unified data packet access mechanism is adopted, all data are loaded into a memory, and the loading process needs to perform deserialization operation to convert persistent data into memory data, so that the loading speed is low and the memory consumption is high; or, the database is used for storing, the database is required to be read and written in real time for model operation, and the disk is required to be frequently read and written when a large amount of data is subjected to batch operation, so that the problem of obvious efficiency is solved. In addition, most BIM software has the same modeling, components with different geometric positions respectively store a copy for independent management and display control, each data object independently stores a piece of data, for the objects with the same geometric modeling and different arrangement positions, multiplexing of geometric data cannot be performed, more redundant data is provided, storage space and memory space are consumed, and display performance is reduced.
Fig. 1 is a flowchart of a method for storing and displaying a building information model according to an embodiment of the present invention, where the method may be implemented by a device for storing and displaying a building information model, where the device may be implemented in hardware and/or software, and where the device may be configured in an electronic device.
As shown in fig. 1, the method includes:
s110, storing model data of the building information model in a magnetic disk according to a preset storage structure.
In this embodiment, the preset storage structure refers to a preset data storage structure, and model data of a building information model is stored in a disk according to the preset storage structure, where the model data can be understood as data corresponding to all service objects in the building information model; for example, data corresponding to business objects such as walls, beams, windows, etc. in the building information model.
The preset storage structure comprises an inlet layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer; the entry layer is used for providing a unified access entry of the model data, the secondary storage layer stores category information of the model data, the tertiary storage layer stores collection information of the model data, and the quaternary storage layer stores data blocks of the model data. The category information refers to a category to which model data belongs, and the aggregate information refers to information of a data aggregate to which model data of each category belongs.
On the basis of the foregoing embodiment, the storing, according to a preset storage structure, model data of the building information model in a disk includes: dividing the model data based on preset data types, and determining the type information of the model data based on a division result; and determining set information and data blocks corresponding to each preset data category, storing the set information into the three-level storage layer, and storing the data blocks into the four-level storage layer.
The preset data category comprises geometric data, attribute data, relation data and control data; the geometric data comprises all geometric data displayed by the model, and is also the part with the largest data volume in the BIM model; the attribute data records the attribute definition of each business object, and the like, geometric data can be generated in real time based on the attribute definition, the relationship data records the relationship between the attribute data and the geometric, the reference relationship between the geometric and the reference relationship between the attributes, and the control data is used for controlling the loading sequence of the whole model data, the reference data scheduling and the like.
In the building information model, the service data of each service object is geometric data, attribute data, relationship data and control data which form the service object.
Specifically, after model data in the building information model is acquired, the model data is divided into geometric data, attribute data, relationship data, and control data according to a data category set in advance. Further, it is determined which data sets are contained under each data category and which data blocks are contained in the data sets. Storing the category information in a second-level storage layer in a disk, storing the aggregate information in a third-level storage layer, and storing the data block in a fourth-level storage layer. Fig. 2 is a schematic diagram of a data storage of a building information model according to an embodiment of the present invention.
As shown in fig. 2, the storage structure of a BIM model is divided into four main levels: an inlet layer; a secondary storage node layer of four data categories of geometric data, attribute data, relation data and control data, namely a secondary storage layer, is respectively arranged below the inlet layer; nodes containing a plurality of data sets under each data category, namely three-level storage layers; each data set node is divided into a plurality of data blocks, and each data block stores a plurality of data objects, namely, the data blocks are stored in four-level storage layers. The data in each data set is independent and can be loaded and unloaded independently.
S120, determining a data block to be loaded in the disk according to the category information and the set information, loading the data block to be loaded into a cache of a software system, and creating a data index.
The data blocks to be loaded refer to the data blocks to be loaded into a cache of a software system, the software system refers to a tool for creating and managing a building information model, and design and construction personnel can be helped to better understand and manage construction projects through the software system.
Specifically, according to the category information and the collection information, determining which data blocks in the disk need to be loaded into a cache of the software system, then loading the data blocks to be loaded into the cache of the software system through a direct mapping mechanism, and creating a data index.
On the basis of the above embodiment, the determining, according to the category information and the aggregate information, a data block to be loaded in the disk includes: when a data loading request of the software system is detected, loading a first data block corresponding to the control data into a cache of the software system, and determining control information corresponding to the control data based on the first data block in the cache; and determining the data block to be loaded from the second data block stored in the disk according to the control information, the category information and the set information.
The control data are used for controlling the loading sequence of the whole model data, the scheduling of the reference data and the like; for example, the control data records that the model data is loaded when the software system is closed last time, and only the model data which is loaded last time is loaded when the software system is loaded last time, so that a user can conveniently and directly perform corresponding design editing operation and the like based on loading display without loading all the model data in the building information model. For another example, the control data may also be global data, such as global configuration of color configuration, layer configuration, etc. in the entire modeling process; for normal display of the software system, the part of global data must be loaded into the cache in advance, but the data size of the global data is smaller, and the influence on the cache space is smaller.
In the present embodiment, the data blocks constituting the geometric data, the attribute data, and the relationship data are collectively referred to as second data blocks, and the data blocks constituting the control data are referred to as first data blocks. In the actual loading process, a first data block corresponding to control data is loaded into a cache of a software system, control information is determined according to the first data block in the cache, and the loading sequence can be determined based on the control information.
In this embodiment, the determining, according to the control information, the category information, and the set information, the data block to be loaded from the second data block stored in the disk includes: determining a target data category and a target set corresponding to the data block to be loaded based on the control information, the set information and the category information; and searching a target second data block in the second data blocks stored in the disk according to the target data category and the target set, and taking the target second data block as the data block to be loaded.
The target preset data category refers to a data category to which the data block to be loaded belongs, and the target set information refers to a data set to which the data block to be loaded belongs.
In this embodiment, it can be determined, according to the control information, which data blocks need to be loaded into the memory, i.e. loaded as required. According to the control information, it is determined what kind of data needs to be loaded, and which data set data block in the data kind is loaded. That is, determining a target set and a target data category to which the data block to be loaded belongs according to the control information, the set information and the category information; and then according to the target data category and the target set information, finding a target second data block matched with the target set information in the second data block as a data block to be loaded. That is, rather than loading all of the second data blocks into memory, data blocks in some data sets are loaded into memory based on control information.
The BIM model is different from the traditional text data, and comprises data of different categories such as attribute data, geometric data, relation data between service objects, control data and the like of the service objects, and the BIM engineering data has large volume, data association exists between the objects, and the problems of long loading time and large memory consumption exist when the BIM data is loaded into a memory. In the embodiment of the invention, the BIM model is stored in a layered and hierarchical manner. When the file is loaded each time, the control data with smaller data quantity is loaded first, and then only the needed data set is loaded each time through the information in the control data, so that the whole model is prevented from being mapped to the memory, and the data loading efficiency and the memory consumption are ensured; and when data is modified, only the data block is modified, and when data is stored, only the modified data block is updated, so that the storage efficiency is ensured.
In this embodiment, the data index includes a cache object index and a set index, and the loading the data block to be loaded into the cache of the software system and creating the data index includes: dividing the data block to be loaded into a plurality of data objects according to the size of the data objects, and taking each data object as a data object to be mapped; and mapping the data object to be mapped into a cache object in the cache, and creating a cache object index and a set index of the cache object.
Wherein, the cache object index refers to the index of the cache object in the cache, and the set index refers to the index of the set to which the cache object belongs; the data object to be mapped refers to the data object which needs to be directly mapped to the cache from the disk through a direct mapping mechanism; the cache includes a persistence layer where cache objects are stored.
Specifically, after determining the data block to be loaded, dividing the data block to be loaded into a plurality of data objects according to the size of the data objects, wherein each data object is used as a data object to be mapped and mapped into a cache object in a cache, and creating a cache pair pixel index and a collection index.
In this embodiment, the cache further includes a first level cache layer and a second level cache layer, and after the creating the cache object index and the set index of the cache object, the method further includes: and storing the cache object index in the second-level cache layer, and storing the set index in the first-level cache layer.
Fig. 3 is a schematic diagram of a three-layer cache management mechanism of a software system according to an embodiment of the present invention. As shown in fig. 3, the software system cache management is mainly divided into three layers, namely, a bottom data persistence layer, on which two levels of index caches, namely, a first level cache layer and a second level cache layer are arranged. The persistence layer mainly stores data read from a storage medium (disk) or created by a user, and the two-level cache is used for storing and managing indexes, wherein the first-level cache mainly stores and manages indexes of data sets, and the second-level cache manages indexes of each data object. Meanwhile, the whole buffer memory management module is also responsible for dynamic allocation, release, management and the like of the buffer memory. When a software system reads data from a storage medium, the data is firstly read into a persistent cache, then a data index is created for each data object, then a data set index is created for a group of data objects, and after two levels of cache are created, a user can quickly access model data through an interface.
When the traditional BIM model data is loaded and stored, the problem of mutual conversion between a memory data structure and a persistent storage structure exists, and when the volume of the data is large, each data object needs to be subjected to serialization and deserialization operations, so that the problem of high efficiency is solved. In the loading process of the embodiment, a direct mapping mechanism of persistent data and memory data is adopted, time consumption of time-consuming serialization and deserialization is avoided, a three-level caching mechanism is adopted in the cache of the embodiment, namely a persistent layer, a first-level caching layer and a second-level caching layer, an index of a data set is mapped into the first-level caching in the loading process of data, an index of a data object is mapped into the second-level caching, a real data object is mapped into the persistent cache data, each data object adopts a continuous memory mode memory application, after a data block in a magnetic disk is read, the data block can be directly mapped into the cache object after being cut according to the size of the data object, the deserialization of data is not needed, and the data access efficiency is greatly improved for a large quantity model.
S130, the data to be displayed in the cache is called based on the data index, and the data to be displayed is displayed through the software system.
The data to be displayed refers to data which needs to be displayed on a software system interface in a cache.
Specifically, the specific position of the data to be displayed in the cache can be checked according to the data index, the data to be displayed is further retrieved and displayed on the interface of the software system, and a designer can perform corresponding editing operation and the like.
On the basis of the foregoing embodiment, the retrieving, based on the data index, data to be displayed in the cache, and displaying, by the software system, the data to be displayed includes: when a data display request is received, determining a cache object index based on the data display request and the set index; and determining the cache object based on the cache object index, taking the cache object as the data to be displayed, and displaying the data to be displayed through the software system.
Specifically, when the software system receives a data display request, for example, a user clicks a loading control on an operation interface of the software system to generate the data display request; further, based on the data display request and the set index, a set to which the data to be displayed belongs is determined, and then a specific cache object in the set is found according to the cache object index to serve as the data to be displayed.
On the basis of the above embodiment, the method further comprises: determining multiplexing service objects and other service objects from service objects with the same geometric data in the building information model, and storing multiplexing geometric data of the multiplexing service objects, wherein the other service objects are service objects except the multiplexing service objects in the service objects; when receiving the display request of the other business objects, determining the conversion matrixes of the multiplexing objects and the other business objects; and generating other business object data corresponding to the display request based on the conversion matrix and the multiplexing geometric data, and displaying the other business object data through the software system.
It is understood that the model data of the building information model includes service data of each service object, including attribute data, geometry data, relationship data between service objects, control data, and other data of different categories. In the building information model, there may be a case where geometric data between service objects are the same, for example, when the service objects are chairs, the geometric data of two chairs with the same outline structure and different placement positions are the same, and one chair may be used as a multiplexing service object, and the other chair may be used as another service object. Accordingly, in the cache of the software system, only the geometric data of the multiplexed service object is stored, and the geometric data of other service objects are not stored, and the conversion matrix between the other service objects and the multiplexed service object is stored. When receiving the display request of other service objects, the service data of the other service objects can be directly obtained according to the conversion matrix between the multiplexing service objects and the other service objects and the geometric data of the multiplexing service objects.
In this embodiment, the same geometric data in the BIM model is stored only in one part, and other service objects with the same geometry only record Id and matrix data of the geometric data, when the other service objects with the same geometry are displayed and rendered, the same geometric data is directly called by Id and multiplied by matrix, so that real data of other service objects with the same geometry can be quickly obtained, redundancy of the data is effectively reduced, and meanwhile, the mechanism also effectively reduces the size of a model file and the size of memory consumption.
In addition, since the business objects with the same attribute can be shaped differently, the embodiment also refers to the business attribute, ensures that the attribute and the entity have a corresponding relation of 1 to more, and reduces the data volume of the attribute data.
The embodiment realizes hierarchical storage of the data, truly supports an on-demand loading mechanism of the data, only loads the needed data each time, and ensures that a machine with lower configuration can bear a model of a larger scene. The embodiment designs a three-level caching mechanism and directly maps the three-level caching mechanism with the hierarchical persistent storage data format, so that the persistent data can be quickly mapped into cache data, and the data loading efficiency is greatly improved. Based on a hierarchical mechanism, the data of different categories bear different roles, data references are respectively carried out on entity data and attribute data, the application relationship is recorded through relationship data, the data is scheduled in real time through control data, the data is light, the model size and the memory consumption are greatly reduced, and the display efficiency is greatly improved through the references to the entities.
According to the technical scheme, model data of the building information model are stored in a magnetic disk through a preset storage structure; further determining a data block to be loaded in the disk according to the category information and the collection information, loading the data block to be loaded into a cache of the software system and creating a data index; finally, the data to be displayed in the cache is called based on the data index, and the data to be displayed is displayed through the software system, so that the problems that the existing storage and loading modes need to be subjected to deserialization operation, and the persistent data are converted into memory data, so that the loading speed is low and the memory consumption is high are solved, the loading efficiency is improved, and the model size and the memory consumption are reduced.
Fig. 4 is a schematic structural diagram of a storage and display device for building information models according to an embodiment of the present invention. As shown in fig. 4, the apparatus includes:
a storage module 410, configured to store model data of the building information model in a disk according to a preset storage structure, where the preset storage structure includes an entry layer, a second storage layer, a third storage layer and a fourth storage layer, the second storage layer stores category information of the model data, the third storage layer stores aggregate information of the model data, and the fourth storage layer stores a data block of the model data;
The loading module 420 is configured to determine a data block to be loaded in the disk according to the category information and the set information, load the data block to be loaded into a cache of a software system, and create a data index;
and the display module 430 is configured to retrieve the data to be displayed in the cache based on the data index, and display the data to be displayed through the software system.
According to the technical scheme, model data of the building information model are stored in a magnetic disk through a preset storage structure; further determining a data block to be loaded in the disk according to the category information and the collection information, loading the data block to be loaded into a cache of the software system and creating a data index; finally, the data to be displayed in the cache is called based on the data index, and the data to be displayed is displayed through the software system, so that the problems that the existing storage and loading modes need to be subjected to deserialization operation, and the persistent data are converted into memory data, so that the loading speed is low and the memory consumption is high are solved, the loading efficiency is improved, and the model size and the memory consumption are reduced.
On the basis of the above technical solution, the storage module 410 includes:
The data dividing module is used for dividing the model data based on preset data categories and determining category information of the model data based on a dividing result, wherein the preset data categories comprise: geometric data, attribute data, relationship data, and control data;
and the data storage module is used for determining the set information and the data blocks corresponding to each preset data category, storing the set information into the three-level storage layer and storing the data blocks into the four-level storage layer.
Based on the above technical solution, the loading module 420 includes:
the control data loading module is used for loading a first data block corresponding to the control data into a cache of the software system when a data loading request of the software system is detected, and determining control information corresponding to the control data based on the first data block in the cache;
and the data to be loaded determining module is used for determining the data block to be loaded from the second data block stored in the disk according to the control information, the category information and the set information.
On the basis of the above technical solution, the data to be loaded determining module includes:
The set determining module is used for determining a target data type and a target set corresponding to the data block to be loaded based on the control information, the set information and the type information;
and the data searching module is used for searching a target second data block in the second data blocks stored in the disk according to the target data type and the target set, and taking the target second data block as the data block to be loaded.
Based on the above technical solution, the loading module 420 includes:
the data object to be mapped determining module is used for dividing the data block to be loaded into a plurality of data objects according to the size of the data objects, and taking each data object as the data object to be mapped;
the cache object index establishing module is used for mapping the data object to be mapped into a cache object in the cache and establishing a cache object index and a collection index of the cache object; wherein the cache includes a persistence layer, and the cache object is stored in the persistence layer.
On the basis of the technical scheme, the cache further comprises a first-level cache layer and a second-level cache layer, and after the cache object index and the set index of the cache object are created, the method further comprises the following steps:
And storing the cache object index in the second-level cache layer, and storing the set index in the first-level cache layer.
Based on the above technical solution, the display module 430 includes:
the target cache object index determining module is used for determining a target cache object index based on the data display request and the set index when the data display request is received;
and the target cache object display module is used for determining a target cache object based on the target cache object index, taking the target cache object as the data to be displayed, and displaying the data to be displayed through the software system.
On the basis of the technical scheme, the storage and display device of the building information model further comprises:
the multiplexing geometric data determining module is used for determining multiplexing service objects and other service objects from service objects with the same geometric data in the building information model, and storing multiplexing geometric data of the multiplexing service objects, wherein the other service objects are service objects except the multiplexing service objects in the service objects;
the conversion matrix determining module is used for determining conversion matrixes of the multiplexing object and the other business objects when receiving the display request of the other business objects;
And the service object display module is used for generating other service object data corresponding to the display request based on the conversion matrix and the multiplexing geometric data and displaying the other service object data through the software system.
The storage and display device for the building information model provided by the embodiment of the invention can execute the storage and display method for the building information model provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various kinds of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the storage and display methods of the building information model.
In some embodiments, the method of storing and displaying building information models may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above-described storing and displaying method of the building information model may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of storing and displaying the building information model in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for storing and displaying a building information model, comprising:
according to a preset storage structure, storing model data of the building information model in a magnetic disk; the preset storage structure comprises an inlet layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer, wherein the second-level storage layer stores category information of the model data, the third-level storage layer stores collection information of the model data, and the fourth-level storage layer stores data blocks of the model data;
Determining a data block to be loaded in the disk according to the category information and the set information, loading the data block to be loaded into a cache of a software system, and creating a data index;
and calling the data to be displayed in the cache based on the data index, and displaying the data to be displayed through the software system.
2. The method according to claim 1, wherein storing model data of the building information model in a disk according to a preset storage structure includes:
dividing the model data based on preset data categories, and determining category information of the model data based on a division result, wherein the preset data categories comprise: geometric data, attribute data, relationship data, and control data;
and determining set information and data blocks corresponding to each preset data category, storing the set information into the three-level storage layer, and storing the data blocks into the four-level storage layer.
3. The method of claim 2, wherein determining the data block to be loaded in the disk according to the category information and the aggregate information comprises:
When a data loading request of the software system is detected, loading a first data block corresponding to the control data into a cache of the software system, and determining control information corresponding to the control data based on the first data block in the cache;
and determining the data block to be loaded from the second data block stored in the disk according to the control information, the category information and the set information.
4. The method of claim 3, wherein the determining the data block to be loaded from the second data block stored in the disk according to the control information, the category information, and the aggregate information includes:
determining a target data category and a target set corresponding to the data block to be loaded based on the control information, the set information and the category information;
and searching a target second data block in the second data blocks stored in the disk according to the target data category and the target set, and taking the target second data block as the data block to be loaded.
5. The method of claim 1, wherein the data index comprises a cache object index and a set index, wherein loading the block of data to be loaded into a cache of a software system and creating the data index comprises:
Dividing the data block to be loaded into a plurality of data objects according to the size of the data objects, and taking each data object as a data object to be mapped;
mapping the data object to be mapped into a cache object in the cache, and creating a cache object index and a collection index of the cache object; wherein the cache includes a persistence layer, and the cache object is stored in the persistence layer.
6. The method of claim 5, wherein the caching further comprises a primary caching layer and a secondary caching layer, and after the creating the cache object index and the set index of the cache object, further comprising:
and storing the cache object index in the second-level cache layer, and storing the set index in the first-level cache layer.
7. The method of claim 6, wherein the retrieving the data to be presented in the cache based on the data index and presenting the data to be presented by the software system comprises:
when a data display request is received, determining a target cache object index based on the data display request and the set index;
and determining a target cache object based on the target cache object index, taking the target cache object as the data to be displayed, and displaying the data to be displayed through the software system.
8. The method as recited in claim 7, further comprising:
determining multiplexing service objects and other service objects from service objects with the same geometric data in the building information model, and storing multiplexing geometric data of the multiplexing service objects, wherein the other service objects are service objects except the multiplexing service objects in the service objects;
when receiving the display request of the other business objects, determining the conversion matrixes of the multiplexing objects and the other business objects;
and generating other business object data corresponding to the display request based on the conversion matrix and the multiplexing geometric data, and displaying the other business object data through the software system.
9. A storage and display device for building information models, comprising:
the storage module is used for storing model data of the building information model in a magnetic disk according to a preset storage structure, wherein the preset storage structure comprises an inlet layer, a second-level storage layer, a third-level storage layer and a fourth-level storage layer, the second-level storage layer stores category information of the model data, the third-level storage layer stores aggregate information of the model data, and the fourth-level storage layer stores data blocks of the model data;
The loading module is used for determining a data block to be loaded in the disk according to the category information and the set information, loading the data block to be loaded into a cache of a software system and creating a data index;
and the display module is used for calling the data to be displayed in the cache based on the data index and displaying the data to be displayed through the software system.
10. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of storing and displaying the building information model of any one of claims 1-8.
CN202311461815.5A 2023-11-06 2023-11-06 Building information model storage and display method and device and electronic equipment Pending CN117493613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311461815.5A CN117493613A (en) 2023-11-06 2023-11-06 Building information model storage and display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311461815.5A CN117493613A (en) 2023-11-06 2023-11-06 Building information model storage and display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117493613A true CN117493613A (en) 2024-02-02

Family

ID=89679549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311461815.5A Pending CN117493613A (en) 2023-11-06 2023-11-06 Building information model storage and display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117493613A (en)

Similar Documents

Publication Publication Date Title
CN112860695B (en) Monitoring data query method, device, equipment, storage medium and program product
EP2874077A2 (en) Stateless database cache
KR101400214B1 (en) Appratus for providing a hybrid c interface
CN111966677A (en) Data report processing method and device, electronic equipment and storage medium
CN113407649A (en) Data warehouse modeling method and device, electronic equipment and storage medium
WO2017107130A1 (en) Data query method and database system
CN115761130A (en) Three-dimensional scene rapid construction method and device, electronic equipment and storage medium
CN111259090A (en) Graph generation method and device of relational data, electronic equipment and storage medium
CN112783887A (en) Data processing method and device based on data warehouse
CN115408546A (en) Time sequence data management method, device, equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN117493613A (en) Building information model storage and display method and device and electronic equipment
CN116383207A (en) Data tag management method and device, electronic equipment and storage medium
CN114610719B (en) Cross-cluster data processing method and device, electronic equipment and storage medium
CN115840738A (en) Data migration method and device, electronic equipment and storage medium
CN113407587B (en) Data processing method, device and equipment for online analysis processing engine
CN115981555A (en) Data processing method and device, electronic equipment and medium
CN111143328A (en) Agile business intelligent data construction method, system, equipment and storage medium
CN114780021B (en) Copy repairing method and device, electronic equipment and storage medium
CN113641670B (en) Data storage and data retrieval method and device, electronic equipment and storage medium
CN117609398A (en) Data processing method, device, equipment and storage medium
CN116882005A (en) Analytical modeling method, device, equipment and medium for power generation engineering
CN114416881A (en) Real-time synchronization method, device, equipment and medium for multi-source data
CN117194435A (en) Index data updating method, device, equipment and storage medium
CN116541438A (en) Data query method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination