span8
斯潘4
本教程演示了一个基本的从IFC到CITYGML的翻译,详细程度较低:从IFC lod100到CITYGML lod2。
IFC-LOD2City.fmw (已完成工作区,无数据)
Download Data(数据可从VectorWorks下载)
1) Download data
This exercise will be using the DC Riverside Building LOD 100 IFC file,before beginning please visit theVectorWorks网站下载dcr-lod_100.zip文件,该文件可在第1部分:lod-100下找到。
2) Read source IFC
在空白工作区中添加Industry Foundation Class STEP Files (IFC)阅读画布并浏览到dc_Riverside_bldg-lod_100.ifc数据集。We will want to read in the IfcSpaces geometry type,所以在读卡器参数中,将“读取ifcspace几何图形”设置为“是”。Click OK to add the Reader.
IFC读卡器参数;将读取ifcspace几何更改为是
In the Select Feature Types dialog,only select IfcSlab and IfcSpaces.这是创建简单Lod2实体几何图形所需的两个层。IFCSlab代表楼层和屋顶,ifcspace代表这些楼层之间的空间。
3)创建单个网格
The IFC features need to be merged into a single feature that represents the building.Add a三角测量仪转换到画布并将其连接到ifcslab和ifcspace功能类型。In the parameters,ensure that Aggregate Handling is set to Deaggregate.对于每个展平的组件,此转换器将输入几何体分解为网格。稍后运行此工作区时,某些功能将被拒绝,为了确保工作区继续运行,我们需要设置被拒绝的特性处理。Right-click on the
Now that the meshes have been created for each component we need to merge them together so we can work with a single mesh.Add a网状合并transformer to the canvas and connect it to the TINSurface output port on the Triangulator.这将把59个单独的网格合并为一个单独的网格。
Create a single mesh using the Triangulator and MeshMerger
4) Set Attributes and traits
CityGML has specific standards for attribute naming in order for the file to be readable.幸运的是,有一个自定义的转换器来创建这些属性。Add aCityGMLGeometrySettercustom transformer to the canvas.在参数中,将citygml lod name设置为lod2solid,将feature role设置为cityObjectMember。您可以使用attributeCreator和geometrypropertiestter创建这些属性,but using this custom transformer prevents typos because these attribute values are case sensitive.
将citygml lod name设置为lod2solid,将feature role设置为cityObjectMember
我们还想创建其他属性,这些属性不需要遵循严格的标准。Add anAttributeCreatortransformer to the canvas and connect it to the CityGMLGeometrySetter.在参数设置中设置以下属性:
Attributes To Create | 属性值 |
城市级细节 | 二 |
GMLYID | gml_uuid()号 |
gml_name | 直流河滨楼 |
创建城市级细节,gml_id and gml_name attributes
5) Scale and set coordinates
There is no coordinate system information stored in the IFC model,but there is a KML file of the building available.如果你想探索KML模型,you can download it from the VectorWorks website.
We will need to scale the model because it is currently in millimetres.Add a定标器transformer to the canvas and connect it to the AttributeCreator.In the parameters,设置x的比例因子,Y,and Z to 0.001 which will scale it to meters.
下一步,添加一个本地协调系统设置程序变换到画布上,设置以下内容:
Origin Coordinate System | LL84 |
Origin X | -76.986560155564575 |
Origin Y | 38.87607046942158 |
在localcoordinatesystemsetter中设置原点x和y
最后,将数据重新投影到所需的坐标系中。要做到这一点,添加一个CsmapReprojectortransformer to the canvas.In the parameters,将目标坐标系设置为epsg:2248,然后将垂直处理更改为相对于椭球体或地心的高度。
6) Write to CityGML
Add aCityGML写入画布并将数据集命名为Riverside_lod2city.gml。将功能类型定义设置为“自动”,然后将其连接到csmapreprojector。In the Feature Type parameters set the Feature Type Name to Building.
Run the workspace and inspect the output.注:如果你的工作区终止于三角仪,ensure that Rejected Feature Handling was set to Continue in Step 3.
Completed workspace
在FME数据检查器中查看的输出citygml
数据属性
河滨建筑示范项目数据制作单位Nemetschek Vectorworks.
您好!@007FKJ公司,
谢谢你接电话。我刚刚又在工作区工作,发现了这个问题。您将需要打开被拒绝的功能处理。Right-click on the
Let me know if you are still having issues,
-丽兹
?2019安全亚搏在线软件公司|Legal