GDAL

gdalalg_vector.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "vector" 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#ifndef GDALALG_VECTOR_INCLUDED
14#define GDALALG_VECTOR_INCLUDED
15
17
18#include "gdalalgorithm.h"
19
20/************************************************************************/
21/* GDALVectorAlgorithm */
22/************************************************************************/
23
24 class GDALVectorAlgorithm final : public GDALAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "vector";
28 static constexpr const char *DESCRIPTION = "Vector commands.";
29 static constexpr const char *HELP_URL = "/programs/gdal_vector.html";
30
31 GDALVectorAlgorithm();
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
GDALAlgorithm
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261