13#ifndef GDALALG_RASTER_TPI_INCLUDED
14#define GDALALG_RASTER_TPI_INCLUDED
16#include "gdalalg_raster_pipeline.h"
26class GDALRasterTPIAlgorithm
27 :
public GDALRasterPipelineStepAlgorithm
30 static constexpr const char *NAME =
"tpi";
31 static constexpr const char *DESCRIPTION =
32 "Generate a Topographic Position Index (TPI) map";
33 static constexpr const char *HELP_URL =
"/programs/gdal_raster_tpi.html";
35 explicit GDALRasterTPIAlgorithm(
bool standaloneStep =
false);
38 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
41 bool m_noEdges =
false;
48class GDALRasterTPIAlgorithmStandalone final :
public GDALRasterTPIAlgorithm
51 GDALRasterTPIAlgorithmStandalone()
52 : GDALRasterTPIAlgorithm( true)
56 ~GDALRasterTPIAlgorithmStandalone()
override;