I am getting negative elevation values from CesiumTerrainProvider (stk-terrain). For few locations the below code is giving negative elevation values, which are wrong, as I have checked those values from other sources. Is there any problem with the terrain provider or my code. Here is my code -
var viewer = new Cesium.Viewer('cesiumContainer');
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : '//cesiumjs.org/stk-terrain/world'
});
var positions = [
Cesium.Cartographic.fromDegrees(77.01091072384598, 8.656004976829797),
];
var promise = Cesium.sampleTerrain(terrainProvider, 11, positions);
Cesium.when(promise, function(updatedPositions) {
console.log(positions[0].height);
});
// Fly to a position
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(77.01091072384598, 8.656004976829797)
});