Set the terrain surface with elevation described by a raster file.
In a scene view, the terrain surface is what the basemap, operational layers, and graphics are draped onto. For example, when viewing a scene in a mountainous region, applying a terrain surface to the scene will help in recognizing the slopes, valleys, and elevated areas.
When loaded, the sample will show a scene with a terrain surface applied. Pan and zoom to explore the scene and observe how the terrain surface allows visualizing elevation differences.
- Create a
Scene
and add it to aSceneView
. - Create a
RasterElevationSource
with a list of raster file paths. - Add this source to the scene's base surface:
Scene.BaseSurface.ElevationSources.Add(rasterElevationSource)
.
- RasterElevationSource
- Surface
Supported raster formats include:
- ASRP/USRP
- CIB1, 5, 10
- DTED0, 1, 2
- GeoTIFF
- HFA
- HRE
- IMG
- JPEG
- JPEG 2000
- NITF
- PNG
- RPF
- SRTM1, 2
3D, elevation, raster, surface, terrain