I followed all the instructions given for
GeoserverTerrainProvider plugin. I am using SRTM 90m data for all of India to produce terrain. So as per instructions for SRTM data,
-- I used
gdal_retile in Osgeo shell to produce tiles
used the following commands in Osgeo shell:
mkdir indiapyramid1
gdal_retile.py -v -r bilinear -levels 4 -ps 2048 2048 -co "TILED=YES" -targetDir indiapyramid1 india.tif
-- Then I created coverage store with "Imagepyramid" plugin in geoserver and added raster source as the tileset created by gdal_retile and published the layer. Thus generating pyramid using
this link. -- My pseudo code for terrain provider is as follows:
var viewer = new Cesium.CesiumWidget('cesiumContainer');
var terrainProvider = new Cesium.GeoserverTerrainProvider({
proxy : new Cesium.DefaultProxy('proxy.php'),
//service : "WMS",
url : "http://localhost:10000/geoserver/elevation/wms",
layerName: "indiapyramid1",
//hasStyledImage: false,
//styleName:"grayToColor"
//waterMask:true
});
viewer.terrainProvider = terrainProvider;
-- I am getting
this output.(screenshot). The tiles keep on appearing but changing location within the same bounding box of the DEM data.
But when I zoom into the globe I am not getting 3D terrain view. As you can see in this
screenshot.-- Using
styled geotiff and
converted geotiff also results into same output.
I am not understanding where I am wrong. Help needed !