13#ifndef GDALALG_RASTER_INDEX_INCLUDED
14#define GDALALG_RASTER_INDEX_INCLUDED
16#include "gdalalg_vector_output_abstract.h"
24class CPL_DLL GDALRasterIndexAlgorithm
25 :
public GDALVectorOutputAbstractAlgorithm
28 static constexpr const char *NAME =
"index";
29 static constexpr const char *DESCRIPTION =
30 "Create a vector index of raster datasets.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_raster_index.html";
33 GDALRasterIndexAlgorithm();
35 GDALRasterIndexAlgorithm(
const std::string &name,
36 const std::string &description,
37 const std::string &helpURL);
40 void AddCommonOptions();
44 virtual bool AddExtraOptions([[maybe_unused]] CPLStringList &aosOptions)
49 std::vector<GDALArgDatasetValue> m_inputDatasets{};
52 bool RunImpl(GDALProgressFunc pfnProgress,
void *pProgressData)
override;
54 bool m_recursive =
false;
55 std::vector<std::string> m_filenameFilter{};
56 double m_minPixelSize = 0;
57 double m_maxPixelSize = 0;
58 std::string m_locationName =
"location";
59 bool m_writeAbsolutePaths =
false;
61 std::string m_sourceCrsName{};
62 std::string m_sourceCrsFormat =
"auto";
63 std::vector<std::string> m_metadata{};
64 bool m_skipErrors =
false;