forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdalalg_raster_reproject.h
67 lines (54 loc) · 2.11 KB
/
gdalalg_raster_reproject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/******************************************************************************
*
* Project: GDAL
* Purpose: "reproject" step of "raster pipeline"
* Author: Even Rouault <even dot rouault at spatialys.com>
*
******************************************************************************
* Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
*
* SPDX-License-Identifier: MIT
****************************************************************************/
#ifndef GDALALG_RASTER_REPROJECT_INCLUDED
#define GDALALG_RASTER_REPROJECT_INCLUDED
#include "gdalalg_raster_pipeline.h"
//! @cond Doxygen_Suppress
/************************************************************************/
/* GDALRasterReprojectAlgorithm */
/************************************************************************/
class GDALRasterReprojectAlgorithm /* non final */
: public GDALRasterPipelineStepAlgorithm
{
public:
static constexpr const char *NAME = "reproject";
static constexpr const char *DESCRIPTION = "Reproject a raster dataset.";
static constexpr const char *HELP_URL =
"/programs/gdal_raster_reproject.html";
static std::vector<std::string> GetAliases()
{
return {};
}
explicit GDALRasterReprojectAlgorithm(bool standaloneStep = false);
private:
bool RunStep(GDALProgressFunc pfnProgress, void *pProgressData) override;
std::string m_srsCrs{};
std::string m_dstCrs{};
std::string m_resampling{};
std::vector<double> m_resolution{};
std::vector<double> m_bbox{};
bool m_targetAlignedPixels = false;
};
/************************************************************************/
/* GDALRasterReprojectAlgorithmStandalone */
/************************************************************************/
class GDALRasterReprojectAlgorithmStandalone final
: public GDALRasterReprojectAlgorithm
{
public:
GDALRasterReprojectAlgorithmStandalone()
: GDALRasterReprojectAlgorithm(/* standaloneStep = */ true)
{
}
};
//! @endcond
#endif /* GDALALG_RASTER_REPROJECT_INCLUDED */