LCOV - code coverage report
Current view: top level - apps - gdalalg_raster_stack.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 2 2 100.0 %
Date: 2025-02-20 10:14:44 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "raster stack" subcommand
       5             :  * Author:   Even Rouault <even dot rouault at spatialys.com>
       6             :  *
       7             :  ******************************************************************************
       8             :  * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
       9             :  *
      10             :  * SPDX-License-Identifier: MIT
      11             :  ****************************************************************************/
      12             : 
      13             : #ifndef GDALALG_RASTER_STACK_INCLUDED
      14             : #define GDALALG_RASTER_STACK_INCLUDED
      15             : 
      16             : #include "gdalalgorithm.h"
      17             : 
      18             : //! @cond Doxygen_Suppress
      19             : 
      20             : /************************************************************************/
      21             : /*                     GDALRasterStackAlgorithm                        */
      22             : /************************************************************************/
      23             : 
      24             : class GDALRasterStackAlgorithm final : public GDALAlgorithm
      25             : {
      26             :   public:
      27             :     static constexpr const char *NAME = "stack";
      28             :     static constexpr const char *DESCRIPTION =
      29             :         "Combine together input bands into a multi-band output, either virtual "
      30             :         "(VRT) or materialized.";
      31             :     static constexpr const char *HELP_URL = "/programs/gdal_raster_stack.html";
      32             : 
      33         203 :     static std::vector<std::string> GetAliases()
      34             :     {
      35         203 :         return {};
      36             :     }
      37             : 
      38             :     explicit GDALRasterStackAlgorithm();
      39             : 
      40             :   private:
      41             :     bool RunImpl(GDALProgressFunc pfnProgress, void *pProgressData) override;
      42             : 
      43             :     std::vector<GDALArgDatasetValue> m_inputDatasets{};
      44             :     std::string m_format{};
      45             :     GDALArgDatasetValue m_outputDataset{};
      46             :     std::vector<std::string> m_creationOptions{};
      47             :     bool m_overwrite = false;
      48             :     std::string m_resolution{};
      49             :     std::vector<double> m_bbox{};
      50             :     bool m_targetAlignedPixels = false;
      51             :     std::vector<double> m_srcNoData{};
      52             :     std::vector<double> m_dstNoData{};
      53             :     std::vector<int> m_bands{};
      54             :     bool m_hideNoData = false;
      55             : };
      56             : 
      57             : //! @endcond
      58             : 
      59             : #endif

Generated by: LCOV version 1.14