Line data Source code
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 14 : GDALConvertAlgorithm::GDALConvertAlgorithm() 24 14 : : GDALDispatcherAlgorithm(NAME, DESCRIPTION, HELP_URL) 25 : { 26 : // only for the help message 27 14 : AddProgressArg(); 28 14 : AddOutputFormatArg(&m_format); 29 14 : AddInputDatasetArg(&m_inputDataset); 30 14 : AddOutputDatasetArg(&m_outputDataset); 31 : 32 : m_longDescription = "For all options, run 'gdal raster convert --help' " 33 14 : "or 'gdal vector convert --help'"; 34 14 : } 35 : 36 : GDALConvertAlgorithm::~GDALConvertAlgorithm() = default; 37 : 38 : //! @endcond