LCOV - code coverage report
Current view: top level - apps - gdalalg_raster_convert.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 2 2 100.0 %
Date: 2025-09-10 17:48:50 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "raster 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_RASTER_CONVERT_INCLUDED
      14             : #define GDALALG_RASTER_CONVERT_INCLUDED
      15             : 
      16             : #include "gdalalg_raster_pipeline.h"
      17             : 
      18             : //! @cond Doxygen_Suppress
      19             : 
      20             : /************************************************************************/
      21             : /*                     GDALRasterConvertAlgorithm                       */
      22             : /************************************************************************/
      23             : 
      24             : class GDALRasterConvertAlgorithm final : public GDALRasterPipelineStepAlgorithm
      25             : {
      26             :   public:
      27             :     static constexpr const char *NAME = "convert";
      28             :     static constexpr const char *DESCRIPTION = "Convert a raster dataset.";
      29             :     static constexpr const char *HELP_URL =
      30             :         "/programs/gdal_raster_convert.html";
      31             : 
      32        1371 :     static std::vector<std::string> GetAliasesStatic()
      33             :     {
      34        4113 :         return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "translate"};
      35             :     }
      36             : 
      37             :     explicit GDALRasterConvertAlgorithm(bool standalone = true,
      38             :                                         bool openForMixedRasterVector = false);
      39             : 
      40             :   private:
      41             :     bool RunStep(GDALPipelineStepRunContext &ctxt) override;
      42             : };
      43             : 
      44             : //! @endcond
      45             : 
      46             : #endif

Generated by: LCOV version 1.14