13#ifndef GDALALG_VECTOR_INFO_INCLUDED
14#define GDALALG_VECTOR_INFO_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorInfoAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"info";
29 static constexpr const char *DESCRIPTION =
30 "Return information on a vector dataset.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_vector_info.html";
33 explicit GDALVectorInfoAlgorithm(
bool standaloneStep =
false);
35 bool CanBeLastStep()
const override
41 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
43 std::vector<std::string> m_layerNames{};
44 bool m_listFeatures =
false;
45 bool m_summaryOnly =
false;
47 std::string m_where{};
48 std::string m_dialect{};
56class GDALVectorInfoAlgorithmStandalone final :
public GDALVectorInfoAlgorithm
59 GDALVectorInfoAlgorithmStandalone()
60 : GDALVectorInfoAlgorithm( true)
64 ~GDALVectorInfoAlgorithmStandalone()
override;