ViewshedFunction

Evaluates an elevation surface to produce a viewshed, determining which areas are visible and which are not visible to an observer. Use ViewshedFunction.evaluate to compute the result of this function.

In the resulting viewshed, visible areas have a value of 1, while areas that are not visible have a value of 0.

Results are updated when changes are made to parameters of this function (or to parameters of functions from which it is composed).

The function performs analysis at the full resolution of the data. To perform analysis at the current rendered resolution of scene layers or 3D graphics, use the ExploratoryViewshed tool.

Since

300.0.0

Constructors

Link copied to clipboard
constructor(elevation: ContinuousField, parameters: ViewshedParameters)

Creates a ViewshedFunction.

constructor(elevation: ContinuousFieldFunction, parameters: ViewshedParameters)

Creates a ViewshedFunction.

Properties

Link copied to clipboard

Parameters that define properties like observer position and elevation sampling interval for the ViewshedFunction.

Inherited functions

Link copied to clipboard

Composes a function that clips this function's field result such that it does not extend beyond the provided extent.

Link copied to clipboard

Composes a function that divides, point-wise, this function's field result by another across their spatial intersection. The function result has no data where either of the given fields has no data.

operator fun div(value: Float): ContinuousFieldFunction

Composes a function that divides, point-wise, this function's field result by a value across its extent. The function result has no data where this function's field result has no data.

Link copied to clipboard

Evaluates the result of the function.

Link copied to clipboard

Composes a function that identifies, point-wise, where this function's field result has data across its extent. The function result values are true where this function's field result has data and false where it has no data. All values in the result will have data.

Link copied to clipboard

Composes a function that indicates if, point-wise, this function's field result is greater than another. The function result has no data where either of the given fields has no data.

Composes a function that indicates if, point-wise, this function's field result is greater than a given value. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that indicates if, point-wise, this function's field result is greater than or equal to another. The function result has no data where either of the given fields has no data.

Composes a function that indicates if, point-wise, this function's field result is greater than or equal to a given value. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that indicates if, point-wise, this function's field result is less than another. The function result has no data where either of the given fields has no data.

Composes a function that indicates if, point-wise, this function's field result is less than a given value. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that indicates if, point-wise, this function's field result is less than or equal to another. The function result has no data where either of the given fields has no data.

Composes a function that indicates if, point-wise, this function's field result is less than or equal to a given value. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that applies a mask to this function's field result. Where the selection is true, values from this function's field result are preserved. Where the selection is false, the field has no data. The function result has no data where this function's field result or the selection has no data.

Link copied to clipboard

Composes a function that subtracts, point-wise, another field from this function's field result across their spatial intersection. The function result has no data where either of the given fields has no data.

operator fun minus(value: Float): ContinuousFieldFunction

Composes a function that subtracts, point-wise, a value from this function's field result across its extent. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that adds, point-wise, this function's field result and another across their spatial intersection. The function result has no data where either of the given fields has no data.

operator fun plus(value: Float): ContinuousFieldFunction

Composes a function that adds, point-wise, a value to this function's field result across its extent. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that preserves values from this function's field result or replaces them with values from another. Values are replaced point-wise across the spatial intersection of the selection with the union of the two function's field results. Where the selection is true, values from the other field are returned. Where the selection is false, values from this function's field result are returned. The function result has no data where the selection or the selected field has no data.

Composes a function that preserves values from this function's field result or replaces them with a constant value. Values are determined point-wise across the extent of this function's field result based on a selection. Where the selection is true, the specified constant value is returned. Where the selection is false, values from this function's field result are returned. The function result has no data where the selection or this function's field result has no data.

Link copied to clipboard

Composes a function that multiplies, point-wise, this function's field result and another across their spatial intersection. The function result has no data where either of the given fields has no data.

operator fun times(value: Float): ContinuousFieldFunction

Composes a function that multiplies, point-wise, this function's field result by a value across its extent. The function result has no data where this function's field result has no data.

Link copied to clipboard

Composes a function that casts, point-wise, float values from this function's field result to integer values across its extent. Values that are within the representable range of a 32-bit signed integer are rounded to the nearest integer by discarding the fractional part then cast. Values that are not within the representable range of a 32-bit signed integer are clamped to be within the representable range then rounded to the nearest integer by discarding the fractional part then cast. The function result has no data where this function's field result has no data.