/src/gdal/apps/gdalalg_convert.cpp
Line | Count | Source |
1 | | /****************************************************************************** |
2 | | * |
3 | | * Project: GDAL |
4 | | * Purpose: gdal "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 | | //! @cond Doxygen_Suppress |
14 | | |
15 | | #include "cpl_error.h" |
16 | | #include "gdalalg_convert.h" |
17 | | #include "gdal_priv.h" |
18 | | |
19 | | /************************************************************************/ |
20 | | /* GDALConvertAlgorithm */ |
21 | | /************************************************************************/ |
22 | | |
23 | | GDALConvertAlgorithm::GDALConvertAlgorithm() |
24 | 0 | : GDALDispatcherAlgorithm(NAME, DESCRIPTION, HELP_URL) |
25 | 0 | { |
26 | | // only for the help message |
27 | 0 | AddProgressArg(); |
28 | 0 | AddOutputFormatArg(&m_format); |
29 | 0 | AddInputDatasetArg(&m_inputDataset); |
30 | 0 | AddOutputDatasetArg(&m_outputDataset); |
31 | |
|
32 | 0 | m_longDescription = "For all options, run 'gdal raster convert --help' " |
33 | 0 | "or 'gdal vector convert --help'"; |
34 | 0 | } |
35 | | |
36 | 0 | GDALConvertAlgorithm::~GDALConvertAlgorithm() = default; |
37 | | |
38 | | //! @endcond |