|
GDAL
|
Class to support viewshed raster generation. More...
#include <viewshed.h>
Classes | |
| struct | Options |
| Options for viewshed generation. More... | |
| struct | Point |
| A point. More... | |
| struct | Window |
| A window in a raster including pixels in [xStart, xStop) and [yStart, yStop). More... | |
Public Types | |
| enum class | OutputMode { Normal , DEM , Ground } |
| Raster output mode. More... | |
| enum class | CellMode { Diagonal , Edge , Max , Min } |
| Cell height calculation mode. More... | |
Public Member Functions | |
| Viewshed (const Options &opts) | |
| Constructor. More... | |
| Viewshed (const Viewshed &)=delete | |
| Viewshed & | operator= (const Viewshed &)=delete |
| bool | run (GDALRasterBandH hBand, GDALProgressFunc pfnProgress=GDALDummyProgress, void *pProgressArg=nullptr) |
| Compute the viewshed of a raster band. More... | |
| std::unique_ptr< GDALDataset > | output () |
| Fetch a pointer to the created raster band. More... | |
Class to support viewshed raster generation.
|
strong |
|
strong |
|
inlineexplicit |
Constructor.
| opts | Options to use when calculating viewshed. |
|
inline |
Fetch a pointer to the created raster band.
| bool gdal::Viewshed::run | ( | GDALRasterBandH | band, |
| GDALProgressFunc | pfnProgress = GDALDummyProgress, |
||
| void * | pProgressArg = nullptr |
||
| ) |
Compute the viewshed of a raster band.
| band | Pointer to the raster band to be processed. |
| pfnProgress | Pointer to the progress function. Can be null. |
| pProgressArg | Argument passed to the progress function |