13#ifndef GDALALG_VECTOR_RENAME_LAYER_INCLUDED
14#define GDALALG_VECTOR_RENAME_LAYER_INCLUDED
16#include "gdalalg_vector_pipeline.h"
24class GDALVectorRenameLayerAlgorithm
25 :
public GDALVectorPipelineStepAlgorithm
28 static constexpr const char *NAME =
"rename-layer";
29 static constexpr const char *DESCRIPTION =
30 "Rename layer(s) of a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_rename_layer.html";
34 explicit GDALVectorRenameLayerAlgorithm(
bool standaloneStep =
false);
37 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
39 std::string m_inputLayerName{};
41 bool m_filenameCompatible =
false;
42 bool m_lowerCase =
false;
43 std::string m_reservedChars{};
44 std::string m_replacementChar{};
52class GDALVectorRenameLayerAlgorithmStandalone final
53 :
public GDALVectorRenameLayerAlgorithm
56 GDALVectorRenameLayerAlgorithmStandalone()
57 : GDALVectorRenameLayerAlgorithm( true)
61 ~GDALVectorRenameLayerAlgorithmStandalone()
override;