scially / Cesium3DTilesConverter

Convert OSGB,Shp,GDAL To Cesium 3DTiles
GNU Lesser General Public License v2.1
369 stars 85 forks source link

请问作者如何实现shape数据转3dtiles box模式 #8

Closed fireforydh closed 2 years ago

fireforydh commented 2 years ago

前作fanvanzh将shape数据转3dtiles格式数据中,是创建建筑物模型的region范围框(tileset.json中的region矩阵),请问如何实现box范围框(类似于osgb转换后的tileset.json中的box矩阵),十分感谢,指导一二!!!

scially commented 2 years ago

参考项目这里代码,对于3dtiles的region要求的就是经纬度(弧度)

fireforydh commented 2 years ago

哥,这个是region的实现,box的实现有参考吗?

scially commented 2 years ago

regionbox 最大的不同在于是否有地理信息,在不考虑这点的情况下是可以互相转换的,参考这里代码,然后通过经纬度给box一个定位,可以转为region,参考这里代码