cesium加载DEM数据
参考:https://www.jianshu.com/p/62d6f03f44e3 https://my.oschina.net/u/1585572/blog/290481
1、目前一般都是win7-64位系统,从tif数据转成terrain,最好在win7-32位系统上安装后做转换;尝试在win7-64位电脑上安装32位的python,arcmap被装坏掉
2、IIS上发布terrain数据
首先需要解决跨域问题,做cors配置;
其次需要在数据目录下放web.config,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,HEAD,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type,api_key,Authorization,X-Requested-With" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
然后需要添加对terrain数据的解析:
添加对json的解析: