# How to read data file .terraindb in ReactJS/Resium

**URL:** <https://community.cesium.com/t/how-to-read-data-file-terraindb-in-reactjs-resium/15589>\
**Category:** Cesium ion\
**Created:** [October 7, 2021, 1:53am UTC](https://community.cesium.com/t/how-to-read-data-file-terraindb-in-reactjs-resium/15589 "2021-10-07T01:53:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![833e9af2bc9388b35b62](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/833e9af2bc9388b35b62/32/3476_2.png) [@833e9af2bc9388b35b62](https://community.cesium.com/u/833e9af2bc9388b35b62)\
**Post date:** [October 7, 2021, 1:53am UTC](https://community.cesium.com/t/how-to-read-data-file-terraindb-in-reactjs-resium/15589/1 "2021-10-07T01:53:54Z")

</div>

Hi All,

Anyone can share to me how to read terrain data that i have in .terraindb after done conversion in  
cesium ion using Cesium-ion-3D-Tiling-Pipeline.zip.

Saharil  
Thanks.

---

<div class="post-metadata">

**Author:** ![Matt\_Boyd-Surka](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_boyd-surka/32/5511_2.png) [@Matt\_Boyd-Surka](https://community.cesium.com/u/Matt_Boyd-Surka)\
**Post date:** [October 20, 2021, 8:38pm UTC](https://community.cesium.com/t/how-to-read-data-file-terraindb-in-reactjs-resium/15589/2 "2021-10-20T20:38:00Z")

</div>

Hello,

You can serve the terrain using Asset Server, which is included in the 3D Tiling Pipeline. A file named `WorldTerrain.terraindb` will be accessible at `http://localhost:8002/WorldTerrain` when Asset Server is running, as noted here: [Hosting 3D Content – Cesium](https://cesium.com/learn/3d-tiling/on-prem/hosting-3d-content/#terrain-from-terraindb-database-file)

These instructions are also available in `AssetServer.pdf`, which comes with the 3D Tiling Pipeline.

Once you are serving your data using Asset Server, you can display it in Sandcastle. [Here is an example](https://sandcastle.cesium.com/#c=fVNdb9owFP0rV+wBWoENhRXKUjSp3UOl7kMrm1QpLya+BG+Oja6ddGzqf5+dhA7YtJdYPj7n3nM/UgmCSuETElyDwSe4QafKgn2tsV43q6831nihDFK3D79SA+CRKACfyFZKIs0Ppc2xPGb0ahlASRrm0N14v51zrm0m9MY6P58Nhxc82dmSBm1suRoYUeCi24/K57PUPJ+9SU1qOIcvJrNFgcaD3ygHwkgg3GqRYQAQtDW58qXE+kUL31wqoUt0LEaoozwggrRZGQMFjjXzGo7eXDDXlM5CJq5RkGmBb44TrgdByD9j5oXJNbKNL/QrtiZb3GJOiO4lyaMtIRMG7Cp2sLaXWaKg/L/NWhwDQmwKuPAJ1UnhBZROmRxyKbQya3tsOqLMUs63ZHMSheN7Xu0xcM9T0wycZaG9JNha75Z2Px+JzivTdGM/0D9lHhTYa/gAo8mQjS5n49ez/h4az9h4cnkxvuofkaaj2dX0lDSanrUQGrkkYdzaUvGS+73wpH5M2N3tuw/Lu+Vjy5UltR6HbNhuxjnv9DuJ8zuNi32St6rYWvJx7XqMcY9F2BKPjq/K7Dt6ljkXpZGa8ENpIlUFSl6nnZM/IO1ApoVz4WVdav2gfmLaWSQ88P+SaitkGNXHCkmLXaRtRov7BmSMJTxc/6301uqVoJPIvwE). (This example will not work until you are running Asset Server on your machine and replace `http://localhost:8002/<your-terraindb-name>` with the appropriate URL for your data.)

If you know the longitude and latitude of your terrain, you can fly to it using [flyTo](https://cesium.com/learn/cesiumjs/ref-doc/Camera.html#flyTo). The Sandcastle above describes how to do this from a rectangle computed from your source data, but you can also just input the longitude, latitude, and height yourself.

Matt

---

<div class="post-metadata">

**Author:** ![833e9af2bc9388b35b62](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/833e9af2bc9388b35b62/32/3476_2.png) [@833e9af2bc9388b35b62](https://community.cesium.com/u/833e9af2bc9388b35b62)\
**Post date:** [October 28, 2021, 4:40am UTC](https://community.cesium.com/t/how-to-read-data-file-terraindb-in-reactjs-resium/15589/3 "2021-10-28T04:40:55Z")

</div>

Hello Matt,

I got it…

Thanks  
Saharil Arshad
