Create terrain surface from a local raster
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
Sceneand add it to a
- Create a
RasterElevationSourcewith a list of raster file paths.
- Add this source to the scene's base surface:
Supported raster formats include:
- CIB1, 5, 10
- DTED0, 1, 2
- JPEG 2000
- SRTM1, 2
3D, elevation, raster, surface, terrain
<UserControl x:Class="ArcGISRuntime.UWP.Samples.CreateTerrainSurfaceRaster.CreateTerrainSurfaceRaster" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls"> <Grid> <esriUI:SceneView x:Name="MySceneView" /> </Grid> </UserControl>