A method and system for quickly constructing a three-dimensional spatial model of a multi-level building
Through 2D and 3D data feature analysis and coding design, combined with topographic maps and other data, the problem of unutilized 2D data and the complexity of mountainous cities in 3D model construction is solved, achieving fast and low-cost multi-level 3D model construction and improving efficiency. and finesse.
Patent Information
- Application Number
- CN202410275465.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-12
AI Technical Summary
Existing technologies have problems such as insufficient utilization of 2D stock data in the construction of 3D models, difficulty in handling the complexity of mountainous urban terrain, long modeling time and high cost. In particular, methods such as oblique photogrammetry and BIM are ineffective in terms of efficiency and cost. There are shortcomings, and the update of the single model requires a lot of manpower and material resources.
Through the analysis of the difference in characteristics of two-dimensional and three-dimensional building data, we sorted out the building classification system and base surface classification system in complex mountainous cities, combined with basic surveying and mapping data such as topographic maps and as-built drawings, designed floor entity coding and elevation information acquisition algorithms, and realized the second-level classification of buildings. Convert dimensional to three-dimensional data to build a multi-level three-dimensional spatial model of a building, and use patch-level, component-level and building-level model fusion to form a single three-dimensional spatial model.
It achieves the rapid and low-cost construction of multi-level, single-dimensional three-dimensional spatial models, gives full play to the efficiency of two-dimensional data resources, reduces modeling time and costs, improves the precision and management efficiency of the model, and is suitable for complex mountainous areas. Urban terrain characteristics.
Smart Images

Figure CN118172503B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional building model construction, and in particular to a method and system for quickly constructing a three-dimensional space model of a multi-level building. Background Art
[0002] With the development of theories and technologies related to digital cities, smart cities, digital twins, and real-life 3D construction, online real-life 3D space is also gradually developing. Buildings are the spatial carriers of human production, life, and social and economic activities, and are the main objects of planning, construction, and management. In the traditional data management model, building data management is produced and managed in the form of two-dimensional spots and attribute tables. However, the rapidly developing intelligent application needs now require building data storage and management models to meet the characteristics of full space, full elements, multi-level, non-scale, fine-grained, three-dimensional, and semantic. The three-dimensional entity management method has the advantages of object-oriented data organization, free thematic attribute attachment, flexible on-demand assembly, and convenient linkage update. Compared with the traditional organization and management method based on hierarchical classification of elements, it has a broader application prospect. Building data urgently needs to transform from the traditional two-dimensional data management model to the three-dimensional entity management model. The rapid conversion of buildings from two-dimensional information management to three-dimensional physical models can provide strong support for real-life three-dimensional construction quickly and efficiently based on the full use of original data results, achieve the upgrading and full use of massive two-dimensional building data, form more efficient and accurate information guarantees, and better serve national space planning and urban management decisions.
[0003] There are three prominent problems in the current research work related to the construction of three-dimensional models: First, a large amount of two-dimensional stock data has not been fully explored and utilized, and high-precision spatial graphic information and relatively rich attribute information have not been fully utilized and activated, and the value and efficiency of stock data have not been fully utilized; Second, compared with plain cities, the complexity of mountain cities in terms of terrain characteristics, building structure types, and building ground base surfaces has always been one of the difficulties in the research work of three-dimensional model construction; Third, whether it is oblique photography or BIM and other modeling methods, there are long modeling time cycles, high hardware dependence, and high cost investment. The three-dimensional model construction work has objective problems of high investment and low efficiency. At the same time, there are also many data reconstruction problems in the updating of model data; Fourth, in the common oblique photogrammetry three-dimensional spatial model, the non-single model has the industry pain point of looking good but not being easy to use, and the single work requires a lot of manpower, material resources and time costs. Summary of the invention
[0004] Based on this, it is necessary to provide a method and system for quickly constructing a three-dimensional spatial model of a multi-level building in response to the above technical problems.
[0005] A method for quickly constructing a three-dimensional space model of a multi-level building comprises the following steps:
[0006] Acquire basic data, and obtain fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set;
[0007] Designing floor entity codes according to the fused two-dimensional building data to obtain floor entity codes;
[0008] Differentiate floor information attributes according to the basic data and the floor entity code to obtain floor basic data;
[0009] Obtaining building floor elevation information according to the digital elevation data set and the floor basic data;
[0010] A three-dimensional spatial model of a multi-level building is obtained according to the building floor elevation information.
[0011] In one embodiment, the two-dimensional building dataset includes:
[0012] Building classification structure, grounding method of mountain buildings, building two-dimensional data attribute information and floor height data.
[0013] In one embodiment, obtaining fused two-dimensional building data according to the basic data includes:
[0014] Constructing building classification and complex surface grounding mode rules, performing identification and classification according to the building classification and complex surface grounding mode rules and the basic data, and obtaining building classification results and base types;
[0015] The base surface is cut according to the building classification result, the base type and the digital elevation data set to obtain fused two-dimensional building data.
[0016] In one embodiment, the floor entity code is designed according to the fused two-dimensional building data, and the floor entity code is obtained including:
[0017] A floor entity code composition formula is established, and a floor entity code design is performed according to the floor entity code composition formula and the fused two-dimensional building data to obtain the floor entity code:
[0018] Code Building_identification
[0019] =Code province &Code city &Code county &Code town &Code community &Codebuilding
[0020] Code Floor_identification =Code Building_identification &Code floor
[0021] Among them, Code Building_identification Indicates the building entity code, Code province Indicates the provincial administrative division code, Code city Indicates the city-level administrative division code, Code county Indicates the district and county-level administrative division code, Code town Indicates the administrative division code of the township and street level. Code community Indicates the community village administrative division code, Code building Indicates the building code of the community village unit. Code Floor_identification Indicates the floor entity code, Code floor Indicates the floor code.
[0022] In one embodiment, the floor information attributes are differentiated according to the basic data and the floor entity code to obtain the floor basic data including:
[0023] Obtaining building element attribute information according to the two-dimensional building data attribute information;
[0024] Add the number of coding bits and coding values according to the building entity code and the floor number information to obtain the floor entity code information;
[0025] According to the building element attribute information and the floor entity code information, the building entity code is used as an index to perform information correspondence and obtain initial floor basic data;
[0026] With the floor entity code as the index and the initial floor basic data as the basis, other attribute information is inherited to obtain the floor basic data.
[0027] In one embodiment, obtaining building floor elevation information according to the digital elevation data set and the floor basic data includes:
[0028] A model elevation construction formula is established, and building floor elevation information is obtained according to the digital elevation dataset, the floor basic data and the model elevation construction formula:
[0029]
[0030] Among them, Scheme elevation_acquisition Indicates the building floor elevation information, H floor Represents the floor height variable, H roofRepresents the roof height variable, H base Represents the building base height variable, H DSM Represents digital surface model data, H DEM Represents digital terrain model data, Num floor Represents the variable of the number of floors, C floor Represents the floor height constant.
[0031] In one embodiment, obtaining a three-dimensional spatial model of a multi-level building according to the building floor elevation information includes:
[0032] Obtaining a patch-level model, and performing model fusion based on the patch-level model according to the building entity code to form a floor-level three-dimensional model;
[0033] According to the floor height data and the building floor elevation information, based on the floor-level three-dimensional model, the building model entity component fusion is performed to obtain a component-level three-dimensional model;
[0034] According to the building entity code, based on the floor-level three-dimensional model and the component-level three-dimensional model, model fusion is performed to obtain a multi-level three-dimensional space model of the building.
[0035] A system for rapidly constructing a three-dimensional space model of a multi-level building, used to implement the method for rapidly constructing a three-dimensional space model of a multi-level building as described above, comprising:
[0036] The building segmentation module is used to obtain basic data and obtain fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set;
[0037] A physical coding module, used for designing a floor physical coding according to the fused two-dimensional building data to obtain a floor physical coding;
[0038] An information differentiation module, used for performing floor information attribute differentiation according to the basic data and the floor entity code to obtain floor basic data;
[0039] An elevation acquisition module, used to obtain building floor elevation information according to the digital elevation data set and the floor basic data;
[0040] The model building module is used to obtain a three-dimensional space model of a multi-level building according to the building floor elevation information.
[0041] A device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of a method for rapidly constructing a three-dimensional spatial model of a multi-level building described in the above-mentioned embodiments are implemented.
[0042] A storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for rapidly constructing a three-dimensional space model of a multi-level building as described in the above-mentioned embodiments.
[0043] Compared with the prior art, the advantages and beneficial effects of the present invention are: the present invention can analyze the difference in the characteristics of two-dimensional and three-dimensional building data, sort out the classification system of complex mountainous urban buildings, the classification system of complex base surfaces, and the logic of combined construction relationships, clarify the degree of refinement of model expression, study the acquisition algorithm of elevation information and the rational expression of the model, and realize the construction of a data processing method system for the two-dimensional and three-dimensional conversion of buildings. It takes into account efficiency, cost, and effect, and gives full play to the data resource efficiency of two-dimensional data. It can make full use of basic surveying and mapping data such as topographic maps, completion drawings, and master plans, give play to the value of spatial graphic information and attribute information contained in two-dimensional data, and can directly construct multi-level and monomeric model results quickly and at low cost. At the same time, it is fully combined with the terrain characteristics of mountainous cities. The multi-level model results and coding design also provide multiple levels of spatial carriers for the management of social and economic operation information. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a process of a method for rapidly constructing a three-dimensional space model of a multi-level building in one embodiment;
[0045] Figure 2 A schematic diagram of base surface classification and splitting in one embodiment;
[0046] Figure 3 A schematic diagram of floor entity coding composition in one embodiment;
[0047] Figure 4 A schematic diagram of calculating floor elevation information of three types of buildings in one embodiment;
[0048] Figure 5 A schematic diagram of constructing a three-dimensional spatial model of a multi-level building in one embodiment;
[0049] Figure 6 A schematic diagram of the structure of a system for rapidly constructing a three-dimensional spatial model of a multi-level building in one embodiment;
[0050] Figure 7 Schematic diagram of the internal structure of a device in one embodiment. DETAILED DESCRIPTION
[0051] Before describing the specific embodiments of the present invention, the overall concept of the present invention is described as follows:
[0052] The present invention is mainly developed for the process of building three-dimensional spatial models of buildings. At present, the following major problems exist in the mining of two-dimensional stock data and the construction of three-dimensional models: a large amount of two-dimensional stock data has not been fully explored and utilized, and higher-precision spatial graphic information and relatively rich attribute information have not been fully utilized and activated, and the value and efficiency of stock data have not been fully utilized; compared with plain cities, the complexity of mountain cities in terms of terrain features, building structure types, and building ground base surfaces has always been one of the difficulties in the research work of three-dimensional model construction; whether it is oblique photography or BIM and other modeling methods, there are long modeling time cycles, high hardware dependence, and high cost investment. The three-dimensional model construction work has objective problems of high investment and low efficiency, and at the same time, the updating of model data also has many data reconstruction problems; in the common oblique photography measurement three-dimensional spatial model, the non-single model has the industry pain point of looking good but not being easy to use, but the singular work requires a lot of manpower, material resources and time costs.
[0053] Therefore, the present invention proposes a method for rapidly constructing a three-dimensional spatial model of a multi-level building, focusing on the research on the rapid conversion technology of two-dimensional data of a building to three-dimensional data, through the analysis of the difference in the characteristics of two-dimensional and three-dimensional building data, combing the classification system of complex mountainous urban buildings, the classification system of complex base surfaces, and the logic of combined construction relationships, clarifying the degree of refinement of model expression, studying the acquisition algorithm of elevation information and the rational expression of the model, and realizing the construction of a data processing method system for the two-dimensional and three-dimensional conversion of buildings. The present invention takes into account efficiency, cost, and effect, gives full play to the data resource efficiency of two-dimensional data, specifically clarifies the relevant hierarchical system and attribute association of buildings, fully considers issues such as hierarchy and coding, constructs the semantic relationship of multi-level building models, and provides a core framework for multi-level building models.
[0054] After introducing the overall concept of the present invention, in order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific implementation methods in conjunction with the accompanying drawings.
[0055] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of this specification should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in one or more embodiments of this specification do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0056] In one embodiment, Figure 1 As shown, a method for quickly constructing a three-dimensional space model of a multi-level building is provided, comprising the following steps:
[0057] Step S101, acquiring basic data, and obtaining fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set.
[0058] Specifically, basic data is first obtained, and the basic data includes a two-dimensional building data set and a digital elevation data set. It is necessary to divide the simple building base surface of the building according to the basic data to obtain the fused two-dimensional building data after division. The digital elevation data set includes: digital terrain model data (DEM) and digital surface model data (DSM).
[0059] On this basis, the 2D building dataset includes:
[0060] Building classification structure, grounding method of mountain buildings, building two-dimensional data attribute information and floor height data.
[0061] Specifically, taking Chongqing as an example, Chongqing is a super-large mountainous city with complex and diverse building types and rich and varied grounding methods. Some buildings are built on the mountain and are accompanied by the stepped terrain. By summarizing and analyzing the building classification structure in Chongqing, it can be divided into plate-type buildings and tower-type buildings in terms of building combination form, and can be divided into main buildings (such as towers) and auxiliary buildings (such as podium buildings) in terms of building subordination. In order to facilitate the design of the elevation acquisition method, the present invention divides the buildings into two building classification structures according to the combination relationship: single-family buildings and composite buildings, and lists special structures separately for morphological supplement. The grounding methods of modern mountain buildings can be further summarized as eight methods: filling, dropping, cantilevering, spanning, cliff-attached, underground, bending, and branch connection. This method divides and summarizes the current grounding methods of mountain buildings, and sorts them into simple base surfaces and complex base surfaces for processing. For the data of simple base surfaces, that is, the base surface of the building and the ground are approximately in the same plane, the base surface of the building is directly used for subsequent processing. For the data of the same building base surface with different height differences, the spatial unit is split, combined with the current status of the two-dimensional building data map, to form a simple base surface, and then the three-dimensional model is constructed in blocks.
[0062] On this basis, the fused two-dimensional building data obtained according to the basic data includes:
[0063] Constructing building classification and complex surface grounding mode rules, performing identification and classification according to the building classification and complex surface grounding mode rules and the basic data, and obtaining building classification results and base types;
[0064] The base surface is cut according to the building classification result, the base type and the digital elevation data set to obtain fused two-dimensional building data.
[0065] Specifically, we first combine architectural theory to construct the rules for building classification and complex surface grounding methods, and form a basis for two-dimensional data classification and grounding method selection rules.
[0066] Combining the arcpy site package and the Geopandas library, the building codes of the two-dimensional building dataset are used to traverse the spatial graphic data, obtain the spatial graphic information of the spots, perform internal traversal and measurement on the dataset with multiple spots, and calculate the common edge relationship between the spots. The feature set with common edge relationship is a composite building, and the rest are single buildings. Figure 2As shown, the base surface is classified and split in combination with the digital terrain model data (DEM), the feature patches are traversed, the building surface features are obtained, and the digital terrain model data grid units within the spatial range of the patches are clipped and extracted, the digital terrain model data of the building surface features are obtained, the grid unit elevation values are read, and elevation mutation detection is performed. When there is an elevation mutation in the area, the elevation value corresponding to the elevation mutation site is obtained, and the digital terrain model data is rasterized according to the mutation value, converted into a vector feature to obtain the segmentation line, and the building surface features are segmented graphically to obtain the segmented building patch result set, and a simple base surface is obtained. The segmentation process from the complex base surface to the simple base surface is realized, and the fused two-dimensional building data corresponding to the simple base surface is obtained.
[0067] Step S102, designing floor entity codes according to the fused two-dimensional building data to obtain floor entity codes.
[0068] Specifically, floor entity codes are designed and allocated. For the cut floor entity building patterns with simple base surfaces, floor entity codes are designed based on the administrative division codes and building codes to form a unique identification code for the smallest unit floor, serving the building attribute information management and subsequent economic and social attribute information connection and expansion.
[0069] On this basis, the floor entity code design is performed according to the fused two-dimensional building data, and the obtained floor entity code includes:
[0070] A floor entity code composition formula is established, and a floor entity code design is performed according to the floor entity code composition formula and the fused two-dimensional building data to obtain the floor entity code:
[0071] Code Building_identification
[0072] =Code province &Code city &Code county &Code town &Code community &Code building
[0073] Code Floor_identification =Code Building_identification &Code floor
[0074] Among them, Code Building_identification Indicates the building entity code, Code province Indicates the provincial administrative division code, Code city Indicates the city-level administrative division code, Code countyIndicates the district and county-level administrative division code, Code town Indicates the administrative division code of the township and street level. Code community Indicates the community village administrative division code, Code building Indicates the building code of the community village unit. Code Floor_identification Indicates the floor entity code, Code floor Indicates the floor code.
[0075] Specifically, building buildings and floors are entity units in the real world. When abstracted into the geospatial database, each entity unit is a corresponding geographic entity. In order to enable effective query, retrieval and management of building entities, it is necessary to design floor entity coding for building entities. The floor entity coding composition formula is as follows:
[0076] Code Building_identification
[0077] =Code province &Code city &Code county &Code town &Code community &Code building
[0078] Code Floor_identification =Code Building_identification &Code floor
[0079] Among them, Code Building_identification Indicates the building entity code, that is, the unique identification code of the model building level, Code Floor_identification Indicates the floor entity code, that is, the floor-level unique identification code of the smallest unit of model data. province 、Code city 、Code county The three together form a 6-digit administrative division code, Code town and Code community They are the township and street level and community and village level administrative division codes, which together form a 6-digit community street code. building Code is the 7-digit building code within the community village unit. floor It is the 4-digit floor code corresponding to each floor in the building. Figure 3 The figure shows the schematic diagram of floor entity coding composition.
[0080] Taking Chongqing as an example, digits one to six are the administrative division code, such as 500103 for Yuzhong District, Chongqing; digits seven to twelfth are the community street code, such as 003024 for the Luohan Temple community in Jiefangbei; digits thirteen to nineteen are the sequence code within the area, which is determined by human-computer interaction to determine the sequence number of the building in the area to which it belongs; digits twenty to twenty-three are the floor code, which represents the floor number of the building to which the building belongs.
[0081] In this embodiment, a floor entity coding composition formula is established to ensure the uniqueness of the graphic element information during the construction of the three-dimensional spatial model of the multi-level building, while accurately inheriting the rich attribute information of the two-dimensional building attributes, and can give full play to the spatial base of the social and economic information of the three-dimensional spatial model of the multi-level building, thereby improving the scalability of the model.
[0082] Step S103, performing floor information attribute differentiation according to the basic data and the floor entity code to obtain floor basic data.
[0083] Specifically, after obtaining the floor entity code, it is necessary to extract and differentiate the attribute information of the building's two-dimensional data and complete the entity coding implementation. Based on the building data floors and floor use data, a differentiation process is designed to differentiate the two-dimensional building data of a single patch into floor building patches according to the floor information, and split the floor use attributes of the building floors. At the same time, the inheritance of other attribute information of the corresponding floors is completed. In the process of data differentiation, the basic floor data is obtained according to the floor entity code composition formula.
[0084] On this basis, the floor information attributes are differentiated according to the basic data and the floor entity code, and the floor basic data obtained includes:
[0085] Obtaining building element attribute information according to the two-dimensional building data attribute information;
[0086] Add the number of coding bits and coding values according to the building entity code and the floor number information to obtain the floor entity code information;
[0087] According to the building element attribute information and the floor entity code information, the building entity code is used as an index to perform information correspondence and obtain initial floor basic data;
[0088] With the floor entity code as the index and the initial floor basic data as the basis, other attribute information is inherited to obtain the floor basic data.
[0089] Specifically, the two-dimensional data attribute information of a building includes the building name, structure, age, address, building number, unit number, floor number, floor use and other attribute information. In order to differentiate the two-dimensional data attribute information of a building building into floor-level units, it is necessary to fully parse the floor number and floor use attributes of the building building. In particular, the single attribute value in the floor use attribute includes the floor sequence and floor use of all floors, and there are multiple component elements such as symbol segmentation, mixed Chinese, English and numbers. The attributes are differentiated according to the floor number information, and the attribute information is refined from the building level to the floor level. The specific technical links include: first, using the arcpy site package to read the two-dimensional spatial data of the building and the two-dimensional data attribute information of the building, and traversing the attribute information of the building elements through the arcpy.da.SearchCursor cursor; then using the floor number information to add the number of code bits and code values on the basis of the building entity code to form the floor entity code information, and using arcpy.da.UpdateCursor to form the code assignment, and then using the building's floor number information and the building's floor use attribute, by converting numbers, symbols and Chinese characters into national standard codes to complete the information content splitting, and at the same time using string special character segmentation and national standard code value segmentation and other methods to complete the word segmentation and parsing work, obtain the floor use information corresponding to each floor, and use the building entity code as an index, and use arcpy.da.UpdateCursor to connect the corresponding information; then using the building's floor attribute information, through keyword retrieval and comparison, classify the residential and non-residential types, and at the same time add a floor height attribute, leaving a numerical value input and calculation mechanism for the floor height, and provide an interface for various ways to obtain the floor height. Finally, using the floor entity code as an index, the inheritance of other building attribute information is completed, a result file is formed, and the basic floor data is obtained.
[0090] Step S104, obtaining building floor elevation information according to the digital elevation data set and the floor basic data.
[0091] Specifically, the digital terrain model data (DEM), digital surface model data (DSM), floor height data and other information are used to fully consider the graphic characteristics of the building and obtain the building floor elevation information.
[0092] On this basis, according to the digital elevation data set and the floor basic data, the building floor elevation information is obtained including:
[0093] A model elevation construction formula is established, and the building base elevation collection information and building floor elevation information are obtained according to the digital elevation data set, the floor basic data and the model elevation construction formula:
[0094]
[0095] Among them, Scheme elevation_acquisition Indicates the building floor elevation information, H floor Represents the floor height variable, H roof Represents the roof height variable, H base Represents the building base height variable, H DSM Represents digital surface model data, H DEM Represents digital terrain model data, Num floor Represents the variable of the number of floors, C floor Represents the floor height constant.
[0096] Specifically, Figure 4 As shown in the figure, three methods for calculating the building floor elevation information are designed based on the digital terrain model data (DEM), digital surface model data (DSM) and floor foundation data: ①DEM+DSM, the bottom elevation of the building is obtained according to DEM, and the top elevation of the building is obtained by DSM. The difference between the two is used as the overall elevation of the building. For combined buildings, the elevation of each individual building is calculated separately, and then the floors are split according to the overall elevation and the number of floors of the building; ②DEM+floor*floor height, the bottom elevation of the building is obtained according to the DEM data, and the overall height of the building is obtained by multiplying the height of each floor of the building by the total number of floors of the building, and then added to the bottom elevation of the building to obtain the top elevation of the building. For the height of each floor of the building, the calculation standard of 3m for residential areas and 4m for non-residential communities is used for value calculation; ③DSM-floor*floor height, under a complex base surface, the top elevation of the building is obtained according to the DSM data, and the overall height of the building is calculated in the same way as scheme ②, and the bottom elevation of the building is obtained by subtracting the overall height of the building from the top elevation of the building.
[0097] In this embodiment, the complex base features of the building can be better presented when the DEM data has high accuracy. A model elevation construction formula is established based on three elevation information collection and calculation schemes, and the model elevation construction method is automatically selected according to the input data to complete the acquisition of building floor elevation information.
[0098] Step S105, obtaining a three-dimensional space model of a multi-level building according to the building floor elevation information.
[0099] Specifically, Figure 5 As shown in the figure, the semantic relationship of the three-dimensional model is sorted out. According to the semantic relationship of inclusion and being included, composition and being composed between the units at each level of the building, the three-level building model subjects of floor level, component level and building level are created, and the multi-level model semantic relationship between the three-level subjects is constructed. Based on the above multi-level model semantic relationship, the process is implemented and the tool is encapsulated to obtain a multi-level building three-dimensional space model.
[0100] On this basis, according to the building floor elevation information, a multi-level building three-dimensional space model is obtained, including:
[0101] Obtaining a patch-level model, and performing model fusion based on the patch-level model according to the building entity code to form a floor-level three-dimensional model;
[0102] According to the floor height data and the building floor elevation information, based on the floor-level three-dimensional model, the building model entity component fusion is performed to obtain a component-level three-dimensional model;
[0103] According to the building entity code, based on the floor-level three-dimensional model and the component-level three-dimensional model, model fusion is performed to obtain a multi-level building three-dimensional space model.
[0104] Specifically, there are semantic relationships of inclusion and being included, composition and being composed between the floor level, component level and building level of the multi-level building three-dimensional model. The multi-level semantic relationships are sorted out and the model management logic is designed to realize the construction of the multi-level building three-dimensional space model. Since the two-dimensional data of the building is managed by two-dimensional graphics and corresponding attribute tables when carrying floor information, when there are multiple floor components with different numbers of floors in the same building, the two-dimensional data will be further divided, thus forming a data status where multiple spots together constitute the same building. In three-dimensional space, due to the improvement of spatial dimensions, the floor components with different numbers of floors in the same building can be directly expressed and attributed through models. Therefore, in the construction process of the multi-level building three-dimensional space model, there is a transitional model called the spot-level model, which serves as the basis for the construction and integration of the floor-level three-dimensional model and other level three-dimensional models.
[0105] The patch-level model is the most basic level in the process of building a three-dimensional spatial model of a multi-level building. Model fusion is performed on the basis of the patch-level model. According to the semantic relationship between the various levels of the model results, the results are divided into three levels: floor level, component level and building level. First, at the floor level, after the patch-level model is built, due to the limitations of DEM accuracy, some small patches are not at the same height as adjacent patches. It is necessary to optimize the floor elevation acquisition rules. The building entity code is used as the basis for division, and the building is divided. According to the overall building, the area occupied by the plane projection of the building is integrated to calculate the elevation values such as the local mean elevation and the center point elevation value. The most reasonable elevation collection method is used as the bottom height of the entire building, so as to achieve the effect that the building elevation can be unified, the floor model can be integrated, and the elevation difference between buildings can be displayed. For the structure of the main building and the podium, in the overlapping area of the main building and the podium, the spot-level model is used as the data basis, combined with the number of floors, floor elevation, use purpose, building code and other information, to make logical judgments to determine whether the overlapping area belongs to the main building or is connected with the podium, and further model fusion is performed to open up the spot interval and complete the construction of the floor-level 3D model as the carrier unit and management medium of the floor-level information. At the component level, the floor-level 3D model is used as the data basis to transform the model into entities, and batch processing and manual labeling with the assistance of attribute information are used to correct and improve the floor-level data, accurately distinguish the main building, auxiliary building, tower podium and other building types of the whole building, form the fusion of building model entities, complete the construction of component-level 3D model, as the carrier unit and management medium of component-level information. At the building level, according to the information such as building code, the floor or component 3D model is model-fused to complete the construction of the building-level 3D model, that is, the multi-level building 3D space model, as the carrier unit and management medium of building-level information.
[0106] The present invention makes full use of basic surveying and mapping data such as topographic maps, completion drawings, and master plans, and gives full play to the value of spatial graphic information and attribute information contained in two-dimensional data. It can quickly and cost-effectively directly construct multi-level, individual model results, and fully combine with the terrain characteristics of mountainous cities. The multi-level model results and coding design also provide multiple levels of spatial carriers for the management of social and economic operation information. The rapid conversion of building data from two to three dimensions is not only an upgrade at the spatial level, but also an upgrade of attribute information carrying and expression from abstraction to concreteness. The attribute connotation of two-dimensional data is abstract, and the attribute information is often implicit in the attribute table, which is difficult to read. The multi-level three-dimensional spatial model can directly display the attribute information on each specific unit to achieve concrete expression.
[0107] It should be noted that the method of the embodiment of the present invention can be performed by a single device, such as a computer or a server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present invention, and the multiple devices will interact with each other to complete the described method.
[0108] It should be noted that some embodiments of the present invention are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0109] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present invention also provides a system for rapidly constructing a three-dimensional spatial model of a multi-level building.
[0110] refer to Figure 6 The system for rapidly constructing a three-dimensional spatial model of a multi-level building comprises:
[0111] The building segmentation module 601 is used to obtain basic data and obtain fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set;
[0112] A physical coding module 602 is used to design a floor physical coding according to the fused two-dimensional building data to obtain a floor physical coding;
[0113] An information differentiation module 603 is used to differentiate floor information attributes according to the basic data and the floor entity code to obtain floor basic data;
[0114] The elevation acquisition module 604 is used to obtain the building floor elevation information according to the digital elevation data set and the floor basic data;
[0115] The model building module 605 is used to obtain a three-dimensional space model of a multi-level building according to the building floor elevation information.
[0116] For the convenience of description, the above system is described as being divided into various modules according to their functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0117] The system of the above embodiment is used to implement a corresponding method for quickly constructing a three-dimensional space model of a multi-level building in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0118] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present invention also provides a device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for rapidly constructing a three-dimensional spatial model of a multi-level building as described in any of the above embodiments is implemented.
[0119] Figure 7 A more specific schematic diagram of the hardware structure of a device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.
[0120] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0121] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0122] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0123] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0124] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0125] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0126] The device of the above embodiment is used to implement a corresponding method for quickly constructing a three-dimensional space model of a multi-level building in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0127] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present invention also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute a method for quickly constructing a three-dimensional spatial model of a multi-level building as described in any of the above embodiments.
[0128] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0129] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute a method for quickly constructing a three-dimensional space model of a multi-level building as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0130] The technical solutions in the present invention will be described clearly and completely below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0131] Embodiment 1
[0132] The basic data for constructing the three-dimensional spatial model of multi-level buildings is the two-dimensional spatiotemporal database of urban buildings in Chongqing. A two-dimensional vector graphic of a house is constructed on the plane as the basic patch-level element. The specific attribute information contained in the database is split into two-dimensional building floor information through Python language, and the building code, current use of each floor, and floor number of each floor are extracted. According to the current use of each floor, automatic coding, floor information segmentation and floor height information calculation are performed to obtain various attribute information, coding information and elevation information after splitting, and combined with the two-dimensional primitive information. The 3D Forcer tool in FME is used to convert the two-dimensional data format into a three-dimensional data format. Then, the Extrude tool is used to convert the two-dimensional primitive into a three-dimensional spatial model according to the corresponding elevation value and stretching rule in combination with the elevation information. Then, the joint of the attribute information is completed according to the coding information, and the patch model as the process data is obtained. Then, according to the building code, number of floors, floor elevation, and use information, Solid The Dissolver tool realizes the fusion of floor-level models and obtains the three-dimensional model of the floor. According to the component tag information, it realizes the fusion of each component in the model and obtains the component three-dimensional model. Finally, it uses the building information to realize the fusion processing of each building model and obtain the three-dimensional model of the building (three-dimensional spatial model of a multi-level building).
[0133] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention (including the claims) is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0134] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0135] In addition, to simplify the description and discussion, and in order not to obscure the embodiments of the present invention, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the devices may be shown in the form of block diagrams to avoid obscuring the embodiments of the present invention, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present invention will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present invention, it will be apparent to those skilled in the art that embodiments of the present invention may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0136] Although the invention has been described in conjunction with specific embodiments of the invention, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0137] The embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for rapidly constructing a three-dimensional spatial model of a multi-level building, characterized in that: include: Acquire basic data, and obtain fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set; the two-dimensional building data set includes: a building classification structure, a mountain building grounding method, building two-dimensional data attribute information and floor height data; the mountain building grounding method includes: a simple base surface and a complex base surface; the fused two-dimensional building data includes: a simple base surface segmented corresponding to the complex base surface; Designing floor entity codes according to the fused two-dimensional building data to obtain floor entity codes; Differentiating the floor information attributes according to the basic data and the floor entity code to obtain the floor basic data; wherein differentiating the floor information attributes according to the basic data and the floor entity code to obtain the floor basic data comprises: Obtaining building element attribute information according to the two-dimensional building data attribute information; According to the building entity code and the floor number information, the code digits and code values are added to obtain the floor entity code information; According to the building element attribute information and the floor entity code information, the building entity code is used as an index to perform information correspondence and obtain initial floor basic data; Using the floor entity code as an index and the initial floor basic data as a basis, other attribute information is inherited to obtain the floor basic data; Obtaining building floor elevation information according to the digital elevation dataset and the floor basic data; wherein obtaining building floor elevation information according to the digital elevation dataset and the floor basic data comprises: A model elevation construction formula is established, and building floor elevation information is obtained according to the digital elevation dataset, the floor basic data and the model elevation construction formula: Among them, Scheme elevation_acquisition Indicates the building floor elevation information, H floor Represents the floor height variable, H roof Represents the roof height variable, H base Represents the building base height variable, H DSM Represents digital surface model data, H DEM Represents digital terrain model data, Num floor Represents the variable of the number of floors, C floor Represents the floor height constant; A three-dimensional spatial model of a multi-level building is obtained according to the building floor elevation information.
2. A method for rapidly constructing a three-dimensional space model of a multi-level building according to claim 1, characterized in that: The obtaining of fused two-dimensional building data according to the basic data comprises: Constructing building classification and complex surface grounding mode rules, performing identification and classification according to the building classification and complex surface grounding mode rules and the basic data, and obtaining building classification results and base types; The base surface is cut according to the building classification result, the base type and the digital elevation data set to obtain fused two-dimensional building data.
3. A method for rapidly constructing a three-dimensional space model of a multi-level building according to claim 1, characterized in that: The floor entity code design is performed according to the fused two-dimensional building data to obtain the floor entity code, which includes: A floor entity code composition formula is established, and a floor entity code design is performed according to the floor entity code composition formula and the fused two-dimensional building data to obtain the floor entity code: Code Building_identification =Code province &Code city &Code county &Code town &Code community &Code building Code Floor_identification =Code Building_identification &Code floor Among them, Code Building_identification Indicates the building entity code, Code province Indicates the provincial administrative division code, Code city Indicates the city-level administrative division code, Code county Indicates the district and county-level administrative division code, Code town Indicates the administrative division code of the township and street level. Code community Indicates the community village administrative division code, Code building Indicates the building code of the community village unit. Code Floor_identification Indicates the floor entity code, Code floor Indicates the floor code.
4. A method for rapidly constructing a three-dimensional space model of a multi-level building according to claim 3, characterized in that: The obtaining of the three-dimensional spatial model of a multi-level building according to the building floor elevation information comprises: Obtaining a patch-level model, and performing model fusion based on the patch-level model according to the building entity code to form a floor-level three-dimensional model; According to the floor height data and the building floor elevation information, based on the floor-level three-dimensional model, the building model entity component fusion is performed to obtain a component-level three-dimensional model; According to the building entity code, based on the floor-level three-dimensional model and the component-level three-dimensional model, model fusion is performed to obtain a multi-level three-dimensional space model of the building.
5. A system for rapidly constructing a three-dimensional spatial model of a multi-level building, characterized in that: A method for rapidly constructing a three-dimensional spatial model of a multi-level building as claimed in claims 1 to 4, comprising: The building segmentation module is used to obtain basic data and obtain fused two-dimensional building data according to the basic data; wherein the basic data includes: a two-dimensional building data set and a digital elevation data set; the two-dimensional building data set includes: a building classification structure, a mountain building grounding method, a building two-dimensional data attribute information and a floor height data; the mountain building grounding method includes: a simple base surface and a complex base surface; the fused two-dimensional building data includes: a simple base surface segmented corresponding to the complex base surface; A physical coding module, used for designing a floor physical coding according to the fused two-dimensional building data to obtain a floor physical coding; An information differentiation module is used to differentiate floor information attributes according to the basic data and the floor entity code to obtain floor basic data; wherein, the differentiation of floor information attributes according to the basic data and the floor entity code to obtain floor basic data includes: Obtaining building element attribute information according to the two-dimensional building data attribute information; According to the building entity code and the floor number information, the code bit number and the code value are added to obtain the floor entity code information; According to the building element attribute information and the floor entity code information, the building entity code is used as an index to perform information correspondence and obtain initial floor basic data; Using the floor entity code as an index and the initial floor basic data as a basis, other attribute information is inherited to obtain the floor basic data; The elevation acquisition module is used to obtain the building floor elevation information according to the digital elevation data set and the floor basic data; wherein, obtaining the building floor elevation information according to the digital elevation data set and the floor basic data includes: A model elevation construction formula is established, and building floor elevation information is obtained according to the digital elevation dataset, the floor basic data and the model elevation construction formula: Among them, Scheme elevation_acquisition Indicates the building floor elevation information, H floor Represents the floor height variable, H roof Represents the roof height variable, H base Represents the building base height variable, H DSM Represents digital surface model data, H DEM Represents digital terrain model data, Num floor Represents the variable of the number of floors, C floor Represents the floor height constant; The model building module is used to obtain a three-dimensional space model of a multi-level building according to the building floor elevation information.
6. A device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
