GDAL

Public Member Functions | List of all members
gdal::viewshed::ViewshedExecutor Class Reference

Executes a viewshed computation on a source band, placing the result in the destination band. More...

`#include <viewshed_executor.h>`

## Public Member Functions
| ViewshedExecutor (GDALRasterBand &srcBand, GDALRasterBand &dstBand, int nX, int nY, const Window &oOutExtent, const Window &oCurExtent, const Options &opts, Progress &oProgress, bool emitWarningIfNoData)
| Constructor - the viewshed algorithm executor.
bool | run ()
| Run the viewshed computation.
bool | hasFoundNoData () const
| Return whether an input pixel is at the nodata value.

## Detailed Description

Executes a viewshed computation on a source band, placing the result in the destination band.

## Constructor & Destructor Documentation

## ◆ ViewshedExecutor()

gdal::viewshed::ViewshedExecutor::ViewshedExecutor | ( | GDALRasterBand & | srcBand,
|  | GDALRasterBand & | dstBand,
|  | int | nX,
|  | int | nY,
|  | const Window & | outExtent,
|  | const Window & | curExtent,
|  | const Options & | opts,
|  | Progress & | progress,
|  | bool | emitWarningIfNoData
| ) |  |

Constructor - the viewshed algorithm executor.

Parameters

  srcBand | Source raster band
  dstBand | Destination raster band
  nX | X position of observer
  nY | Y position of observer
  outExtent | Extent of output raster (relative to input)
  curExtent | Extent of active raster.
  opts | Configuration options.
  progress | Reference to the progress tracker.
  emitWarningIfNoData | Whether a warning must be emitted if an input pixel is at the nodata value.

## Member Function Documentation

## ◆ run()

bool gdal::viewshed::ViewshedExecutor::run | ( |  | ) |

Run the viewshed computation.

Returns
  Success as true or false.

The documentation for this class was generated from the following files:

- viewshed_executor.h
- viewshed_executor.cpp