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
12 namespace gdal
13{
14 namespace viewshed
15{
16
17 double normalizeAngle(double maskAngle);
18 double horizontalIntersect(double angle, int nX, int nY, int y);
19 int hIntersect(double angle, int nX, int nY, int y);
20 int hIntersect(double angle, int nX, int nY, const Window &win);
21 double verticalIntersect(double angle, int nX, int nY, int x);
22 int vIntersect(double angle, int nX, int nY, int x);
23 int vIntersect(double angle, int nX, int nY, const Window &win);
24 bool rayBetween(double start, double end, double test);
25 size_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
GDALRasterBand
A single raster band (or channel).
Definition gdal_rasterband.h:105
end
OGRLayer::FeatureIterator end(OGRLayer *poLayer)
Return end of feature iterator.
Definition ogrsf_frmts.h:478