GDAL
gdalalg_raster.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "raster" subcommand
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#include "gdalalgorithm.h"
14
15#ifndef GDALALG_RASTER_INCLUDED
16#define GDALALG_RASTER_INCLUDED
17
19
20/************************************************************************/
21/* GDALRasterAlgorithm */
22/************************************************************************/
23
24class GDALRasterAlgorithm final : public GDALAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "raster";
28 static constexpr const char *DESCRIPTION = "Raster commands.";
29 static constexpr const char *HELP_URL = "/programs/gdal_raster.html";
30
31 GDALRasterAlgorithm();
32
33 private:
34 std::string m_output{};
35 bool m_drivers = false;
36
37 bool RunImpl(GDALProgressFunc, void *) override;
38};
39
41
42#endif
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261