# How to Produce Cesium Terrain Data?

**URL:** <https://community.cesium.com/t/how-to-produce-cesium-terrain-data/711>\
**Category:** CesiumJS\
**Created:** [September 10, 2013, 9:22pm UTC](https://community.cesium.com/t/how-to-produce-cesium-terrain-data/711 "2013-09-10T21:22:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bp39356](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@bp39356](https://community.cesium.com/u/bp39356)\
**Post date:** [September 10, 2013, 9:22pm UTC](https://community.cesium.com/t/how-to-produce-cesium-terrain-data/711/1 "2013-09-10T21:22:07Z")

</div>

Hello there,

I would like to be able to set up a Cesium Terrain Server for usage on a private network. I am having trouble getting the correct Cesium Terrain Data for this purpose.

I have read through the following forum posts:  
[https://groups.google.com/forum/embed/?place=forum/cesium-dev&showsearch=true&showpopout=true&hideforumtitle=true&parenturl=http%3A%2F%2Fcesium.agi.com%2Fforum.html#!searchin/cesium-dev/custom$20terrain$20server/cesium-dev/74a5XriE-eM/jns0RsaWetYJ](https://groups.google.com/forum/embed/?place=forum/cesium-dev&showsearch=true&showpopout=true&hideforumtitle=true&parenturl=http%3A%2F%2Fcesium.agi.com%2Fforum.html#!searchin/cesium-dev/custom%2420terrain%2420server/cesium-dev/74a5XriE-eM/jns0RsaWetYJ)

[https://groups.google.com/forum/embed/?place=forum/cesium-dev&showsearch=true&showpopout=true&hideforumtitle=true&parenturl=http%3A%2F%2Fcesium.agi.com%2Fforum.html#!searchin/cesium-dev/custom$20terrain$20server/cesium-dev/TegEceuLwxo/B\_CIEQ9YSVwJ](https://groups.google.com/forum/embed/?place=forum/cesium-dev&showsearch=true&showpopout=true&hideforumtitle=true&parenturl=http%3A%2F%2Fcesium.agi.com%2Fforum.html#!searchin/cesium-dev/custom%2420terrain%2420server/cesium-dev/TegEceuLwxo/B_CIEQ9YSVwJ)

[https://groups.google.com/forum/#!topic/cesium-dev/rBieaEBJHiU](https://groups.google.com/forum/#!topic/cesium-dev/rBieaEBJHiU)

I have downloaded SRTM data which is already process and in the ".tif" format (among a couple of others)from the following, site [http://gis-lab.info/data/srtm-tif/](http://gis-lab.info/data/srtm-tif/) . I am also attempting to use GDAL2Tiles.py to create tiles out of this data, but GDAL2Tiles.py, by default, outputs these as ".png" files. I have been having trouble modifying GDAL2Tiles.py to output ".tif". Has anyone done this before?

It is my impression (from reading forum posts) that the next step would be to convert the ".tif" files to ".png" files with the Cesium height encoding technique using custom code adapted from the "proxy" project in the Cesium tree. I am not to this point yet.

I also read that it may be possible to cache terrain tiles locally. How would one go about doing this?
