13#ifndef GDALALG_VECTOR_INDEX_INCLUDED
14#define GDALALG_VECTOR_INDEX_INCLUDED
16#include "gdalalg_vector_output_abstract.h"
24class CPL_DLL GDALVectorIndexAlgorithm final
25 :
public GDALVectorOutputAbstractAlgorithm
28 static constexpr const char *NAME =
"index";
29 static constexpr const char *DESCRIPTION =
30 "Create a vector index of vector datasets.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_vector_index.html";
33 GDALVectorIndexAlgorithm();
36 bool RunImpl(GDALProgressFunc pfnProgress,
void *pProgressData)
override;
38 std::vector<GDALArgDatasetValue> m_inputDatasets{};
39 bool m_recursive =
false;
40 std::vector<std::string> m_filenameFilter{};
41 std::string m_locationName =
"location";
42 bool m_writeAbsolutePaths =
false;
44 std::string m_sourceCrsName{};
45 std::string m_sourceCrsFormat =
"auto";
46 std::vector<std::string> m_metadata{};
47 std::vector<std::string> m_layerNames{};
48 std::vector<int> m_layerIndices{};
49 bool m_datasetNameOnly =
false;
50 bool m_skipDifferentCRS =
false;
51 bool m_acceptDifferentCRS =
false;
52 bool m_acceptDifferentSchemas =
false;
53 bool m_calledFromOgrTIndex =
false;