19#ifndef DEMALGORITHMS_H
20#define DEMALGORITHMS_H
38 static std::map< std::string, std::vector< std::pair<double,double> > >
readHorizonScan(
const std::string& where,
const std::string& filename);
39 static double getHorizon(
const std::vector< std::pair<double,double> > &horizon,
const double& azimuth);
40 static void writeHorizons(
const std::map< std::string, std::vector< std::pair<double,double> > >& horizon,
const std::string& filename);
44 static double getSearchDistance(
const DEMObject& dem);
45 static double getTanMaxSlope(
const DEMObject& dem,
const double& dmax,
const double&
bearing,
const size_t& i,
const size_t& j);
A class to handle geographic coordinate systems. This class offers an easy way to transparently conve...
Definition: Coords.h:83
A static class to compute various DEM-related parameters (such as shading, view factors,...
Definition: DEMAlgorithms.h:32
static std::map< std::string, std::vector< std::pair< double, double > > > readHorizonScan(const std::string &where, const std::string &filename)
Read the horizons from a given set of points looking 360 degrees around provided in a file.
Definition: DEMAlgorithms.cc:211
static Grid2DObject getHillshade(const DEMObject &dem, const double &elev, const double &azimuth)
Computes the hillshade for the dem This "fake illumination" method is used to better show the relief ...
Definition: DEMAlgorithms.cc:53
static double getCellSkyViewFactor(const DEMObject &dem, const size_t &ii, const size_t &jj)
Compute the sky view factors for the terrain radiation based on the DEM. This is inspired (ie with so...
Definition: DEMAlgorithms.cc:355
static double getHorizon(const DEMObject &dem, const size_t &ix1, const size_t &iy1, const double &bearing)
Returns the tangente of the horizon from a given point looking toward a given bearing.
Definition: DEMAlgorithms.cc:101
static std::vector< std::pair< double, double > > getHorizonScan(const DEMObject &dem, Coords point, const double &increment)
Returns the horizon from a given point looking 360 degrees around by increments. If the provided poin...
Definition: DEMAlgorithms.cc:167
static void writeHorizons(const std::map< std::string, std::vector< std::pair< double, double > > > &horizon, const std::string &filename)
Write to a file the horizons from a given set of points looking 360 degrees around.
Definition: DEMAlgorithms.cc:286
A class to represent DEMs and automatically compute some properties. This class stores elevation grid...
Definition: DEMObject.h:40
A class to represent 2D Grids. Typical application as DEM or Landuse Model.
Definition: Grid2DObject.h:42
double bearing(std::string bearing_str)
Converts a string bearing to a compass bearing.
Definition: IOUtils.cc:76