13#ifndef GDALALG_RASTER_OVERVIEW_ADD_INCLUDED
14#define GDALALG_RASTER_OVERVIEW_ADD_INCLUDED
16#include "gdalalg_raster_pipeline.h"
24class GDALRasterOverviewAlgorithmAdd
25 :
public GDALRasterPipelineStepAlgorithm
28 static constexpr const char *NAME =
"add";
29 static constexpr const char *DESCRIPTION =
"Adding overviews.";
30 static constexpr const char *HELP_URL =
31 "/programs/gdal_raster_overview_add.html";
33 explicit GDALRasterOverviewAlgorithmAdd(
bool standaloneStep =
false);
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
37 bool RunImpl(GDALProgressFunc,
void *)
override;
39 std::vector<GDALArgDatasetValue> m_overviewSources{};
40 std::string m_resampling{};
41 std::vector<int> m_levels{};
43 bool m_readOnly =
false;
50class GDALRasterOverviewAlgorithmAddStandalone final
51 :
public GDALRasterOverviewAlgorithmAdd
54 GDALRasterOverviewAlgorithmAddStandalone()
55 : GDALRasterOverviewAlgorithmAdd( true)
59 ~GDALRasterOverviewAlgorithmAddStandalone()
override;