13#ifndef GDALALG_VECTOR_EXPORT_SCHEMA_INCLUDED
14#define GDALALG_VECTOR_EXPORT_SCHEMA_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorExportSchemaAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"export-schema";
29 static constexpr const char *DESCRIPTION =
30 "Export the OGR_SCHEMA from a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_export_schema.html";
34 explicit GDALVectorExportSchemaAlgorithm(
bool standaloneStep =
false);
36 bool CanBeLastStep()
const override
42 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
44 std::vector<std::string> m_layerNames{};
51class GDALVectorExportSchemaAlgorithmStandalone final
52 :
public GDALVectorExportSchemaAlgorithm
55 GDALVectorExportSchemaAlgorithmStandalone()
56 : GDALVectorExportSchemaAlgorithm( true)
60 ~GDALVectorExportSchemaAlgorithmStandalone()
override;