LocationViewshed.withLocation constructor

LocationViewshed.withLocation({
  1. required ArcGISPoint location,
  2. required double heading,
  3. required double pitch,
  4. required double horizontalAngle,
  5. required double verticalAngle,
  6. double minDistance = 0.0,
  7. double maxDistance = 0.0,
})

Creates a viewshed analysis object whose observer is defined using a point location. Provide a map location and frustum parameters for the analysis.

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 120 degrees. Terrain and other obstacles between the observer and the minimum distance are excluded from the analysis, as are areas beyond the maximum distance.

Parameters:

  • location — A geographic point location for the observer.
  • heading — The heading value (azimuth) that defines the observer's view direction.
  • 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).
  • horizontalAngle — The horizontal angle of the observer's view. The value must be greater than 0, and no greater than 360.
  • verticalAngle — The vertical angle of the observer's view. The value must be greater than 0, and no greater than 360.
  • minDistance — The minimum distance from the observer at which visibility will be evaluated.
  • maxDistance — The maximum distance from the observer at which visibility will be evaluated.