GDAL
gdalalg_mdim_info.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "mdim info" 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_INFO_INCLUDED
14#define GDALALG_MDIM_INFO_INCLUDED
15
16#include "gdalalgorithm.h"
17
19
20/************************************************************************/
21/* GDALMdimInfoAlgorithm */
22/************************************************************************/
23
24class GDALMdimInfoAlgorithm final : public GDALAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "info";
28 static constexpr const char *DESCRIPTION =
29 "Return information on a multidimensional dataset.";
30 static constexpr const char *HELP_URL = "/programs/gdal_mdim_info.html";
31
32 GDALMdimInfoAlgorithm();
33
34 private:
35 bool RunImpl(GDALProgressFunc pfnProgress, void *pProgressData) override;
36
37 std::string m_format{};
38 GDALArgDatasetValue m_dataset{};
39 std::vector<std::string> m_openOptions{};
40 std::vector<std::string> m_inputFormats{};
41 std::string m_output{};
42 bool m_detailed = false;
43 std::string m_array{};
44 int m_limit = 0;
45 std::vector<std::string> m_arrayOptions{};
46 bool m_stats = false;
47 bool m_stdout = false;
48};
49
51
52#endif
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261