13#ifndef GDALALG_RASTER_EDIT_INCLUDED
14#define GDALALG_RASTER_EDIT_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorEditAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"edit";
29 static constexpr const char *DESCRIPTION =
30 "Edit metadata of a vector dataset.";
31 static constexpr const char *HELP_URL =
"/programs/gdal_vector_edit.html";
33 explicit GDALVectorEditAlgorithm(
bool standaloneStep =
false);
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
38 std::string m_activeLayer{};
39 std::string m_overrideCrs{};
40 std::string m_geometryType{};
41 std::vector<std::string> m_metadata{};
42 std::vector<std::string> m_unsetMetadata{};
43 std::vector<std::string> m_layerMetadata{};
44 std::vector<std::string> m_unsetLayerMetadata{};
45 bool m_unsetFID =
false;
52class GDALVectorEditAlgorithmStandalone final :
public GDALVectorEditAlgorithm
55 GDALVectorEditAlgorithmStandalone()
56 : GDALVectorEditAlgorithm( true)
60 ~GDALVectorEditAlgorithmStandalone()
override;