Fetching pixel information from a Digital Elevation Model (DEM) data inside Cesium

I’m trying to calculate the Height Above Nearest Drainage (HAND) model of DEM data. As far as I know, there should be some way to get the pixel values (elevation information) of the DEM and store it as an array (Similar to numpy). That array can later be used to create a HAND raster. If my direction of thinking is correct, is there any way to fetch the pixel information in the Cesium?

Hi @at_tiwari,

Yes, I think the function you’re looking for is sampleTerrainMostDetailed. Here’s an example of using it in context: Cesium Sandcastle.