GDAL

gdalalg_raster_overview_refresh.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "raster overview refresh" 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_REFRESH_INCLUDED
14#define GDALALG_RASTER_OVERVIEW_REFRESH_INCLUDED
15
16#include "gdalalgorithm.h"
17
19
20/************************************************************************/
21/* GDALRasterOverviewAlgorithmRefresh */
22/************************************************************************/
23
24 class GDALRasterOverviewAlgorithmRefresh final : public GDALAlgorithm
25{
26 public:
27 static constexpr const char *NAME = "refresh";
28 static constexpr const char *DESCRIPTION = "Refresh overviews.";
29 static constexpr const char *HELP_URL =
30 "/programs/gdal_raster_overview_refresh.html";
31
32 GDALRasterOverviewAlgorithmRefresh();
33
34 private:
35 bool RunImpl(GDALProgressFunc, void *) override;
36
37 GDALArgDatasetValue m_dataset{};
38 std::vector<std::string> m_openOptions{};
39 std::vector<std::string> m_inputFormats{};
40 bool m_readOnly = false;
41
42 std::string m_resampling{};
43 std::vector<int> m_levels{};
44
45 bool m_refreshFromSourceTimestamp = false;
46 std::vector<double> m_refreshBbox{};
47 std::vector<std::string> m_like{};
48};
49
51
52#endif
GDALAlgorithm
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
GDALArgDatasetValue
Value for an argument that points to a GDALDataset.
Definition gdalalgorithm_cpp.h:149