view

Result = view(elevation, viewpoints)
viewpoints

spatial boolean

elevation

spatial scalar

Result

spatial boolean

Operation

All cells in viewpoints with a value 1 (TRUE) are used as viewpoints. The 3D landscape over which is looked out is defined by the elevation model elevation. Each cell which is visible from the TRUE cells on viewpoints is assigned a 1 (TRUE) on Result. Cells which are not visible are assigned a 0 (FALSE) on Result.

Notes

A cell with a missing value on elevation is assigned a missing value on Result. If elevation has a missing value on the line of sight between a cell and its viewpoint from which it can potentially be seen, the cell is considered as non visible from that viewpoint. If there isn’t a different viewpoint from which the cell can be seen, the cell is assigned a 0 (FALSE) on Result.

Group

This operation belongs to the group of Neigbourhood operator; operators for visibility analysis

Examples

  1. • pcrcalc
    binding
    Result = Result.map;
    Dem = Dem.map;
    Points = Points.map;
    initial
    report Result = view(Dem, Points);

    • python
    Dem = readmap(“Dem.map”)
    Points = readmap(“Points.map”)
    Result = view(Dem, Points)

    Result.map

    Dem.map

    Points.map

    ../../_images/view_Result.png ../../_images/view_Dem.png ../../_images/view_Points.png