斯潘8
斯潘4
In this example we read a LOD2 CityGML model of central Rotterdam in the Netherlands and convert it to KML for viewing in Google Earth.将citygml转化为kml,we can situate the model on the Earth's surface,我们可以很容易地与安装了谷歌地球的任何人分享它。
In this example,the 3D geometries are converted from solids to surfaces by triangulation and then converted into one large mesh.This is the optimal geometry for writing to KML/COLLADA.纹理外观由FME自动保存。所以如果你要使用你自己的包含纹理的源数据,你写出来的kml也会包含这些纹理。在GoogleEarth中查看输出表明模型已被正确读取和地理引用。请注意,由于内存限制,at present this workspace only runs on FME 64bit.
The source data is the CityGML model,kop_van_zuid.xml,翻译为“南方之首”,由鹿特丹市中心的几座高层建筑组成。注意,当扩展名是XML时,citygml数据集由XML文件组成。数据,包括高分辨率纹理,然后被重新投影到荷兰的一个地方坐标系中。只有纹理特征类型墙面和RoofSurface选择作为此翻译的源。Including the GroundSurface would not improve the output since the KML displays the data in Google Earth.
The most efficient way to store the model without losing any information is to create a single mesh out of all the building features.在网格合并可以合并特征之前,它们需要被分解和三角化,使用解聚合变压器和三角测量仪.然后,它们的三角曲面可以连接并存储在单个特征中。功能的纹理信息将自动保留。如果您希望此时运行工作区,请记住,将工作区参数中的“拒绝的功能处理”设置为'继续翻译',因此,被拒绝的特性不会终止转换。
Before the data is written to KML it is reprojected to the LL-WGS84 coordinate system.KML总是需要写在这个投影中。确保调整高级写入程序参数,以便GoogleEarth能够读取kml文件并正确绘制几何图形。在导航器中,找到ogckml编写器,转到参数,then Advanced,如果尚未设置,则调整以下内容:
Once written,在谷歌地球上开放,很容易看出,嵌入或引用在kml文件中的建筑物相对于谷歌的卫星图像是精确的地理参考。您还可以打开和关闭Google的建筑层,并将其建筑与本练习中的建筑进行比较。At the time of writing,由于谷歌的数据可能比较陈旧,一些建筑似乎已经丢失或只是部分完工,尽管随着数据的更新,这可能会随着时间的推移而改变。
选择3D建筑层,将您的KML模型与Google Earth提供的卫星图像进行比较。您可以考虑关闭所有其他层进行查看,因为我们不需要它们。
?2019安全亚搏在线软件公司|合法的