13#ifndef GDALALG_RASTER_SELECT_INCLUDED
14#define GDALALG_RASTER_SELECT_INCLUDED
16#include "gdalalg_raster_pipeline.h"
24class GDALRasterSelectAlgorithm
25 :
public GDALRasterPipelineStepAlgorithm
28 static constexpr const char *NAME =
"select";
29 static constexpr const char *DESCRIPTION =
30 "Select a subset of bands from a raster dataset.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_raster_select.html";
33 explicit GDALRasterSelectAlgorithm(
bool standaloneStep =
false);
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
38 std::vector<std::string> m_bands{};
46class GDALRasterSelectAlgorithmStandalone final
47 :
public GDALRasterSelectAlgorithm
50 GDALRasterSelectAlgorithmStandalone()
51 : GDALRasterSelectAlgorithm( true)
55 ~GDALRasterSelectAlgorithmStandalone()
override;