# Cesium with Postgis

**URL:** <https://community.cesium.com/t/cesium-with-postgis/7707>\
**Category:** CesiumJS\
**Created:** [November 20, 2018, 12:08pm UTC](https://community.cesium.com/t/cesium-with-postgis/7707 "2018-11-20T12:08:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![san](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/san/32/2011_2.png) [@san](https://community.cesium.com/u/san)\
**Post date:** [November 20, 2018, 12:08pm UTC](https://community.cesium.com/t/cesium-with-postgis/7707/1 "2018-11-20T12:08:51Z")

</div>

How can i add data from postgis to cesium map.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ten\_Eyck](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ten_eyck/32/27541_2.png) [@Kevin\_Ten\_Eyck](https://community.cesium.com/u/Kevin_Ten_Eyck)\
**Post date:** [November 20, 2018, 2:00pm UTC](https://community.cesium.com/t/cesium-with-postgis/7707/2 "2018-11-20T14:00:40Z")

</div>

Cesium supports GeoJSON so you could get the geometry from the database as GeoJSON.  
[https://postgis.net/docs/ST\_AsGeoJSON.html](https://postgis.net/docs/ST_AsGeoJSON.html)

---

<div class="post-metadata">

**Author:** ![san](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/san/32/2011_2.png) [@san](https://community.cesium.com/u/san)\
**Post date:** [November 20, 2018, 5:59pm UTC](https://community.cesium.com/t/cesium-with-postgis/7707/3 "2018-11-20T17:59:04Z")

</div>

Thanks for the reply Kevin Ten Eyck i’m able to bring shp from postgis to map as json & its working .but what about other kinds of vector and raster data.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [November 21, 2018, 12:39pm UTC](https://community.cesium.com/t/cesium-with-postgis/7707/4 "2018-11-21T12:39:18Z")

</div>

Cesium supports most common imagery/raster formats and popular vector data like KML and GeoJSON. This Cesium Workshop tutorial is a comprehensive guide on most of these things:

> **[Documentation | cesium.com](https://cesium.com/docs/)**
>
> Cesium is geospatial. Use Cesium ion's simple workflow to create 3D maps of your geospatial data for visualization, analysis, and sharing. For developers, use the open-source CesiumJS library to create custom 3D mapping apps.

You can scroll through it or CTRL+F to find things like “imagery” or “vector” and how to add it in.
