13#ifndef GDALALG_VECTOR_FILTER_INCLUDED
14#define GDALALG_VECTOR_FILTER_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorFilterAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"filter";
29 static constexpr const char *DESCRIPTION =
"Filter a vector dataset.";
30 static constexpr const char *HELP_URL =
"/programs/gdal_vector_filter.html";
32 explicit GDALVectorFilterAlgorithm(
bool standaloneStep =
false);
35 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
37 std::string m_activeLayer{};
38 std::vector<double> m_bbox{};
39 std::string m_where{};
46class GDALVectorFilterAlgorithmStandalone final
47 :
public GDALVectorFilterAlgorithm
50 GDALVectorFilterAlgorithmStandalone()
51 : GDALVectorFilterAlgorithm( true)
55 ~GDALVectorFilterAlgorithmStandalone()
override;