13#ifndef GDALALG_VECTOR_SELECT_INCLUDED
14#define GDALALG_VECTOR_SELECT_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorSelectAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"select";
29 static constexpr const char *DESCRIPTION =
30 "Select a subset of fields from a vector dataset.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_vector_select.html";
33 explicit GDALVectorSelectAlgorithm(
bool standaloneStep =
false);
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
38 std::string m_activeLayer{};
39 std::vector<std::string> m_fields{};
40 bool m_ignoreMissingFields =
false;
41 bool m_exclude =
false;
48class GDALVectorSelectAlgorithmStandalone final
49 :
public GDALVectorSelectAlgorithm
52 GDALVectorSelectAlgorithmStandalone()
53 : GDALVectorSelectAlgorithm( true)
57 ~GDALVectorSelectAlgorithmStandalone()
override;