CN117934743A - A method and device for intelligently deriving multi-level structures of three-dimensional semantic models - Google Patents

A method and device for intelligently deriving multi-level structures of three-dimensional semantic models Download PDF

Info

Publication number
CN117934743A
CN117934743A CN202410112397.7A CN202410112397A CN117934743A CN 117934743 A CN117934743 A CN 117934743A CN 202410112397 A CN202410112397 A CN 202410112397A CN 117934743 A CN117934743 A CN 117934743A
Authority
CN
China
Prior art keywords
dimensional
model
building
semantic
citygml
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
CN202410112397.7A
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.)
Terry Digital Technology Beijing Co ltd
Xining Surveying And Mapping Institute
Qinghai University
Original Assignee
Terry Digital Technology Beijing Co ltd
Xining Surveying And Mapping Institute
Qinghai University
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 Terry Digital Technology Beijing Co ltd, Xining Surveying And Mapping Institute, Qinghai University filed Critical Terry Digital Technology Beijing Co ltd
Priority to CN202410112397.7A priority Critical patent/CN117934743A/en
Publication of CN117934743A publication Critical patent/CN117934743A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a multi-level structure intelligent deriving method and device of a three-dimensional semantic model, wherein the method comprises the following steps: the method comprises the steps of firstly, obtaining original three-dimensional model data of a plurality of three-dimensional building models to determine semantic expressions corresponding to all the CityGML building components; extracting geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data to obtain geometric expression corresponding to each CityGML building component; thirdly, establishing a mapping body between semantic expressions and geometric expressions corresponding to each level model; and fourthly, intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure diagram corresponding to each level model, thereby realizing the derivation of different level models. The invention realizes unified position relation and classified expression of building components on the space data, can facilitate management and classified storage of the space data, can carry out classified loading of ground objects under different scales according to different requirements during visualization, and improves the visualization and classification efficiency of mass data.

Description

一种三维语义模型的多层次结构智能派生方法及装置A method and device for intelligently deriving multi-level structures of three-dimensional semantic models

技术领域Technical Field

本发明涉及三维建模技术领域,特别是一种三维语义模型的多层次结构智能派生方法及装置。The present invention relates to the technical field of three-dimensional modeling, and in particular to a method and device for intelligently deriving a multi-level structure of a three-dimensional semantic model.

背景技术Background technique

建筑物三维建模目前语义表达能力较差,导致三维地理信息系统(geographicinformation system,GIS)利用率低,难以满足建筑物部件信息查询、能耗分析和精细化管理等深层次应用。此外,由于缺乏统一的建模标准,许多三维数据格式互不兼容,可重用性差,而且无法反应空间之间的位置关系的数学化,导致建筑物三维模型互操作和数据共享困难,同时缺乏语义和空间定位之间建立关系。因此,如何增强三维模型的语义特征的新映射关系,减少三维模型制作维护成本,方便实现其数据的检索和共享、互操作,已成为当前智慧城市建设中亟需解决的难题。The current semantic expression ability of building 3D modeling is poor, resulting in low utilization of 3D geographic information system (GIS), which is difficult to meet the deep-level applications such as building component information query, energy consumption analysis and refined management. In addition, due to the lack of unified modeling standards, many 3D data formats are incompatible with each other, have poor reusability, and cannot reflect the mathematical relationship between spatial positions, resulting in difficulties in interoperability and data sharing of building 3D models, and lack of relationship between semantics and spatial positioning. Therefore, how to enhance the new mapping relationship of the semantic features of 3D models, reduce the cost of 3D model production and maintenance, and facilitate the retrieval, sharing and interoperability of its data has become a difficult problem that needs to be solved in the current smart city construction.

城市地理标记语言(citygeography markup language,CityGML)是开放地理空间信息联盟(Open Geospatial Consortium,OGC)推出的虚拟三维城市模型存储和交换国际开放标准,也是三维GIS领域一种通用语义信息模型。CityGML模型强调几何、拓扑和语义表达的一致性,其弥补了传统三维模型在数据共享和互操作方面的不足,增强了三维模型重用性,因而在城市规划、建筑物光照估计、能源需求分析、阴影分析、噪声传播估计及三维地籍和设施管理等众多领域有广泛应用。在建筑物三维表达方面,CityGML不仅定义了屋顶、墙面、地面、门、窗、房间等各种部件的语义信息,还采用5级LoD进行由简到繁的多尺度表达。CityGML(CityGeographyMarkupLan-guage城市地理标记语言)的出现为三维地理信息的广泛应用和共享带来了契机,然而目前5级LoD仅仅是从逻辑结构上进行归类,没有体现和逻辑层之间的空间位置关系,从而直接面向三维重建。City Geography Markup Language (CityGML) is an international open standard for the storage and exchange of virtual 3D city models launched by the Open Geospatial Consortium (OGC). It is also a universal semantic information model in the field of 3D GIS. The CityGML model emphasizes the consistency of geometric, topological and semantic expressions. It makes up for the shortcomings of traditional 3D models in data sharing and interoperability, and enhances the reusability of 3D models. Therefore, it is widely used in many fields such as urban planning, building illumination estimation, energy demand analysis, shadow analysis, noise propagation estimation, 3D cadastral and facility management. In terms of 3D expression of buildings, CityGML not only defines the semantic information of various components such as roofs, walls, floors, doors, windows, rooms, etc., but also uses 5 levels of LoD for multi-scale expression from simple to complex. The emergence of CityGML (City Geography Markup Language) has brought opportunities for the widespread application and sharing of 3D geographic information. However, the current 5-level LoD is only classified from the logical structure, without reflecting the spatial position relationship between the logical layers, and is directly oriented to 3D reconstruction.

现有技术中通过预设的数学公式来确定建筑构件的定位,以及位置关系,需要通过多个定点的坐标进行计算,并且计算时仅仅针对一栋建筑进行,因而效率不高。In the prior art, the positioning and positional relationship of building components are determined by a preset mathematical formula, which requires calculation through the coordinates of multiple fixed points, and the calculation is only performed for one building, so the efficiency is not high.

事实上,建筑构件中的楼层、屋顶、墙体、结构件如柱横梁等、门、窗,其坐标范围都有其特有的特征,他们之间也存在特有的范围交集。因此利用这一特点进行智能化重建成为一种可选地方案。In fact, the coordinate ranges of floors, roofs, walls, structural parts such as columns and beams, doors, and windows in building components all have their own unique characteristics, and there are also unique range intersections between them. Therefore, using this feature for intelligent reconstruction becomes an optional solution.

发明内容Summary of the invention

鉴于上述问题,本发明提出一种克服上述问题或者至少部分地解决上述问题的一种三维语义模型的多层次结构派生方法及装置。本专利针对现有的一些三维建模方法强调单一尺度几何模型构建,缺乏多细节层次(LoD)之间空间位置关系特点和语义信息表达,互操作性不强等问题,以国际开放标准CityGML为基础,提供了一种三维语义模型的多层次结构派生方法。In view of the above problems, the present invention proposes a method and device for deriving a multi-level structure of a three-dimensional semantic model that overcomes the above problems or at least partially solves the above problems. This patent aims at the problems that some existing three-dimensional modeling methods emphasize the construction of a single-scale geometric model, lack the characteristics of spatial position relationships and semantic information expression between multiple levels of detail (LoDs), and have weak interoperability. Based on the international open standard CityGML, this patent provides a method for deriving a multi-level structure of a three-dimensional semantic model.

根据本发明的一个方面,提供了一种三维语义模型的多层次结构智能派生方法,所述方法包括:According to one aspect of the present invention, a method for intelligently deriving a multi-level structure of a three-dimensional semantic model is provided, the method comprising:

获取多个三维建筑模型的原始三维模型数据(即IFC模型的原始三维模型数据),对于其中每一个,建立IFC模型和CityGML LoD4模型之间的语义映射规则,并基于所述语义映射规则和所述原始三维模型数据确定IFC建筑构件和CityGML建筑构件之间的对应关系,以确定各CityGML建筑构件对应的语义表达;Acquire original 3D model data of a plurality of 3D building models (i.e., original 3D model data of IFC models), establish a semantic mapping rule between the IFC model and the CityGML LoD4 model for each of the 3D building models, and determine a correspondence between the IFC building components and the CityGML building components based on the semantic mapping rule and the original 3D model data, so as to determine a semantic expression corresponding to each CityGML building component;

基于所述原始三维模型数据提取所述IFC模型中各IFC建筑构件对应的几何信息,对各所述IFC建筑构件对应的几何信息进行几何变换获取到对应的由空间数据点构成的三维数据结构图,来表示CityGML建筑构件,得到各所述CityGML建筑构件对应的几何表达;Extracting geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data, performing geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram composed of spatial data points to represent the CityGML building component, and obtaining a geometric expression corresponding to each CityGML building component;

通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的几何表达和语义表达,将所述建筑构件对应的语义表达和三维数据结构图中对应的数据点之间建立映射,建立各层级模型对应的语义表达和几何表达之间的映射体。The geometric expression and semantic expression of different levels of models of the three-dimensional building model are defined by the OGC CityGML standard, a mapping is established between the semantic expression corresponding to the building component and the corresponding data point in the three-dimensional data structure diagram, and a mapping body between the semantic expression and the geometric expression corresponding to each level of model is established.

容易理解的是,通过三维数据结构图建立了不是传统的二维映射表,而是三维的映射体,体现了各建筑构件语义和空间位置之间的关系。丰富了CityGML的表达方式,更加清楚地、方便地定位到建筑构件的位置。It is easy to understand that the three-dimensional data structure diagram establishes not a traditional two-dimensional mapping table, but a three-dimensional mapping body, which reflects the relationship between the semantics and spatial positions of each building component, enriches the expression of CityGML, and locates the position of building components more clearly and conveniently.

基于所述各层级模型对应的三维数据结构图智能重构所述三维建筑模型,从而实现不同层级模型的派生。The three-dimensional building model is intelligently reconstructed based on the three-dimensional data structure diagram corresponding to each level model, thereby realizing the derivation of different level models.

可选地,其中几何变换的方法包括:Optionally, the method of geometric transformation includes:

S1建立三维直角坐标系XYZ,定义坐标原点,在多个原始三维模型数据中以预设的点和所述原点重合,预设的方向和三维直角坐标系中的X轴或Y轴平行,标记出各层级模型对应的建筑构件;S1 establishes a three-dimensional rectangular coordinate system XYZ, defines a coordinate origin, and in a plurality of original three-dimensional model data, a preset point coincides with the origin, a preset direction is parallel to an X-axis or a Y-axis in the three-dimensional rectangular coordinate system, and marks the building components corresponding to each level model;

S2标记出不同建筑构件之间的交线,获取交线上任意点的坐标,得到在X轴、Y轴、Z轴上的坐标值范围,同时定义任一交线的定位点,使得所述定位点离开所述原点距离最近或者次近;S2 marks the intersections between different building components, obtains the coordinates of any point on the intersection, obtains the coordinate value range on the X-axis, Y-axis, and Z-axis, and defines a positioning point of any intersection so that the positioning point is closest or second closest to the origin;

S3将所述坐标值范围的跨度归一化后的值作为灰度数值或RGB彩色数值,由此得到任一交线的定位点和灰度数值或RGB彩色数值;将定位点和灰度数值或RGB彩色数值形成数据点,以定位点在坐标系中的位置将数据点定位到坐标系中,形成三维数据结构图,且数据点以带所述灰度数值或RGB彩色数值的符号表示。S3 uses the normalized span of the coordinate value range as a grayscale value or an RGB color value, thereby obtaining a positioning point and a grayscale value or an RGB color value of any intersection line; the positioning point and the grayscale value or the RGB color value form a data point, and the data point is positioned in the coordinate system according to the position of the positioning point in the coordinate system, forming a three-dimensional data structure diagram, and the data point is represented by a symbol with the grayscale value or the RGB color value.

所谓跨度就是指坐标值范围的长度,比如x坐标范围为[1,3],则跨度为2。The so-called span refers to the length of the coordinate value range. For example, if the x-coordinate range is [1,3], the span is 2.

可选地,所述预设的点为建筑底面的一个顶点,所述预设的方向的选定使得其中一个外立面所在平面与X轴或Y轴平行。Optionally, the preset point is a vertex of the bottom surface of the building, and the preset direction is selected so that the plane where one of the facades is located is parallel to the X-axis or the Y-axis.

可选地,定位完成的所述数据点采用不同符号来表示不同取向的交线。Optionally, the data points that have been located use different symbols to represent intersection lines of different orientations.

基于所述各层级模型对应的三维数据结构图智能重构所述三维建筑模型的方法具体包括:The method for intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure graph corresponding to each level model specifically includes:

S4对于任一三维数据结构图中的数据点,从定位点开始往X轴正方向进行移动形成第一轨迹,再从定位点开始往X轴负方向进行移动形成第二轨迹,使得第一第二轨迹的第一并集长度与X轴方向上跨度(即该定位点对应的交线在X轴方向上的跨度,也即该交线在X轴上投影长度,或投影在X轴上坐标值的范围)重合;从定位点开始往Y轴正方向进行移动形成第三轨迹,再从定位点开始往Y轴负方向进行移动形成第四轨迹,使得第三第四轨迹的第二并集长度与Y轴方向上跨度重合;从定位点开始往Z轴正方向进行移动形成第五轨迹,再从定位点开始往Z轴负方向进行移动形成第六轨迹,使得第五第六轨迹的第三并集长度与Z轴方向上跨度重合,由此获得第一并集至第三并集的总并集;S4: For any data point in the three-dimensional data structure diagram, starting from the positioning point, move in the positive direction of the X-axis to form a first track, and then starting from the positioning point, move in the negative direction of the X-axis to form a second track, so that the first union length of the first and second tracks coincides with the span in the X-axis direction (that is, the span of the intersection line corresponding to the positioning point in the X-axis direction, that is, the projection length of the intersection line on the X-axis, or the range of the coordinate values projected on the X-axis); starting from the positioning point, move in the positive direction of the Y-axis to form a third track, and then starting from the positioning point, move in the negative direction of the Y-axis to form a fourth track, so that the second union length of the third and fourth tracks coincides with the span in the Y-axis direction; starting from the positioning point, move in the positive direction of the Z-axis to form a fifth track, and then starting from the positioning point, move in the negative direction of the Z-axis to form a sixth track, so that the third union length of the fifth and sixth tracks coincides with the span in the Z-axis direction, thereby obtaining a total union of the first union to the third union;

S5建立斜线生成模型,所述斜线生成模型包括当在三维数据结构图中显示的总并集是平面正交线段或立体正交线段时,通过点击或识别平面正交线段或立体正交线段自动连接相应的计算方法形成斜线,所述计算方法是,对于平面正交线段为,对正交的两个正方向和两个负方向上分别作矩形,连接定位点所在的两个面对角线,生成斜线;对于立体正交线段则对正交的三个正方向和三个负方向上分别作平行六面直棱柱,连接定位点所在的两个体对角线,生成斜线;S5 establishes an oblique line generation model, the oblique line generation model includes forming an oblique line by automatically connecting the corresponding calculation method by clicking or identifying the plane orthogonal line segment or the three-dimensional orthogonal line segment when the total union displayed in the three-dimensional data structure diagram is a plane orthogonal line segment or a three-dimensional orthogonal line segment, the calculation method is that for the plane orthogonal line segment, a rectangle is made in two positive directions and two negative directions of the orthogonal line, and the two diagonals of the two faces where the positioning point is located are connected to generate an oblique line; for the three-dimensional orthogonal line segment, a parallel hexagonal right prism is made in three positive directions and three negative directions of the orthogonal line, and the two body diagonals where the positioning point is located are connected to generate an oblique line;

所述识别平面正交线段或立体正交线段可以采用将重建前原始三维模型数据中的线条和重建后的总并集进行差分运算,若差分结果为零说明重建后的总并集不是正交交线段,否则是正交线段。The identification of plane orthogonal line segments or stereo orthogonal line segments can be performed by performing a difference operation on the lines in the original three-dimensional model data before reconstruction and the total union after reconstruction. If the difference result is zero, it means that the total union after reconstruction is not an orthogonal line segment, otherwise it is an orthogonal line segment.

可以理解的是,如果不是斜线,则重建后的总并集是与重建签的交线是重合的,故而差分为零,否则差分结果为总并集的一个子集,即差分后有残余线条存在,在差分图像上显示为灰度值或彩色值不为零。由此可以实现正交线段这一类总并集的智能识别和连接计算方法重建斜线。It can be understood that if it is not a diagonal line, the total union after reconstruction coincides with the intersection line of the reconstructed signature, so the difference is zero, otherwise the difference result is a subset of the total union, that is, there are residual lines after the difference, which are displayed as grayscale values or color values that are not zero on the difference image. In this way, the intelligent recognition and connection calculation method of the total union of orthogonal line segments can be realized to reconstruct diagonal lines.

对于地形相切曲线和建筑外壳曲线属于建筑整体外表,对于这类线条属于建筑构件与外部非建筑构件(大地和空气)的界面,不属于建筑构件之间的交线,故不在轨迹和斜线生成范围内考虑。The terrain tangent curves and building shell curves belong to the overall appearance of the building. These lines are the interfaces between building components and external non-building components (the earth and the air), not the intersection lines between building components. Therefore, they are not considered in the scope of trajectory and oblique line generation.

S6建立建筑构件分类识别模型,通过分析得到建筑构件的分类,保存到相应的数据点中。S6 establishes a building component classification and recognition model, obtains the classification of building components through analysis, and saves it to the corresponding data points.

可选地,所述识别模型包括在总并集所在平面上采用SVM算法完成分类,和/或以定位点在XY平面上的投影坐标以及灰度值进行三维聚类分析完成分类。Optionally, the recognition model includes completing classification by using an SVM algorithm on the plane where the total union is located, and/or completing classification by performing a three-dimensional clustering analysis based on the projection coordinates and grayscale values of the positioning points on the XY plane.

优选地,其中SVM算法包括采用高斯核函数,将总并集所在平面上的数据点映射到三维希尔伯特空间中,采用第一超平面进行分类。Preferably, the SVM algorithm includes using a Gaussian kernel function to map data points on the plane where the total union is located into a three-dimensional Hilbert space, and using the first hyperplane for classification.

可选地,对于采用第一超平面进行分类后的到的同一分类中采用第二超平面进一步进行线性SVM分类。Optionally, a second hyperplane is used to further perform linear SVM classification in the same classification obtained after classification by the first hyperplane.

由此通过三维数据结构图作为所有建筑构件的几何和语义的映射三维关系,给出了不同建筑构件的几何和空间位置关系。Therefore, the geometric and spatial position relationship of different building components is given through the three-dimensional data structure diagram as the three-dimensional relationship of the geometry and semantic mapping of all building components.

优选地,获取交线上任意点的坐标替换为获取交线上预设间隔距离的点的坐标。容易理解的是,这样作可以减少距离最近的计算量。Preferably, obtaining the coordinates of any point on the intersection line is replaced by obtaining the coordinates of points at a preset interval on the intersection line. It is easy to understand that this can reduce the amount of calculation of the closest distance.

优选地,预设距离的点为交线上的端点及等分点。Preferably, the points of the preset distance are the endpoints and the equally divided points on the intersection line.

可选地,对于预选地理区域范围内的建筑群,所述几何变换的方法为:挑选基准建筑,在所述基准建筑中构建三维直角坐标系XYZ,并定义坐标原点,在基准建筑对应的原始三维模型数据中以预设的点和所述原点重合,预设的方向和三维直角坐标系中的X轴或Y轴平行,标记出基准建筑以及预选地理区域范围内其他所有建筑的各层级模型对应的建筑构件;接着执行步骤S2和S3;基于所述各层级模型对应的三维数据结构图智能重构所述三维建筑模型的方法同样包括步骤S4-S5,接下来进行S6',包括建立建筑构件群分类识别模型,先将预选地理区域范围内的所有非基准建筑中与基准建筑中对应的预设的点和所述原点重合,而相应的预设的方向和三维直角坐标系中的X轴或Y轴平行,由此使得所有非基准建筑对应的各层级模型对应的三维数据结构图平移到基准建筑的三维直角坐标系中,建立建筑构件群分类识别模型,通过分析得到建筑构件群的分类,保存到相应的非基准建筑对应的各层级模型对应的三维数据结构图的数据点中,最后反向平移各非基准建筑对应的各层级模型对应的三维数据结构图至所述三维直角坐标系中平移前的位置。Optionally, for a building complex within a preselected geographic area, the geometric transformation method is as follows: select a reference building, construct a three-dimensional rectangular coordinate system XYZ in the reference building, and define a coordinate origin, in the original three-dimensional model data corresponding to the reference building, a preset point coincides with the origin, a preset direction is parallel to the X-axis or Y-axis in the three-dimensional rectangular coordinate system, and the building components corresponding to each level model of the reference building and all other buildings within the preselected geographic area are marked; then steps S2 and S3 are executed; the method for intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure diagram corresponding to each level model also includes steps S4-S5, and then S6' is performed, including establishing building components A group classification and recognition model is provided, which firstly makes the preset points corresponding to the reference buildings in all non-reference buildings within the pre-selected geographical area coincide with the origin, and the corresponding preset direction is parallel to the X-axis or Y-axis in the three-dimensional rectangular coordinate system, thereby translating the three-dimensional data structure diagrams corresponding to the hierarchical models of all non-reference buildings into the three-dimensional rectangular coordinate system of the reference building, and establishing a building component group classification and recognition model, and obtaining the classification of the building component group through analysis, and saving it into the data points of the three-dimensional data structure diagrams corresponding to the hierarchical models of the corresponding non-reference buildings, and finally reversely translating the three-dimensional data structure diagrams corresponding to the hierarchical models of the non-reference buildings to the positions before the translation in the three-dimensional rectangular coordinate system.

其中,所述建筑构件群分类识别模型包括各建筑在总并集对应所在平面上采用SVM算法完成分类,和/或以各建筑所有定位点在XY平面上的投影坐标以及相应灰度值进行三维聚类分析完成分类。The building component group classification and recognition model includes classifying each building using an SVM algorithm on the plane corresponding to the total union, and/or performing three-dimensional clustering analysis on the projection coordinates of all positioning points of each building on the XY plane and the corresponding grayscale values to complete the classification.

优选地,其中SVM算法包括构建高斯核函数,将总并集所在平面上的数据点映射到三维希尔伯特空间中,采用第一超平面进行分类。Preferably, the SVM algorithm includes constructing a Gaussian kernel function, mapping the data points on the plane where the total union is located into a three-dimensional Hilbert space, and using the first hyperplane for classification.

可选地,对于采用第一超平面进行分类后的到的同一分类中采用第二超平面进一步进行线性SVM分类。Optionally, a second hyperplane is used to further perform linear SVM classification in the same classification obtained after classification by the first hyperplane.

由此通过统一的坐标系,将选定地理区域范围内的建筑群进行交线的集体获取以及三维数据结构图的制作和建筑群的整体重建。由于一个选定区域范围的建筑套型相似,因此各建筑构件的空间分布类似,从而通过SVM或聚类分析能够得到集体的构建分类识别,过后经反向平移归位完成识别,整体上提高了分类识别的效率。Thus, through a unified coordinate system, the intersection lines of the buildings in the selected geographical area are collectively obtained, the three-dimensional data structure diagram is produced, and the overall reconstruction of the building complex is carried out. Since the building types in a selected area are similar, the spatial distribution of each building component is similar, so the collective construction classification and recognition can be obtained through SVM or cluster analysis, and then the recognition is completed through reverse translation and relocation, which improves the efficiency of classification and recognition as a whole.

可选地,所述通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的几何和语义表达,将所述建筑构件对应的语义表达和三维数据结构图中对应的数据点之间建立映射,形成建立各层级模型对应的语义表达和几何表达之间的映射体包括:Optionally, defining the geometric and semantic expressions of different hierarchical models of the three-dimensional building model by the OGC CityGML standard, establishing a mapping between the semantic expressions corresponding to the building components and the corresponding data points in the three-dimensional data structure diagram, and forming a mapping body between the semantic expressions and geometric expressions corresponding to the hierarchical models includes:

通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的三维数据结构图和语义表达,并确定所述三维建筑模型对应的多项三维数据结构图语义主题(title);Defining the three-dimensional data structure diagram and semantic expression of different level models of the three-dimensional building model through the OGC CityGML standard, and determining multiple three-dimensional data structure diagram semantic topics (titles) corresponding to the three-dimensional building model;

建立所述不同层级模型语义表达和各项所述三维数据结构图语义主题之间的关联关系,形成映射体。Establish associations between the semantic expressions of the different hierarchical models and the semantic themes of each of the three-dimensional data structure graphs to form a mapping body.

可选地,所述语义主题包括相应三维数据结构图中选取的一个定位点所对应的数据点中的建筑构件分类名称。Optionally, the semantic topic includes a building component classification name in a data point corresponding to a positioning point selected in the corresponding three-dimensional data structure diagram.

可选地,所述方法还包括:Optionally, the method further comprises:

根据所述映射体中保存的各所述CityGML建筑构件的分类而关联LoD标签,所述LoD标签用于表征不同的层级模型;Associating LoD tags according to the classification of each of the CityGML building components stored in the mapping body, wherein the LoD tags are used to represent different hierarchical models;

其中,同一分类CityGML建筑构件对应有至少一个几何语义主题,进一步对应至少一个LoD标签,同一CityGML建筑构件在不同LoD标签下,在空间直角坐标系XYZ中的显示方式相同或不同。实现不同层级模型的派生具体包括:基于任一层级模型对应的映射体确定该层级模型对应的几何语义主题以及多个CityGML建筑构件;The same classification of CityGML building components corresponds to at least one geometric semantic theme, and further corresponds to at least one LoD tag. The same CityGML building component has the same or different display modes in the spatial rectangular coordinate system XYZ under different LoD tags. The derivation of different hierarchical models specifically includes: determining the geometric semantic theme and multiple CityGML building components corresponding to any hierarchical model based on the mapping body corresponding to the hierarchical model;

根据所述CityGML建筑构件及其显示方式构建该层级模型对应的层级显示模型;Constructing a hierarchical display model corresponding to the hierarchical model according to the CityGML building components and their display modes;

综合各所述层级模型对应层级显示模型即实现所述三维建筑模型的重构,实现不同层级模型的派生。The three-dimensional building model is reconstructed by integrating the hierarchical models corresponding to the hierarchical display model, thereby achieving the derivation of models at different hierarchical levels.

可选地,OGC CityGML定义五个层级模型包括LoD0、LoD1、LoD2、LoD3、LoD4,以实现对建筑物外表、建筑物部件及附属设施进行多尺度表达;Optionally, OGC CityGML defines five hierarchical models including LoD0, LoD1, LoD2, LoD3, and LoD4 to achieve multi-scale expression of building appearances, building components, and ancillary facilities;

其中,LoD0表达建筑物的底部或屋顶轮廓平面,为2.5D多边形;LoD1用块状简单表示建筑物三维模型;LoD2在LoD1的基础上加入了对房屋的附属结构和屋顶的描述;LoD3描述建筑物的详细外表结构,包括但不限于门、窗、阳台;LoD4增加对建筑物内部楼梯、房间和家具等对象的表达,具有详细的几何和语义信息。Among them, LoD0 expresses the bottom or roof outline plane of the building, which is a 2.5D polygon; LoD1 simply represents the three-dimensional model of the building with blocks; LoD2 adds a description of the auxiliary structure and roof of the house on the basis of LoD1; LoD3 describes the detailed appearance structure of the building, including but not limited to doors, windows, and balconies; LoD4 adds the expression of objects such as stairs, rooms, and furniture inside the building, with detailed geometric and semantic information.

根据本发明的另一个方面,还提供了一种三维语义模型的多层次结构派生装置,以实现所述三维语义模型的多层次结构智能派生方法,所述装置包括:According to another aspect of the present invention, a multi-level structure derivation device for a three-dimensional semantic model is provided to implement the multi-level structure intelligent derivation method for the three-dimensional semantic model, the device comprising:

数据解析模块,用于获取三维建筑模型的原始三维模型数据,对所述原始三维模型数据进行几何表达和语义表达的构建;A data parsing module is used to obtain original three-dimensional model data of the three-dimensional building model, and construct geometric expression and semantic expression of the original three-dimensional model data;

映射体建立模块,用于通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的几何表达和语义表达,建立各层级模型对应的语义表达和几何表达之间的映射体;A mapping body establishment module is used to define the geometric expression and semantic expression of different level models of the three-dimensional building model through the OGC CityGML standard, and establish a mapping body between the semantic expression and the geometric expression corresponding to each level model;

模型智能重构模块,用于基于所述各层级模型对应的映射体智能重构所述三维建筑模型,从而实现不同层级模型的派生。The model intelligent reconstruction module is used to intelligently reconstruct the three-dimensional building model based on the mapping bodies corresponding to the models at each level, so as to realize the derivation of models at different levels.

可选地,所述数据解析模块还用于:建立IFC模型和CityGML LoD4模型之间的语义映射规则,并基于所述语义映射规则和所述原始三维模型数据确定IFC建筑构件和CityGML建筑构件之间的对应关系,以确定各CityGML建筑构件对应的语义表达;并且基于所述原始三维模型数据提取所述IFC模型中各IFC建筑构件对应的几何信息,对各所述IFC建筑构件对应的几何信息进行几何变换获取到对应的由空间数据点构成的三维数据结构图,来表示CityGML建筑构件,得到各所述CityGML建筑构件对应的几何表达。Optionally, the data parsing module is further used to: establish semantic mapping rules between the IFC model and the CityGML LoD4 model, and determine the correspondence between the IFC building components and the CityGML building components based on the semantic mapping rules and the original three-dimensional model data to determine the semantic expression corresponding to each CityGML building component; and extract the geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data, perform geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram composed of spatial data points to represent the CityGML building component, and obtain the geometric expression corresponding to each CityGML building component.

映射建立模块还可以用于:通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的三维数据结构图和语义表达,并确定所述三维建筑模型对应的多项三维数据结构图语义主题(title);The mapping establishment module can also be used to: define the three-dimensional data structure diagram and semantic expression of different level models of the three-dimensional building model through the OGC CityGML standard, and determine multiple three-dimensional data structure diagram semantic themes (titles) corresponding to the three-dimensional building model;

建立所述不同层级模型语义表达和各项所述三维数据结构图语义主题之间的关联关系,形成映射体;Establishing associations between the semantic expressions of the different hierarchical models and the semantic themes of the three-dimensional data structure graphs to form a mapping body;

所述语义主题包括相应三维数据结构图中选取的一个定位点所对应的数据点中的建筑构件分类名称;The semantic topic includes the building component classification name in the data point corresponding to a positioning point selected in the corresponding three-dimensional data structure diagram;

根据所述映射体中保存的各所述CityGML建筑构件的分类而关联LoD标签,所述LoD标签用于表征不同的层级模型;Associating LoD tags according to the classification of each of the CityGML building components stored in the mapping body, wherein the LoD tags are used to represent different hierarchical models;

其中,同一分类CityGML建筑构件对应有至少一个几何语义主题,进一步对应至少一个LoD标签,同一CityGML建筑构件在不同LoD标签下,在空间直角坐标系XYZ中的显示方式相同或不同。The same classification of CityGML building components corresponds to at least one geometric semantic theme and further corresponds to at least one LoD tag. The same CityGML building component may be displayed in the same or different manners in the spatial rectangular coordinate system XYZ under different LoD tags.

所述模型智能重构模块还用于:基于任一层级模型对应的映射体确定该层级模型对应的几何语义主题以及多个CityGML建筑构件;The model intelligent reconstruction module is also used to: determine the geometric semantic theme and multiple CityGML building components corresponding to any hierarchical model based on the mapping body corresponding to the hierarchical model;

根据所述CityGML建筑构件及其显示方式构建该层级模型对应的层级显示模型;Constructing a hierarchical display model corresponding to the hierarchical model according to the CityGML building components and their display modes;

综合各所述层级模型对应层级显示模型即实现所述三维建筑模型的重构,实现不同层级模型的派生。The three-dimensional building model is reconstructed by integrating the hierarchical models corresponding to the hierarchical display model, thereby achieving the derivation of models at different hierarchical levels.

根据本发明的第三个方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码用于执行所述三维语义模型的多层次结构智能派生方法。According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the multi-level structure intelligent derivation method of the three-dimensional semantic model.

根据本发明的第四个方面,还提供了一种计算设备,所述计算设备包括处理器以及存储器:According to a fourth aspect of the present invention, there is further provided a computing device, the computing device comprising a processor and a memory:

所述存储器用于存储程序代码,并将所述程序代码传输给所述处理器;The memory is used to store program code and transmit the program code to the processor;

所述处理器用于根据所述程序代码中的指令执行所述三维语义模型的多层次结构智能派生方法。The processor is used to execute the multi-level structure intelligent derivation method of the three-dimensional semantic model according to the instructions in the program code.

本发明提供了一种三维语义模型的多层次结构智能派生方法,通过三维建筑模型的原始三维模型数据进行几何和语义解析,并通过OGC CityGML标准定义不同层级模型的几何和语义表达,建立各层级几何和语义映射体,进而基于几何和语义映射关系,同时体现了不同建筑构件的空间位置关系,从而通过轨迹形成方法和建立的建筑构件识别模型,智能地重构模型从而实现不同层级模型的派生,即本发明的派生不同于传统的面生成,而通过采用建筑构件的交线为出发点,线性地生成从而构建成立体模型,同时在语义关联上采用的三维映射体形式,将建筑的模型、建筑构件分类、建筑构件三维空间位置整合到一起,丰富了模型的信息。The present invention provides a multi-level structure intelligent derivation method for a three-dimensional semantic model, which performs geometric and semantic analysis on original three-dimensional model data of a three-dimensional building model, defines geometric and semantic expressions of models at different levels through the OGC CityGML standard, establishes geometric and semantic mapping bodies at each level, and then reflects the spatial position relationship of different building components based on the geometric and semantic mapping relationship, thereby intelligently reconstructing the model through a trajectory forming method and an established building component recognition model to achieve derivation of models at different levels, that is, the derivation of the present invention is different from traditional surface generation, and linearly generates a three-dimensional model by taking the intersection line of the building component as the starting point, and integrates the building model, building component classification, and the three-dimensional spatial position of the building component in the form of a three-dimensional mapping body in semantic association, thereby enriching the information of the model.

在本发明的方案中,每个CityGML建筑构件都与LoD标签关联,即同一个对象可以有对应不同LoD的模型表达,其均与同一个实体关联,在不同细节层级下选择对应的显示方式,实现实体在相应LoD下的显著表达。In the solution of the present invention, each CityGML building component is associated with a LoD tag, that is, the same object can have model expressions corresponding to different LoDs, which are all associated with the same entity, and the corresponding display mode is selected at different detail levels to achieve significant expression of the entity at the corresponding LoD.

本发明基于几何特征和规则的语义信息提取、几何映射和语义映射等技术,实现对空间数据进行统一表达,可便于空间数据的管理和分级存储,可视化时可以根据不同的需求进行不同尺度下地物的分级加载,提升海量数据的可视化效率。The present invention realizes unified expression of spatial data based on semantic information extraction, geometric mapping and semantic mapping based on geometric features and rules, which can facilitate the management and hierarchical storage of spatial data. During visualization, hierarchical loading of objects at different scales can be performed according to different needs, thereby improving the visualization efficiency of massive data.

对于地理范围内的建筑群,采用叠加到统一基准建筑坐标系下进行分类识别,提高了分类处理效率。For building complexes within a geographical range, classification and identification are performed by superimposing them on a unified reference building coordinate system, which improves the efficiency of classification processing.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

图1为本发明实施例1的一种三维语义模型的多层次结构智能派生方法四个步骤流程图;FIG1 is a four-step flow chart of a multi-level structure intelligent derivation method of a three-dimensional semantic model according to Embodiment 1 of the present invention;

图2为本发明实施例1的小区内两栋楼的局部IFC模型,其中(a)不带斜面的基准楼,(b)带斜面的非基准楼,其中展示了顶层为例描述几何变换;FIG2 is a partial IFC model of two buildings in a residential area according to Embodiment 1 of the present invention, wherein (a) is a reference building without a slope, and (b) is a non-reference building with a slope, wherein the top floor is shown as an example to describe the geometric transformation;

图3为以图2b中的H’和M定位点对应的楼顶面为例进行水平交线智能重构示意图,FIG3 is a schematic diagram of intelligent reconstruction of horizontal intersection lines, taking the roof surface corresponding to the H’ and M positioning points in FIG2b as an example.

图4为图2a中含单窗的外立面为例的SVM墙、窗分类算法过程示意图,FIG4 is a schematic diagram of the SVM wall and window classification algorithm process for the facade with a single window in FIG2a.

图5为含双窗的外立面为例的SVM墙、窗1和窗2分类算法过程示意图,Figure 5 is a schematic diagram of the SVM wall, window 1 and window 2 classification algorithm process for a facade with two windows.

图6为图2b中顶、墙水平交线和垂直交线,以及窗交线的聚类分析结果示意图,FIG6 is a schematic diagram of the cluster analysis results of the horizontal and vertical intersection lines of the top and wall, and the window intersection line in FIG2b.

图7为映射体中的不同层级模型语义表达和各项所述三维数据结构图语义主题之间的关联关系图,FIG. 7 is a diagram showing the association relationship between the semantic expressions of different hierarchical models in the mapping body and the semantic themes of the three-dimensional data structure diagram.

图8为本发明实施例2中的一种三维语义模型的多层次结构派生装置配置及各模块之间数据交互示意图。FIG8 is a schematic diagram of a multi-level structure derivation device configuration of a three-dimensional semantic model and data interaction between modules in Embodiment 2 of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

实施例1Example 1

本发明实施例提供了一种三维语义模型的多层次结构派生方法,如图1所示,本实施例的一种三维语义模型的多层次结构智能派生方法,所述方法包括:如图1的四个步骤,即第一步,各CityGML建筑构件对应的语义表达;第二步,各所述CityGML建筑构件对应的几何表达;第三步,形成各层级模型对应的语义表达和几何表达之间的映射体;第四步,智能重构三维建筑模型,实现不同层级模型的派生。An embodiment of the present invention provides a multi-level structure derivation method for a three-dimensional semantic model, as shown in Figure 1. The multi-level structure intelligent derivation method for a three-dimensional semantic model of this embodiment includes: four steps as shown in Figure 1, namely, the first step, the semantic expression corresponding to each CityGML building component; the second step, the geometric expression corresponding to each CityGML building component; the third step, forming a mapping body between the semantic expression and the geometric expression corresponding to each level model; the fourth step, intelligently reconstructing the three-dimensional building model to realize the derivation of models of different levels.

其中,第一步,如图2,以一个选定的小区范围内两栋建筑为例,获取对应2个三维建筑模型的原始三维模型数据,对于其中每一个,建立对应两个IFC模型和CityGML LoD4模型之间的语义映射规则,并基于所述语义映射规则和所述原始三维模型数据确定IFC建筑构件和CityGML建筑构件之间的对应关系,以确定各CityGML建筑构件对应的语义表达;Among them, the first step, as shown in FIG2, takes two buildings within a selected community as an example, obtains the original three-dimensional model data corresponding to the two three-dimensional building models, and for each of them, establishes a semantic mapping rule between the two corresponding IFC models and the CityGML LoD4 model, and determines the correspondence between the IFC building components and the CityGML building components based on the semantic mapping rule and the original three-dimensional model data, so as to determine the semantic expression corresponding to each CityGML building component;

第二步,基于所述原始三维模型数据提取所述IFC模型中各IFC建筑构件对应的几何信息(在本实施例中为墙、窗、顶等的轮廓),对各所述IFC建筑构件对应的几何信息进行几何变换获取到对应的由空间数据点构成的三维数据结构图,来表示CityGML建筑构件,得到各所述CityGML建筑构件对应的几何表达;The second step is to extract geometric information corresponding to each IFC building component in the IFC model (in this embodiment, the outlines of walls, windows, roofs, etc.) based on the original three-dimensional model data, perform geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram composed of spatial data points to represent the CityGML building component, and obtain the geometric expression corresponding to each CityGML building component;

几何变换包括,如图2a和图2b,对于两栋建筑都各自建立XYZ三维之间坐标系,原点O和底面的一个顶点重合,将图2a和图2b中含窗的意外里面所在平面与X轴平行。The geometric transformation includes, as shown in Figure 2a and Figure 2b, establishing an XYZ three-dimensional coordinate system for each of the two buildings, coinciding the origin O with a vertex of the bottom surface, and making the plane containing the unexpected window in Figure 2a and Figure 2b parallel to the X-axis.

标记出不同建筑构件墙、窗、顶之间的交线,获取交线上端点和三等分点的坐标,如图2a和图2b中,A-I点分别展示了其中三条墙和顶,以及墙之间的交线上的端点(A、D、G、J)和三等分点(B、C、E、F、H、I、K、L、A'、F'、H'、M)。其中,K、L分别是窗和安装窗的所在墙的交线上定位点(以下K'、L'同理是楼板顶面与墙的交线)。Mark the intersections between walls, windows, and roofs of different building components, and obtain the coordinates of the endpoints and trisection points on the intersections. As shown in Figure 2a and Figure 2b, points A-I respectively show the endpoints (A, D, G, J) and trisection points (B, C, E, F, H, I, K, L, A', F', H', M) on the intersections between three walls and the roof, as well as the walls. K and L are the positioning points on the intersection of the window and the wall where the window is installed (hereinafter, K' and L' are the intersections between the top surface of the floor slab and the wall).

其中图2a以这些点中与原点距离最近的点作为定位点。可以看到采用距离最近的方案,在A、G上产生了定位点的重合(定位符号重合),分别是交线p的定位点,以及交线l和之下的垂直交线DG的定位点造成的重合。另外在交线m和与交线p正交的垂直交线的交点处同样存在定位点重合,是有交线m和盖垂直交线的定位点重合造成的。其中交线l和交线m是顶楼的楼板顶面与墙的交线(以下交线m'、交线l'同理是楼板顶面与墙的交线)。Among them, Figure 2a uses the point closest to the origin among these points as the positioning point. It can be seen that the use of the closest distance solution results in the overlap of positioning points on A and G (the positioning symbols overlap), which are the positioning points of the intersection line p, and the intersection line l and the vertical intersection line DG below. In addition, there is also an overlap of positioning points at the intersection of the intersection line m and the vertical intersection line orthogonal to the intersection line p, which is caused by the overlap of the positioning points of the intersection line m and the vertical intersection line of the cover. Among them, the intersection line l and the intersection line m are the intersection lines of the top floor slab top surface and the wall (the following intersection lines m' and intersection line l' are similarly the intersection lines of the top floor slab top surface and the wall).

因此距离最近只能部分描述交线的空间位置关系分辨程度不高。Therefore, the closest distance can only partially describe the spatial position relationship of the intersection line and the resolution is not high.

但是当选择距离次近方案时,如图2b所示,以具有斜面的建筑的顶楼为例,三等分点A'、F'、H'、K'、L',斜面与顶交线即斜线上的三等分点M,交线n'、交线p'、交线m'、交线l'三等分点,M正下方的另一条斜线三等分点,以及交线n'和交线m'之间所夹的两条垂直交线的三等分点和两斜线之间所夹的两条垂直交线的三等分点,形成了图2b视角下可视的定位点。清晰地表示了各交线的空间位置关系。However, when the second closest distance scheme is selected, as shown in Figure 2b, taking the top floor of a building with a slope as an example, the trisection points A', F', H', K', L', the trisection point M on the slope line where the slope and the top intersect, the trisection points of the intersection lines n', p', m', and l', the trisection points of another slope line just below M, and the trisection points of the two perpendicular intersection lines between the intersection lines n' and m' and the trisection points of the two perpendicular intersection lines between the two slope lines form the visible positioning points in the perspective of Figure 2b. The spatial position relationship of each intersection line is clearly shown.

然后,将所述坐标值范围的跨度归一化后的值作为灰度数值(也可采用RGB彩色值表示),由此得到任一交线的定位点和灰度数值;将定位点和灰度数值形成数据点,以定位点在坐标系中的位置将数据点定位到坐标系中,形成三维数据结构图,且数据点以带所述灰度数值的符号√和○表示,以分别标识水平交线和垂直交线,图2a和图2b中的标有符号√和○的定位点处即可以作为定位数据点的位置。因此图中的这些定位点形成了反映三维数据结构图空间结构的点群。Then, the span of the coordinate value range is normalized as the grayscale value (RGB color value can also be used to represent it), thereby obtaining the positioning point and grayscale value of any intersection line; the positioning point and grayscale value form a data point, and the data point is positioned in the coordinate system by the position of the positioning point in the coordinate system, forming a three-dimensional data structure diagram, and the data point is represented by the symbol √ and ○ with the grayscale value to mark the horizontal intersection line and the vertical intersection line respectively, and the positioning point marked with the symbol √ and ○ in Figure 2a and Figure 2b can be used as the position of the positioning data point. Therefore, these positioning points in the figure form a point group reflecting the spatial structure of the three-dimensional data structure diagram.

由此在第三歩所形成的各层级模型对应的语义表达和几何表达之间的映射体也呈现出三维数据结构图的空间结构,且此时数据点上关联了各层级模型对应的语义表达。Therefore, the mapping body between the semantic expression and geometric expression corresponding to each level model formed in the third step also presents the spatial structure of the three-dimensional data structure diagram, and at this time, the semantic expression corresponding to each level model is associated with the data point.

第四步中,基于所述各层级模型对应的三维数据结构图智能重构。包括如下步骤:In the fourth step, the three-dimensional data structure diagram corresponding to each level model is intelligently reconstructed. The following steps are included:

S4如图3所示,对于以图2b中的定位点对应的三维数据结构图的数据点,对于具有定位点H'的交线重建为例,从定位点H'开始往X轴正方向进行移动形成第一轨迹,再从定位点H'开始往X轴负方向进行移动形成第二轨迹,使得第一第二轨迹的第一并集长度,即具有定位点H'的交线的长度,与X轴方向上跨度重合;从定位点H'开始往Y轴正方向进行移动形成第三轨迹,往Y轴负方向进行移动形成第四轨迹,以及往Z轴正方向进行移动形成第五轨迹,往Z轴负方向进行移动形成第六轨迹,皆为空,分别以null2和null3表示,分别表示第二并集和第三并集,由此获得第一并集∪null2∪null3=总并集,即重建出图3中的具有定位点H'的交线;S4 is shown in FIG3 . For the data points of the three-dimensional data structure diagram corresponding to the positioning point in FIG2b , taking the reconstruction of the intersection line with the positioning point H' as an example, starting from the positioning point H', moving in the positive direction of the X-axis to form a first track, and then starting from the positioning point H', moving in the negative direction of the X-axis to form a second track, so that the length of the first union of the first and second tracks, that is, the length of the intersection line with the positioning point H', coincides with the span in the X-axis direction; starting from the positioning point H', moving in the positive direction of the Y-axis to form a third track, moving in the negative direction of the Y-axis to form a fourth track, and moving in the positive direction of the Z-axis to form a fifth track, and moving in the negative direction of the Z-axis to form a sixth track, are all empty, respectively represented by null2 and null3, representing the second union and the third union, respectively, thereby obtaining the first union ∪null2∪null3=total union, that is, reconstructing the intersection line with the positioning point H' in FIG3 ;

对于图2b中的斜线的重建为例,以定位点M为起始,分别形成第一至第四轨迹,形成十字形总并集。由此,进行S5建立斜线生成模型。Taking the reconstruction of the oblique line in FIG. 2 b as an example, starting from the positioning point M, the first to fourth trajectories are formed respectively to form a cross-shaped total union. Thus, S5 is performed to establish an oblique line generation model.

所述斜线生成模型包括在图3三维数据结构图中显示的十字形总并集平面正交线段,通过点击十字形自动连接相应的计算方法形成斜线。所述计算方法是,参见图3中下部所示,对正交的X轴和Y轴的两个正方向和两个负方向上分别作矩形,连接定位点M所在的两个面对角线,生成斜线。The oblique line generation model includes the cross-shaped total union plane orthogonal line segments shown in the three-dimensional data structure diagram of Figure 3, and the oblique line is formed by clicking the cross-shaped to automatically connect the corresponding calculation method. The calculation method is, as shown in the lower part of Figure 3, rectangles are drawn in the two positive directions and two negative directions of the orthogonal X-axis and Y-axis, and the two diagonal lines of the two faces where the positioning point M is located are connected to generate the oblique line.

最后进行S6建立建筑构件分类识别模型,通过分析得到建筑构件的分类,保存到相应的数据点中。Finally, S6 is performed to establish a building component classification and recognition model, and the classification of building components is obtained through analysis and saved in the corresponding data points.

以图2a中含窗的一外立面为例(图2b同理可分析),所述识别模型包括在该重建完成的外立面,即代表其中各交线的总并集所在平面上采用SVM算法完成分类。Taking a facade with a window in FIG. 2a as an example (FIG. 2b can be analyzed similarly), the recognition model includes using the SVM algorithm to complete classification on the plane where the reconstructed facade, ie, the total union of all intersections therein, is located.

如图4所示,该外立面对应的三维数据结构图不能采用线性分析,因为代表窗的两条交线的数据点和代表墙的四条交线的数据点之间不存在超平面,至少只能以一个圆作为分类界限。但通过构建高斯核函数对各个数据点映射到三维希尔伯特空间,获得第一超平面将窗和墙两类建筑构件进行分类。As shown in Figure 4, the three-dimensional data structure diagram corresponding to the facade cannot be analyzed linearly, because there is no hyperplane between the data points representing the two intersection lines of the window and the data points representing the four intersection lines of the wall, and at least only a circle can be used as the classification boundary. However, by constructing a Gaussian kernel function to map each data point to the three-dimensional Hilbert space, the first hyperplane is obtained to classify the two types of building components, windows and walls.

对于该小区其他户型,该外立面具有两窗,即窗1和窗2,如图5所示,同样采用映射到三维希尔伯特空间后,获取第一超平面进行分类后,在得道的同一窗分类中(图中跑道型区域),继续采用第二超平面进行线性SVM分类,完成窗1和窗2的分类。For other apartment types in the community, the facade has two windows, namely window 1 and window 2. As shown in FIG5 , after mapping to the three-dimensional Hilbert space, the first hyperplane is obtained for classification. Then, in the same window classification obtained (the runway-shaped area in the figure), the second hyperplane is used for linear SVM classification to complete the classification of window 1 and window 2.

对于聚类分析,仍然以图2b顶楼为例,如图6所示,以XY平面作为数据点的投影定位面,以归一化灰度值作为第三个维度,将垂直交线上的三等分点和顶上交线的三等分点位置代表的各数据点,在该坐标系中表示,可以明显看到垂直交线和平行交线形成的两个不同的面,从而通过聚类分析能够得到垂直交线和平行交线的分类。由于垂直交线等长,对应标定点等高。因此在聚类分析中呈现出聚集于平行于XY平面的水平面第一聚类,而平行交线上的定位点,由于定位点对应跨度不同,而导致归一化的灰度值不同,产生了在该平面上下穿插的三维扭折面第二聚类。For cluster analysis, still taking the top floor of Figure 2b as an example, as shown in Figure 6, with the XY plane as the projection positioning surface of the data points, and the normalized grayscale value as the third dimension, the data points represented by the trisection points on the vertical intersection line and the trisection points on the top intersection line are expressed in this coordinate system. It can be clearly seen that the two different planes formed by the vertical intersection lines and the parallel intersection lines, so that the classification of vertical intersection lines and parallel intersection lines can be obtained through cluster analysis. Since the vertical intersection lines are of equal length, the corresponding calibration points are of equal height. Therefore, in the cluster analysis, the first cluster is presented, which is clustered on the horizontal plane parallel to the XY plane, and the positioning points on the parallel intersection lines have different normalized grayscale values due to the different corresponding spans of the positioning points, resulting in a second cluster of three-dimensional kink surfaces interspersed up and down in the plane.

对于窗交线则由于跨度最小归一化灰度值最高,位于垂直交线所在平面之上,形成第三聚类。For the window intersection line, since the span is the smallest and the normalized gray value is the highest, it is located above the plane where the vertical intersection line is located, forming the third cluster.

对于小区内的建筑群重建同样进行,仍然以图2小区的两栋楼为例,不同的在于,本实施例以图2a的楼为基准楼,则图2b的楼为非基准楼,三维直角坐标系如图2a所示,而图2b的非基准楼的坐标系删除。对于每一栋楼都进行前述的第一步至第四步,但是在步骤S6',与步骤S6不同。The reconstruction of the building complex in the community is carried out in the same manner, still taking the two buildings in the community of FIG2 as an example, the difference is that in this embodiment, the building in FIG2a is taken as the reference building, and the building in FIG2b is taken as the non-reference building, and the three-dimensional rectangular coordinate system is shown in FIG2a, while the coordinate system of the non-reference building in FIG2b is deleted. The aforementioned first to fourth steps are carried out for each building, but in step S6', it is different from step S6.

S6'包括建立建筑构件群分类识别模型,先将小区内的非基准楼中与基准楼中对应的底面顶点和所述原点重合,而相应的寒含窗外立面和三维直角坐标系中的X轴平行,由此使得非基准楼对应的各层级模型对应的三维数据结构图平移到基准楼的XYZ三维直角坐标系中,建立建筑构件群分类识别模型,通过分析得到建筑构件群的分类,保存到相应的非基准楼对应的各层级模型对应的三维数据结构图的数据点中,最后反向平移非基准楼对应的各层级模型对应的三维数据结构图至所述三维直角坐标系中平移前的位置,也即图2b的位置。S6' includes establishing a classification and recognition model for a building component group. First, the corresponding bottom vertices in the non-reference building and the reference building in the community are made to coincide with the origin, while the corresponding window facades are parallel to the X-axis in the three-dimensional rectangular coordinate system. This allows the three-dimensional data structure diagram corresponding to each level model of the non-reference building to be translated into the XYZ three-dimensional rectangular coordinate system of the reference building, and establishes a classification and recognition model for a building component group. The classification of the building component group is obtained through analysis and saved in the data points of the three-dimensional data structure diagram corresponding to each level model of the corresponding non-reference building. Finally, the three-dimensional data structure diagram corresponding to each level model of the non-reference building is reversely translated to the position before the translation in the three-dimensional rectangular coordinate system, that is, the position in Figure 2b.

其中,所述建筑构件群分类识别模型包括如图4和图6采用的前述的SVM和聚类分析方式。The building component group classification and recognition model includes the aforementioned SVM and cluster analysis methods as used in FIG. 4 and FIG. 6 .

OGC CityGML定义五个层级模型包括LoD0、LoD1、LoD2、LoD3、LoD4,(LoD0、LoD1、LoD2、LoD3、LoD4即代表各个层级模型的标签)以实现对建筑物外表、建筑物部件及附属设施进行多尺度表达;其中,LoD0表达建筑物的底部或屋顶轮廓平面,为2.5D多边形;LoD1用块状简单表示建筑物三维模型;LoD2在LoD1的基础上加入了对房屋的附属结构和屋顶的描述;LoD3描述建筑物的详细外表结构,包括但不限于门、窗、阳台;LoD4增加对建筑物内部楼梯、房间和家具等对象的表达,具有详细的几何和语义信息。OGC CityGML defines five hierarchical models including LoD0, LoD1, LoD2, LoD3, and LoD4 (LoD0, LoD1, LoD2, LoD3, and LoD4 are labels representing models at each level) to achieve multi-scale expression of building exteriors, building components, and ancillary facilities; among them, LoD0 expresses the bottom or roof outline plane of the building, which is a 2.5D polygon; LoD1 simply represents the three-dimensional model of the building in blocks; LoD2 adds a description of the auxiliary structures and roof of the house on the basis of LoD1; LoD3 describes the detailed exterior structure of the building, including but not limited to doors, windows, and balconies; LoD4 adds the expression of objects such as stairs, rooms, and furniture inside the building, with detailed geometric and semantic information.

第三步的建立各层级模型对应的语义表达和几何表达之间的映射体包括:The third step is to establish the mapping between the semantic expression and geometric expression corresponding to each level model, including:

如图7所示,通过OGC CityGML标准定义所述三维建筑模型的不同层级LoD0、LoD1、LoD2、LoD3、LoD4模型的三维数据结构图和相应的语义表达,并确定所述三维建筑模型对应的多项三维数据结构图语义主题LoD0-语义主题LoD4;As shown in FIG7 , the three-dimensional data structure diagrams and corresponding semantic expressions of the different levels of LoD0, LoD1, LoD2, LoD3, and LoD4 of the three-dimensional building model are defined by the OGC CityGML standard, and multiple three-dimensional data structure diagram semantic topics LoD0-semantic topic LoD4 corresponding to the three-dimensional building model are determined;

建立所述不同层级模型语义表达和各项所述三维数据结构图语义主题之间的关联关系,形成映射体。Establish associations between the semantic expressions of the different hierarchical models and the semantic themes of each of the three-dimensional data structure graphs to form a mapping body.

所述语义主题包括图2中相应三维数据结构图中选取的一个定位点所对应的数据点中的建筑构件分类名称。The semantic topic includes the building component classification name in the data point corresponding to a positioning point selected in the corresponding three-dimensional data structure diagram in FIG. 2 .

可选地,所述方法还包括:Optionally, the method further comprises:

对所述映射体中保存的各所述CityGML建筑构件的分类进行LoD标签关联,所述LoD标签用于表征不同的层级模型;Associating the classification of each of the CityGML building components stored in the mapping body with a LoD tag, wherein the LoD tag is used to represent different hierarchical models;

其中,同一分类CityGML建筑构件对应有至少一个几何语义主题,进一步对应至少一个LoD标签。例如图2b中垂直交线上的三等分点位置的数据点表示几何语义主题时,可以是LoD1级的楼外壳体块部件中的数据点,也可以是LoD2-LoD4级的建筑外壳表面部件中的数据点。The same classification of CityGML building components corresponds to at least one geometric semantic theme and further corresponds to at least one LoD tag. For example, when the data points at the trisection point on the vertical intersection line in Figure 2b represent geometric semantic themes, they can be data points in the building shell block components of LoD1 level, or data points in the building shell surface components of LoD2-LoD4 level.

同一CityGML建筑构件在不同LoD标签下,在空间直角坐标系XYZ中的显示方式不同,以示在不同级别中表示时的区别。也可以让若干个级别中显示相同,而对于剩余的其他级别中显示不同,以比较在不同的级别群体之间表示时的差别。The same CityGML building component is displayed differently in the spatial rectangular coordinate system XYZ under different LoD tags to show the difference when it is represented in different levels. It can also be displayed the same in several levels and different in the remaining levels to compare the difference when it is represented between different level groups.

表1 CityGML不同语义主题和不同LoD级别关联关系Table 1 Relationship between different semantic themes and different LoD levels of CityGML

结合表1可知,每个层级模型由于其显示效果不同,其包含的建筑构件以及建筑构件的显示方式也不相同。其中,不同的建筑构件可以归属于不同的几何语义主题。表1示意性示出了不同几何语义主题和各层级模型之间的关联关系,其中“√”即表示该类几何语义主题和对应的层级模型具有关联关系。本实施例中,每个几何语义主题可能包含多个建筑构件,每个建筑构件都可以与LoD标签关联,即同一个对象可以有对应不同LoD的模型表达,其均与同一个实体关联,在不同细节层级下选择对应的显示方式,实现实体在相应LoD下的显著表达。As can be seen from Table 1, each hierarchical model has different display effects, and the architectural components and display methods of the architectural components are also different. Among them, different architectural components can belong to different geometric semantic themes. Table 1 schematically shows the association between different geometric semantic themes and hierarchical models, where "√" indicates that this type of geometric semantic theme and the corresponding hierarchical model have an association relationship. In this embodiment, each geometric semantic theme may contain multiple architectural components, and each architectural component can be associated with a LoD tag, that is, the same object can have model expressions corresponding to different LoDs, which are all associated with the same entity, and the corresponding display methods are selected at different levels of detail to achieve significant expression of the entity at the corresponding LoD.

利用LoD表面模型生成算法构建CityGML模型中各个层级模型,并将各个层级模型进行整合以形成最终的CityGML模型,实现不同层级模型的派生。另外需要说明的是,同一CityGML建筑构件可能在不同层级模型的显示方式不同,例如,由于LoD0层级模型显示较为粗略,较小的建筑构件可以不显示,或只显示一个条线或一个点。具体可以根据三维建筑模型的大小以及类型进行自定义设置,本发明实施例对此不做限定。The LoD surface model generation algorithm is used to construct each level model in the CityGML model, and each level model is integrated to form the final CityGML model, so as to realize the derivation of different level models. It should also be noted that the same CityGML building component may be displayed differently in different level models. For example, since the LoD0 level model is displayed roughly, smaller building components may not be displayed, or only a line or a point may be displayed. Specifically, it can be customized according to the size and type of the three-dimensional building model, which is not limited in the embodiment of the present invention.

实施例2Example 2

如图8所示,本实施例提供了一种三维语义模型的多层次结构派生装置,以实现所述三维语义模型的多层次结构智能派生方法,所述装置包括:As shown in FIG8 , this embodiment provides a multi-level structure derivation device for a three-dimensional semantic model to implement the multi-level structure intelligent derivation method for the three-dimensional semantic model. The device includes:

数据解析模块201,用于获取三维建筑模型的原始三维模型数据,对所述原始三维模型数据进行几何表达和语义表达的构建;The data parsing module 201 is used to obtain the original 3D model data of the 3D building model, and construct geometric expression and semantic expression for the original 3D model data;

映射体建立模块202,用于通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的几何表达和语义表达,建立各层级模型对应的语义表达和几何表达之间的映射体;A mapping body establishment module 202 is used to define the geometric expression and semantic expression of different hierarchical models of the three-dimensional building model through the OGC CityGML standard, and establish a mapping body between the semantic expression and geometric expression corresponding to each hierarchical model;

模型智能重构模块203,用于基于所述各层级模型对应的映射体智能重构所述三维建筑模型,从而实现不同层级模型的派生。The model intelligent reconstruction module 203 is used to intelligently reconstruct the three-dimensional building model based on the mapping bodies corresponding to the models at each level, so as to achieve the derivation of models at different levels.

具体运行时,在数据解析模块201几何表达和语义表达的构建完毕之后,映射体建立模块202向其进行解析结果的请求,数据解析模块201收到请求之后,即将解析结果传输给映射体建立模块202,并在映射体建立模块202中完成映射体的建立。通过模型智能重构模块203向映射体建立模块202的请求,映射体建立模块202向模型智能重构模块203传输建立完毕的映射体,并在模型智能重构模块203中完成模型智能重构。In specific operation, after the data parsing module 201 completes the construction of the geometric expression and the semantic expression, the mapping body establishment module 202 makes a request for the parsing result. After receiving the request, the data parsing module 201 transmits the parsing result to the mapping body establishment module 202, and completes the establishment of the mapping body in the mapping body establishment module 202. Through the request of the model intelligent reconstruction module 203 to the mapping body establishment module 202, the mapping body establishment module 202 transmits the established mapping body to the model intelligent reconstruction module 203, and completes the model intelligent reconstruction in the model intelligent reconstruction module 203.

数据解析模块201还可以用于The data analysis module 201 can also be used to

还用于建立IFC模型和CityGML LoD4模型之间的语义映射规则,并基于所述语义映射规则和所述原始三维模型数据确定IFC建筑构件和CityGML建筑构件之间的对应关系,以确定各CityGML建筑构件对应的语义表达;并且基于所述原始三维模型数据提取所述IFC模型中各IFC建筑构件对应的几何信息,对各所述IFC建筑构件对应的几何信息进行几何变换获取到对应的由空间数据点构成的三维数据结构图,来表示CityGML建筑构件,得到各所述CityGML建筑构件对应的几何表达。It is also used to establish semantic mapping rules between the IFC model and the CityGML LoD4 model, and determine the corresponding relationship between the IFC building components and the CityGML building components based on the semantic mapping rules and the original three-dimensional model data to determine the semantic expression corresponding to each CityGML building component; and extract the geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data, perform geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram composed of spatial data points to represent the CityGML building component, and obtain the geometric expression corresponding to each CityGML building component.

在本发明一可选实施例中,映射建立模块202还可以用于:In an optional embodiment of the present invention, the mapping establishment module 202 may also be used for:

通过OGC CityGML标准定义所述三维建筑模型的不同层级模型的三维数据结构图和语义表达,并确定所述三维建筑模型对应的多项三维数据结构图语义主题(title);Defining the three-dimensional data structure diagram and semantic expression of different level models of the three-dimensional building model through the OGC CityGML standard, and determining multiple three-dimensional data structure diagram semantic topics (titles) corresponding to the three-dimensional building model;

建立所述不同层级模型语义表达和各项所述三维数据结构图语义主题之间的关联关系,形成映射体;Establishing associations between the semantic expressions of the different hierarchical models and the semantic themes of the three-dimensional data structure graphs to form a mapping body;

所述语义主题包括相应三维数据结构图中选取的一个定位点所对应的数据点中的建筑构件分类名称;The semantic topic includes the building component classification name in the data point corresponding to a positioning point selected in the corresponding three-dimensional data structure diagram;

根据所述映射体中保存的各所述CityGML建筑构件的分类而关联LoD标签,所述LoD标签用于表征不同的层级模型;Associating LoD tags according to the classification of each of the CityGML building components stored in the mapping body, wherein the LoD tags are used to represent different hierarchical models;

其中,同一分类CityGML建筑构件对应有至少一个几何语义主题,进一步对应至少一个LoD标签,同一CityGML建筑构件在不同LoD标签下,在空间直角坐标系XYZ中的显示方式相同或不同。The same classification of CityGML building components corresponds to at least one geometric semantic theme and further corresponds to at least one LoD tag. The same CityGML building component may be displayed in the same or different manners in the spatial rectangular coordinate system XYZ under different LoD tags.

在本发明一可选实施例中,模型重构模块330还可以用于:In an optional embodiment of the present invention, the model reconstruction module 330 may also be used to:

基于任一层级模型对应的映射体确定该层级模型对应的几何语义主题以及多个CityGML建筑构件;Determine the geometric semantic theme and multiple CityGML building components corresponding to any hierarchical model based on the mapping body corresponding to the hierarchical model;

根据所述CityGML建筑构件及其显示方式构建该层级模型对应的层级显示模型;Constructing a hierarchical display model corresponding to the hierarchical model according to the CityGML building components and their display modes;

综合各所述层级模型对应层级显示模型即实现所述三维建筑模型的重构,实现不同层级模型的派生。The three-dimensional building model is reconstructed by integrating the hierarchical models corresponding to the hierarchical display model, thereby achieving the derivation of models at different hierarchical levels.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储程序代码,所述程序代码用于执行上述实施例所述的方法。An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute the methods described in the above embodiments.

本发明实施例还提供了一种计算设备,所述计算设备包括处理器以及存储器:所述存储器用于存储程序代码,并将所述程序代码传输给所述处理器;所述处理器用于根据所述程序代码中的指令执行上述实施例所述的方法。An embodiment of the present invention further provides a computing device, which includes a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute the method described in the above embodiment according to the instructions in the program code.

所属领域的技术人员可以清楚地了解到,上述描述的系统、装置、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.

本领域普通技术人员可以理解:所述集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行所述指令时执行本发明各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,所述程序指令可以存储于一计算机可读取存储介质中,当所述程序指令被计算设备的处理器执行时,所述计算设备执行本发明各实施例所述方法的全部或部分步骤。Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.

Claims (10)

1. The multi-level structure intelligent deriving method of the three-dimensional semantic model is characterized by comprising the following steps:
Firstly, acquiring original three-dimensional model data of a plurality of three-dimensional building models, establishing a semantic mapping rule between an IFC model and a CityGML LoD4 model for each of the three-dimensional building models, and determining a corresponding relation between an IFC building component and a CityGML building component based on the semantic mapping rule and the original three-dimensional model data so as to determine semantic expressions corresponding to the CityGML building components;
Extracting geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data, performing geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram formed by space data points, representing the CityGML building component, and obtaining a geometric expression corresponding to each CityGML building component;
Defining geometric expressions and semantic expressions of different level models of the three-dimensional building model through OGC CityGML standard, establishing mapping between the semantic expressions corresponding to the building components and corresponding data points in the three-dimensional data structure diagram, and establishing a mapping body between the semantic expressions and the geometric expressions corresponding to the level models;
And fourthly, intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure diagram corresponding to each level model, thereby realizing the derivation of different level models.
2. The method of claim 1, wherein the method of geometric transformation of the second step comprises:
S1, establishing a three-dimensional rectangular coordinate system XYZ, defining a coordinate origin, overlapping a preset point with the origin in a plurality of original three-dimensional model data, enabling a preset direction to be parallel to an X axis or a Y axis in the three-dimensional rectangular coordinate system, and marking out building components corresponding to each level model;
S2, marking intersecting lines among different building components, acquiring coordinates of any point on the intersecting lines, obtaining coordinate value ranges on an X axis, a Y axis and a Z axis, and defining a positioning point of any intersecting line at the same time, so that the positioning point is closest or next closest to the origin;
S3, taking the value after span normalization of the coordinate value range as a gray value or an RGB color value, thereby obtaining a positioning point of any intersection line and the gray value or the RGB color value; forming a data point by the positioning point and the gray value or the RGB color value, positioning the data point into a coordinate system by the position of the positioning point in the coordinate system, forming a three-dimensional data structure diagram, and representing the data point by a symbol with the gray value or the RGB color value.
3. The method of claim 2, wherein the predetermined point is an apex of the building floor, and the predetermined direction is selected such that a plane in which one of the facades lies is parallel to the X-axis or the Y-axis;
the data points for which positioning is complete take different symbols to represent intersecting lines of different orientations.
4. The method according to claim 1, wherein in the fourth step, the method for intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure map corresponding to each hierarchical model specifically comprises:
s4, for data points in any three-dimensional data structure diagram, moving from a positioning point to an X-axis positive direction to form a first track, and then moving from the positioning point to an X-axis negative direction to form a second track, so that the first aggregation length of the first track and the second aggregation length of the first track are overlapped with the span in the X-axis direction; moving from the positioning point to the Y-axis positive direction to form a third track, and then moving from the positioning point to the Y-axis negative direction to form a fourth track, so that the second union length of the third and fourth tracks coincides with the span in the Y-axis direction; moving from the positioning point to the positive Z-axis direction to form a fifth track, and then moving from the positioning point to the negative Z-axis direction to form a sixth track, so that the third union length of the fifth sixth track coincides with the span in the Z-axis direction, and a total union of the first union to the third union is obtained;
S5, establishing a diagonal generation model, wherein the diagonal generation model comprises the steps of automatically connecting corresponding calculation methods by clicking or identifying a plane orthogonal line segment or a three-dimensional orthogonal line segment to form diagonal when the total union set displayed in the three-dimensional data structure diagram is the plane orthogonal line segment or the three-dimensional orthogonal line segment, and the calculation methods are that for the plane orthogonal line segment, two orthogonal positive directions and two orthogonal negative directions are respectively rectangular, and two facing corner lines where positioning points are connected to generate diagonal; for a three-dimensional orthogonal line segment, respectively making parallelepiped straight prisms in three orthogonal positive directions and three orthogonal negative directions, connecting two body diagonal lines where positioning points are positioned, and generating oblique lines;
s6, building a building component classification recognition model, obtaining the classification of the building components through analysis, and storing the classification into corresponding data points.
5. The method according to claim 4, wherein the identifying a planar orthogonal line segment or a stereoscopic orthogonal line segment uses a difference operation between a line in the original three-dimensional model data before reconstruction and a total union after reconstruction, and if the difference result is zero, it indicates that the total union after reconstruction is not an orthogonal intersecting line segment, otherwise is an orthogonal line segment; the identification model comprises the steps of completing classification on a plane where the total union is located by adopting an SVM algorithm, and/or completing classification by carrying out three-dimensional clustering analysis on projection coordinates and gray values of positioning points on an XY plane;
The SVM algorithm comprises the steps of mapping data points on a plane where a total union set is located into a three-dimensional Hilbert space by adopting a Gaussian kernel function, and classifying by adopting a first hyperplane; and further performing linear SVM classification by adopting a second hyperplane in the same classification obtained after the classification by adopting the first hyperplane.
6. The method according to any one of claims 1-5, wherein obtaining coordinates of any point on the intersection line is replaced by obtaining coordinates of a point on the intersection line at a predetermined separation distance;
the points of the preset distance are the end points and the equal dividing points on the intersecting line.
7. The method of any one of claims 1-5, wherein for a group of buildings within a preselected geographic area, the method of geometric transformation is: selecting a reference building, constructing a three-dimensional rectangular coordinate system XYZ in the reference building, defining a coordinate origin, overlapping a preset point with the origin in original three-dimensional model data corresponding to the reference building, enabling a preset direction to be parallel to an X axis or a Y axis in the three-dimensional rectangular coordinate system, and marking out building components corresponding to all other building level models in a preselected geographical area range; steps S2 and S3 are then performed; the method for intelligently reconstructing the three-dimensional building model based on the three-dimensional data structure diagram corresponding to each level model also comprises the steps of S4-S5, and then S6', wherein the method comprises the steps of establishing a building component group classification model, overlapping preset points corresponding to the reference building in all non-reference buildings within a preselected geographical area range with the origin, enabling corresponding preset directions to be parallel to X-axis or Y-axis in a three-dimensional rectangular coordinate system, enabling the three-dimensional data structure diagram corresponding to each level model corresponding to all non-reference buildings to translate into the three-dimensional rectangular coordinate system of the reference building, establishing a building component group classification model, obtaining the classification of the building component group through analysis, storing the classification into data points of the three-dimensional data structure diagram corresponding to each level model corresponding to the corresponding non-reference building, and finally reversely translating the three-dimensional data structure diagram corresponding to each level model corresponding to each non-reference building to the position before translation in the three-dimensional rectangular coordinate system.
8. The method according to claim 7, wherein the building component group classification and identification model comprises the steps of classifying each building on a plane corresponding to a total union by adopting an SVM algorithm, and/or performing three-dimensional clustering analysis on projection coordinates of all positioning points of each building on an XY plane and corresponding gray values;
The SVM algorithm comprises the steps of constructing a Gaussian kernel function, mapping data points on a plane where a total union set is located into a three-dimensional Hilbert space, and classifying by adopting a first hyperplane; and further performing linear SVM classification by adopting a second hyperplane in the same classification obtained after the classification by adopting the first hyperplane.
9. The method according to any one of claims 10-13, characterized in that the third step comprises in particular:
Defining three-dimensional data structure diagrams and semantic expressions of different level models of the three-dimensional building model through OGC (open g language) CityGML standards, and determining semantic subjects of a plurality of three-dimensional data structure diagrams corresponding to the three-dimensional building model; establishing association relations between semantic expressions of the different-level models and semantic topics of the three-dimensional data structure diagram to form a mapping body; the semantic theme comprises a building component classification name in a data point corresponding to a positioning point selected from the corresponding three-dimensional data structure diagram;
the deriving of the model with different levels in the fourth step specifically comprises: determining a geometric semantic topic corresponding to any hierarchical model based on a mapping body corresponding to the hierarchical model and a plurality of CityGML building components; constructing a hierarchical display model corresponding to the hierarchical model according to the CityGML building component and the display mode thereof; and synthesizing the corresponding hierarchical display models of the hierarchical models to reconstruct the three-dimensional building model and realize the derivation of different hierarchical models.
10. A multi-level structure deriving device for three-dimensional semantic modeling to implement a method according to any one of claims 1-18, the device comprising:
the data analysis module is used for acquiring original three-dimensional model data of the three-dimensional building model and constructing geometric expression and semantic expression on the original three-dimensional model data;
The mapping body building module is used for defining geometric expressions and semantic expressions of different level models of the three-dimensional building model through OGC CityGML standard and building mapping bodies between the semantic expressions and the geometric expressions corresponding to the level models;
the model intelligent reconstruction module is used for intelligently reconstructing the three-dimensional building model based on the mapping body corresponding to each level model so as to realize the derivation of different levels of models;
The data parsing module is further configured to: establishing a semantic mapping rule between an IFC model and a CityGML LoD4 model, and determining a corresponding relation between an IFC building component and a CityGML building component based on the semantic mapping rule and the original three-dimensional model data so as to determine a semantic expression corresponding to each CityGML building component; extracting geometric information corresponding to each IFC building component in the IFC model based on the original three-dimensional model data, performing geometric transformation on the geometric information corresponding to each IFC building component to obtain a corresponding three-dimensional data structure diagram formed by space data points, representing the CityGML building component, and obtaining geometric expression corresponding to each CityGML building component;
The map creation module may also be configured to: defining three-dimensional data structure diagrams and semantic expressions of different level models of the three-dimensional building model through OGC (open g language) standards, and determining a semantic theme (title) of a plurality of three-dimensional data structure diagrams corresponding to the three-dimensional building model;
Establishing association relations between semantic expressions of the different-level models and semantic topics of the three-dimensional data structure diagram to form a mapping body;
The semantic theme comprises a building component classification name in a data point corresponding to a positioning point selected from the corresponding three-dimensional data structure diagram;
Associating LoD tags according to the classification of each of the citysml building elements stored in the mapping body, the LoD tags being used to characterize different hierarchical models;
wherein, the same classification of the CityGML building components corresponds to at least one geometric semantic theme, further corresponds to at least one LoD label, and the same CiyGML building components are displayed in the same or different modes in a space rectangular coordinate system XYZ under different LoD labels;
The model intelligent reconstruction module is also used for: determining a geometric semantic topic corresponding to any hierarchical model based on a mapping body corresponding to the hierarchical model and a plurality of CityGML building components;
constructing a hierarchical display model corresponding to the hierarchical model according to the CityGML building component and the display mode thereof;
And synthesizing the corresponding hierarchical display models of the hierarchical models to reconstruct the three-dimensional building model and realize the derivation of different hierarchical models.
CN202410112397.7A 2024-01-26 2024-01-26 A method and device for intelligently deriving multi-level structures of three-dimensional semantic models Pending CN117934743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410112397.7A CN117934743A (en) 2024-01-26 2024-01-26 A method and device for intelligently deriving multi-level structures of three-dimensional semantic models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410112397.7A CN117934743A (en) 2024-01-26 2024-01-26 A method and device for intelligently deriving multi-level structures of three-dimensional semantic models

Publications (1)

Publication Number Publication Date
CN117934743A true CN117934743A (en) 2024-04-26

Family

ID=90757224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410112397.7A Pending CN117934743A (en) 2024-01-26 2024-01-26 A method and device for intelligently deriving multi-level structures of three-dimensional semantic models

Country Status (1)

Country Link
CN (1) CN117934743A (en)

Similar Documents

Publication Publication Date Title
Tran et al. Shape grammar approach to 3D modeling of indoor environments using point clouds
CN109815604B (en) BIM indoor space connection diagram construction method based on topological relation of building elements
CN111008422B (en) A method and system for making a real-world map of a building
CN109993827B (en) Elevation view identification method for converting building drawing into three-dimensional BIM model
Mitra et al. Symmetry in 3d geometry: Extraction and applications
Verdie et al. LOD generation for urban scenes
CN107045526B (en) A Graphic Recognition Method for Electronic Building Construction Drawings
CN109974703B (en) A method, system and device for constructing an indoor navigation network
CN109840338B (en) Three-dimensional building model construction method applied to three-dimensional real estate information management
CN111597170B (en) Method for building spatial semantic database from BIM model without damage
CN110941871A (en) An automatic labeling method and system based on room information in Revit 3D model
CN102663800A (en) City building complex and rendering method considering city image
CN113988084B (en) BIM and GIS ontology fusion method and system based on SWRL rules
Li et al. Geometric structure simplification of 3D building models
CN101996515B (en) Urban vector road network registration method based on local control in GIS-T
Yang et al. Complementarity of historic building information modelling and geographic information systems
Guo et al. Line-based 3d building abstraction and polygonal surface reconstruction from images
She et al. 3D building model simplification method considering both model mesh and building structure
Wang et al. Integration of 3DGIS and BIM and its application in visual detection of concealed facilities
Zhao et al. A 3D modeling method for buildings based on LiDAR point cloud and DLG
Kim et al. Simplification of geometric objects in an indoor space
Wu et al. [Retracted] Intelligent City 3D Modeling Model Based on Multisource Data Point Cloud Algorithm
Zhang et al. A geometry and texture coupled flexible generalization of urban building models
CN111915720B (en) Automatic conversion method from building Mesh model to CityGML model
CN117934743A (en) A method and device for intelligently deriving multi-level structures of three-dimensional semantic models

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication