# Cesium Terrain Provider

**URL:** <https://community.cesium.com/t/cesium-terrain-provider/2697>\
**Category:** CesiumJS\
**Created:** [June 27, 2015, 9:41am UTC](https://community.cesium.com/t/cesium-terrain-provider/2697 "2015-06-27T09:41:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ines\_Khandelwal](https://avatars.discourse-cdn.com/v4/letter/i/3ec8ea/32.png) [@Ines\_Khandelwal](https://community.cesium.com/u/Ines_Khandelwal)\
**Post date:** [June 27, 2015, 9:41am UTC](https://community.cesium.com/t/cesium-terrain-provider/2697/1 "2015-06-27T09:41:14Z")

</div>

I am trying to generate 3d terrain using  
CesiumTerrainProvider.

Is it mandatory to use Cesium Terrain Server to serve the .terrain files or will any other server with proper format of the directory do?

---

<div class="post-metadata">

**Author:** ![Mark\_Erikson](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mark_erikson/32/2024_2.png) [@Mark\_Erikson](https://community.cesium.com/u/Mark_Erikson)\
**Post date:** [June 27, 2015, 7:59pm UTC](https://community.cesium.com/t/cesium-terrain-provider/2697/2 "2015-06-27T19:59:02Z")

</div>

Any static file server should work as far as I know. We’ve just got a little Python service using Bottle to serve up static files.

---

<div class="post-metadata">

**Author:** ![Michael\_Lodge-Paoli1](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Michael\_Lodge-Paoli1](https://community.cesium.com/u/Michael_Lodge-Paoli1)\
**Post date:** [July 4, 2015, 5:11pm UTC](https://community.cesium.com/t/cesium-terrain-provider/2697/3 "2015-07-04T17:11:44Z")

</div>

Static files are fine, but you still need to be able to make sure the data is able to be returned in the supported formats: [https://github.com/AnalyticalGraphicsInc/cesium/wiki/Cesium-Terrain-Server](https://github.com/AnalyticalGraphicsInc/cesium/wiki/Cesium-Terrain-Server)

---

<div class="post-metadata">

**Author:** ![Ines\_Khandelwal](https://avatars.discourse-cdn.com/v4/letter/i/3ec8ea/32.png) [@Ines\_Khandelwal](https://community.cesium.com/u/Ines_Khandelwal)\
**Post date:** [July 5, 2015, 3:30am UTC](https://community.cesium.com/t/cesium-terrain-provider/2697/4 "2015-07-05T03:30:02Z")

</div>

Do you mean configuring the MIME type of .Terrain files to application/octet-stream ?  
If so I tried that using http-server, it doesn’t work.

[https://www.npmjs.com/package/http-server](https://www.npmjs.com/package/http-server)

Can anyone who is serving files without Cesium Terrain Server upload

1. The config and script file for the server.
2. The contents of the directory you are sharing ( the output of ls command)

Irrespective of what I do ( I have already added blank terrain files to the proper directory) I always get the error :  
Failed to obtain terrain tile X: 0 Y: 0 Level: 0  
Failed to obtain terrain tile X: 1 Y: 0 Level: 0
