LCOV - code coverage report
Current view: top level - apps - gdalalg_convert.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 8 8 100.0 %
Date: 2026-01-07 04:16:14 Functions: 1 1 100.0 %

          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

Generated by: LCOV version 1.14