GDAL

gdalalg_mdim_convert.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "mdim convert" subcommand
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef GDALALG_MDIM_CONVERT_INCLUDED
14#define GDALALG_MDIM_CONVERT_INCLUDED
15
16#include "gdalalgorithm.h"
17
19
20/************************************************************************/
21/* GDALMdimConvertAlgorithm */
22/************************************************************************/
23
24 class GDALMdimConvertAlgorithm final : public GDALAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "convert";
28 static constexpr const char *DESCRIPTION =
29 "Convert a multidimensional dataset.";
30 static constexpr const char *HELP_URL = "/programs/gdal_mdim_convert.html";
31
32 explicit GDALMdimConvertAlgorithm();
33
34 private:
35 bool RunImpl(GDALProgressFunc pfnProgress, void *pProgressData) override;
36
37 std::string m_outputFormat{};
38 GDALArgDatasetValue m_inputDataset{};
39 std::vector<std::string> m_openOptions{};
40 std::vector<std::string> m_inputFormats{};
41 GDALArgDatasetValue m_outputDataset{};
42 std::vector<std::string> m_creationOptions{};
43 bool m_overwrite = false;
44 bool m_strict = false;
45 std::vector<std::string> m_arrays{};
46 std::vector<std::string> m_arrayOptions{};
47 std::vector<std::string> m_groups{};
48 std::vector<std::string> m_subsets{};
49 std::vector<std::string> m_scaleAxes{};
50};
51
53
54#endif
GDALAlgorithm
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
GDALArgDatasetValue
Value for an argument that points to a GDALDataset.
Definition gdalalgorithm_cpp.h:149