13#ifndef GDALALG_RASTER_EDIT_INCLUDED
14#define GDALALG_RASTER_EDIT_INCLUDED
16#include "gdalalg_raster_pipeline.h"
29class GDALRasterEditAlgorithm
30 :
public GDALRasterPipelineStepAlgorithm
33 static constexpr const char *NAME =
"edit";
34 static constexpr const char *DESCRIPTION =
"Edit a raster dataset.";
35 static constexpr const char *HELP_URL =
"/programs/gdal_raster_edit.html";
37 explicit GDALRasterEditAlgorithm(
bool standaloneStep =
false);
38 ~GDALRasterEditAlgorithm()
override;
41 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
42 std::vector<gdal::GCP> ParseGCPs()
const;
44 GDALArgDatasetValue m_dataset{};
45 bool m_readOnly =
false;
46 std::string m_overrideCrs{};
47 std::vector<double> m_bbox{};
48 std::vector<std::string> m_metadata{};
49 std::vector<std::string> m_unsetMetadata{};
50 std::vector<std::string> m_unsetMetadataDomain{};
51 std::string m_nodata{};
52 std::vector<std::string> m_gcps{};
54 bool m_approxStats =
false;
62class GDALRasterEditAlgorithmStandalone final :
public GDALRasterEditAlgorithm
65 GDALRasterEditAlgorithmStandalone()
66 : GDALRasterEditAlgorithm( true)
70 ~GDALRasterEditAlgorithmStandalone()
override;
C++ wrapper over the C GDAL_GCP structure.
Definition gdal_gcp.h:36