13#ifndef GDALALG_RASTER_RESIZE_INCLUDED
14#define GDALALG_RASTER_RESIZE_INCLUDED
16#include "gdalalg_raster_pipeline.h"
24class GDALRasterResizeAlgorithm
25 :
public GDALRasterPipelineStepAlgorithm
28 static constexpr const char *NAME =
"resize";
29 static constexpr const char *DESCRIPTION =
30 "Resize a raster dataset without changing the georeferenced extents.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_raster_resize.html";
33 explicit GDALRasterResizeAlgorithm(
bool standaloneStep =
false);
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
38 std::vector<std::string> m_size{};
39 std::vector<double> m_resolution{};
40 std::string m_resampling{};
47class GDALRasterResizeAlgorithmStandalone final
48 :
public GDALRasterResizeAlgorithm
51 GDALRasterResizeAlgorithmStandalone()
52 : GDALRasterResizeAlgorithm( true)
56 ~GDALRasterResizeAlgorithmStandalone()
override;