13#ifndef GDALALG_RASTER_ASPECT_INCLUDED
14#define GDALALG_RASTER_ASPECT_INCLUDED
16#include "gdalalg_raster_pipeline.h"
26class GDALRasterAspectAlgorithm
27 :
public GDALRasterPipelineStepAlgorithm
30 static constexpr const char *NAME =
"aspect";
31 static constexpr const char *DESCRIPTION =
"Generate an aspect map";
32 static constexpr const char *HELP_URL =
"/programs/gdal_raster_aspect.html";
34 explicit GDALRasterAspectAlgorithm(
bool standaloneStep =
false);
37 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
40 std::string m_convention =
"azimuth";
41 std::string m_gradientAlg =
"Horn";
42 bool m_zeroForFlat =
false;
43 bool m_noEdges =
false;
50class GDALRasterAspectAlgorithmStandalone final
51 :
public GDALRasterAspectAlgorithm
54 GDALRasterAspectAlgorithmStandalone()
55 : GDALRasterAspectAlgorithm( true)
59 ~GDALRasterAspectAlgorithmStandalone()
override;