GDAL
util.h
1/******************************************************************************
2 * (c) 2024 info@hobu.co
3 *
4 * SPDX-License-Identifier: MIT
5 ****************************************************************************/
6
7#ifndef VIEWSHED_UTIL_H_INCLUDED
8#define VIEWSHED_UTIL_H_INCLUDED
9
10#include "viewshed_types.h"
11
12namespace gdal
13{
14namespace viewshed
15{
16
17double normalizeAngle(double maskAngle);
18double horizontalIntersect(double angle, int nX, int nY, int y);
19int hIntersect(double angle, int nX, int nY, int y);
20int hIntersect(double angle, int nX, int nY, const Window &win);
21double verticalIntersect(double angle, int nX, int nY, int x);
22int vIntersect(double angle, int nX, int nY, int x);
23int vIntersect(double angle, int nX, int nY, const Window &win);
24bool rayBetween(double start, double end, double test);
25size_t bandSize(GDALRasterBand &band);
26
27DatasetPtr createOutputDataset(GDALRasterBand &srcBand, const Options &opts,
28 const Window &extent);
29
30} // namespace viewshed
31} // namespace gdal
32
33#endif
OGRLayer::FeatureIterator end(OGRLayer *poLayer)
Return end of feature iterator.
Definition ogrsf_frmts.h:478
Options for viewshed generation.
Definition viewshed_types.h:59
A window in a raster including pixels in [xStart, xStop) and [yStart, yStop).
Definition viewshed_types.h:116