Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Project: GDAL 4 : * Purpose: gdal "raster overview" 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_OVERVIEW_INCLUDED 14 : #define GDALALG_RASTER_OVERVIEW_INCLUDED 15 : 16 : #include "gdalalgorithm.h" 17 : 18 : //! @cond Doxygen_Suppress 19 : 20 : #include "gdalalgorithm.h" 21 : 22 : #include "gdalalg_raster_overview_add.h" 23 : #include "gdalalg_raster_overview_delete.h" 24 : #include "gdalalg_raster_overview_refresh.h" 25 : 26 : /************************************************************************/ 27 : /* GDALRasterOverviewAlgorithm */ 28 : /************************************************************************/ 29 : 30 : class GDALRasterOverviewAlgorithm final : public GDALAlgorithm 31 : { 32 : public: 33 : static constexpr const char *NAME = "overview"; 34 : static constexpr const char *DESCRIPTION = 35 : "Manage overviews of a raster dataset."; 36 : static constexpr const char *HELP_URL = 37 : "/programs/gdal_raster_overview.html"; 38 : 39 37 : GDALRasterOverviewAlgorithm() : GDALAlgorithm(NAME, DESCRIPTION, HELP_URL) 40 : { 41 37 : RegisterSubAlgorithm<GDALRasterOverviewAlgorithmAdd>(); 42 37 : RegisterSubAlgorithm<GDALRasterOverviewAlgorithmDelete>(); 43 37 : RegisterSubAlgorithm<GDALRasterOverviewAlgorithmRefresh>(); 44 37 : } 45 : 46 : private: 47 : bool RunImpl(GDALProgressFunc, void *) override; 48 : }; 49 : 50 : //! @endcond 51 : 52 : #endif