[GIS] Does ol3-cesium accept DEM files

3d3d-mapcesiumopenlayers

I'm using OpenLayers 3.6.0. I want to use ol3-cesium. Ol3-cesium use cesium for glob visualization. I have a question:

In ol3-cesium, Can I see Ups and downs of land? In other words Does it accept DEM files?

Best Answer

Yes, you can use DEM. By default you will use cesiums default STK world terrain provider

There is an example how to enable terrain provider for cesium at ol3-cesium website

var ol3d = new olcs.OLCesium({map: map}); // map is the ol.Map instance
var scene = ol3d.getCesiumScene();
var terrainProvider = new Cesium.CesiumTerrainProvider({
  url: '//cesiumjs.org/stk-terrain/tilesets/world/tiles'
});
scene.terrainProvider = terrainProvider;
ol3d.setEnabled(true);

If you need to server your own terrain data check geoserver plugin

Related Question