13#ifndef GDALALG_RASTER_REPROJECT_INCLUDED
14#define GDALALG_RASTER_REPROJECT_INCLUDED
16#include "gdalalg_raster_pipeline.h"
26class GDALRasterReprojectAlgorithm
27 :
public GDALRasterPipelineStepAlgorithm
30 static constexpr const char *NAME =
"reproject";
31 static constexpr const char *DESCRIPTION =
"Reproject a raster dataset.";
32 static constexpr const char *HELP_URL =
33 "/programs/gdal_raster_reproject.html";
35 static std::vector<std::string> GetAliasesStatic()
40 explicit GDALRasterReprojectAlgorithm(
bool standaloneStep =
false);
42 bool CanHandleNextStep(GDALPipelineStepAlgorithm *)
const override;
45 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
47 std::string m_srsCrs{};
48 std::string m_dstCrs{};
49 std::string m_resampling{};
50 std::vector<double> m_resolution{};
51 std::vector<double> m_bbox{};
52 std::string m_bboxCrs{};
53 std::vector<int> m_size{};
54 bool m_targetAlignedPixels =
false;
55 std::vector<std::string> m_srcNoData{};
56 std::vector<std::string> m_dstNoData{};
57 bool m_addAlpha =
false;
58 std::vector<std::string> m_warpOptions{};
59 std::vector<std::string> m_transformOptions{};
60 double m_errorThreshold = std::numeric_limits<double>::quiet_NaN();
64 std::string m_numThreadsStr{
"ALL_CPUS"};
71class GDALRasterReprojectAlgorithmStandalone final
72 :
public GDALRasterReprojectAlgorithm
75 GDALRasterReprojectAlgorithmStandalone()
76 : GDALRasterReprojectAlgorithm( true)
80 ~GDALRasterReprojectAlgorithmStandalone()
override;
87class GDALRasterReprojectUtils final
90 static void AddResamplingArg(GDALAlgorithm *alg, std::string &resampling);
92 static void AddWarpOptTransformOptErrorThresholdArg(
93 GDALAlgorithm *alg, std::vector<std::string> &warpOptions,
94 std::vector<std::string> &transformOptions,
double &errorThreshold);
static constexpr const char * HIDDEN_ALIAS_SEPARATOR
Special value to put in m_aliases to separate public alias from hidden aliases.
Definition gdalalgorithm_cpp.h:2136