I have success with my own generated height map and orthophoto to view in Cesium.
The development machine was using Apache as the web server.
To serve out the *.terrain files, this was added to .htaccess file.
Header set Content-Disposition attachment
Header set Content-Encoding: gzip
However for deployment, the client’s server requires using IIS as the web server. The error that appear are
An error occurred in “E”: Failed to obtain terrain tile X: 0 Y: 0 Level: 0.
An error occurred in “E”: Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
I have tried the following:
add “” to web.config file
use " " to web.config as specified in cesium download.
point directly to “http://myurl/elevation/0/0/0.terrain” and “http://myurl/elevation/0/1/0.terrain”. The 0.terrain file will automatically be downloaded to the disk.
I believe it an issue of web.config to specify what to do with the terrain files to be similiar to .htaccess.
Any pointers is appreciated.