GDAL

gdalalg_vector_convert.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "vector convert" 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_CONVERT_INCLUDED
14#define GDALALG_VECTOR_CONVERT_INCLUDED
15
16#include "gdalalg_vector_pipeline.h"
17
19
20/************************************************************************/
21/* GDALVectorConvertAlgorithm */
22/************************************************************************/
23
24 class GDALVectorConvertAlgorithm final : public GDALVectorPipelineStepAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "convert";
28 static constexpr const char *DESCRIPTION = "Convert a vector dataset.";
29 static constexpr const char *HELP_URL =
30 "/programs/gdal_vector_convert.html";
31
32 static std::vector<std::string> GetAliasesStatic()
33 {
34 return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "translate"};
35 }
36
37 explicit GDALVectorConvertAlgorithm(bool /* standaloneStep */ = true);
38
39 private:
40 bool RunStep(GDALPipelineStepRunContext &ctxt) override;
41};
42
44
45#endif
GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR
static constexpr const char * HIDDEN_ALIAS_SEPARATOR
Special value to put in m_aliases to separate public alias from hidden aliases.
Definition gdalalgorithm_cpp.h:2136