cesium加載DEM數據

參考:https://www.jianshu.com/p/62d6f03f44e3  https://my.oschina.net/u/1585572/blog/290481python

一、目前通常都是win7-64位系統,從tif數據轉成terrain,最好在win7-32位系統上安裝後作轉換;嘗試在win7-64位電腦上安裝32位的python,arcmap被裝壞掉web

二、IIS上發佈terrain數據json

首先須要解決跨域問題,作cors配置;api

其次須要在數據目錄下放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>cors

而後須要添加對terrain數據的解析:.net

添加對json的解析:xml

相關文章
相關標籤/搜索