Show / Hide Table of Contents

Constructor LocationViewshed

LocationViewshed(Camera, Double, Double)

Initializes a new instance of the LocationViewshed class.

Declaration
public LocationViewshed(Camera camera, double minDistance, double maxDistance)
Parameters
Type Name Description
Camera camera

A Camera to define the frustum of the viewshed. The camera location is that of the observer.

System.Double minDistance

The minimum distance from the observer at which visibility will be evaluated.

System.Double maxDistance

The maximum distance from the observer at which visibility will be evaluated.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8

LocationViewshed(MapPoint, Double, Double, Double, Double, Double, Double)

Initializes a new instance of the LocationViewshed class whose observer is defined using a point location.

Declaration
public LocationViewshed(MapPoint location, double heading, double pitch, double horizontalAngle, double verticalAngle, double minDistance, double maxDistance)
Parameters
Type Name Description
MapPoint location

A geographic point location for the observer.

System.Double heading

The heading value (azimuth) that defines the observer's view direction.

System.Double pitch

The pitch value (angle) of the observer's view relative to the surface. Valid values are from 0 (looking straight down) to 180 (straight up).

System.Double horizontalAngle

The horizontal angle of the observer's view. The value must be greater than 0 and no greater than 360.

System.Double verticalAngle

The vertical angle of the observer's view. The value must be greater than 0 and no greater than 360.

System.Double minDistance

The minimum distance from the observer at which visibility will be evaluated.

System.Double maxDistance

The maximum distance from the observer at which visibility will be evaluated.

Remarks

Visible and non-visible areas are determined for an area defined by the observer location, view angles, and the min/max distance range. The parameters define the frustum over which visibility is calculated from the observer location. The horizontal and vertical angles must be greater than zero to define a valid frustum and are constrained to a maximum of 360 degrees. Terrain and other obstacles between the observer and the minimum distance are excluded from the analysis, as are areas beyond the maximum distance.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8
Relevant samples
Viewshed (location): Perform a viewshed analysis from a defined vantage point.
In This Article
Back to top Copyright © 2022 Esri.