GDAL

Classes | Public Member Functions | Friends | List of all members
gdal::viewshed::Cumulative Class Reference

Generates a cumulative viewshed from a matrix of observers. More...

`#include <cumulative.h>`

## Public Member Functions
| Cumulative (const Options &opts)
| Constructor.
| ~Cumulative ()
| Destructor.
bool | run (const std::string &srcFilename, GDALProgressFunc pfnProgress=GDALDummyProgress, void *pProgressArg=nullptr)
| Compute the cumulative viewshed of a raster band.

## Friends
class | Combiner

## Detailed Description

Generates a cumulative viewshed from a matrix of observers.

## Constructor & Destructor Documentation

## ◆ Cumulative()

gdal::viewshed::Cumulative::Cumulative | ( | const Options & | opts | ) |
| explicit

Constructor.

Parameters

  opts | Options for viewshed generation.

## Member Function Documentation

## ◆ run()

bool gdal::viewshed::Cumulative::run | ( | const std::string & | srcFilename,
|  | GDALProgressFunc | pfnProgress = `GDALDummyProgress`,
|  | void * | pProgressArg = `nullptr`
| ) |  |

Compute the cumulative viewshed of a raster band.

Parameters

  srcFilename | Source filename.
  pfnProgress | Pointer to the progress function. Can be null.
  pProgressArg | Argument passed to the progress function

Returns
  True on success, false otherwise.

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

- cumulative.h
- cumulative.cpp