Viewshed for camera

This sample demonstrates how to create a LocationViewshed to display interactive viewshed results in the scene view. The viewshed observer is defined by the scene view camera to evaluate visible and obstructed areas of the scene from that location.

Visibility analysis in a scene view

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.ViewshedCamera.ViewshedCamera"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:SceneView x:Name="MySceneView"/>
        <Button x:Name="UpdateObserverButton"
                Content="Viewshed from Here"
                Width="160" Height="30"
                HorizontalAlignment="Center" VerticalAlignment="Top"
                Margin="0,30"
                Click="UpdateObserverWithCamera"/>
    </Grid>
</UserControl>


In this topic
  1. Code