13#ifndef GDALALG_VECTOR_SET_TYPE_INCLUDED
14#define GDALALG_VECTOR_SET_TYPE_INCLUDED
16#include "gdalalg_vector_geom.h"
24class GDALVectorSetGeomTypeAlgorithm
25 :
public GDALVectorGeomAbstractAlgorithm
28 static constexpr const char *NAME =
"set-geom-type";
29 static constexpr const char *DESCRIPTION =
30 "Modify the geometry type of a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_set_geom_type.html";
34 static std::vector<std::string> GetAliasesStatic()
43 explicit GDALVectorSetGeomTypeAlgorithm(
bool standaloneStep =
false);
45 struct Options :
public GDALVectorGeomAbstractAlgorithm::OptionsBase
47 bool m_layerOnly =
false;
48 bool m_featureGeomOnly =
false;
51 bool m_single =
false;
52 bool m_linear =
false;
61 std::unique_ptr<OGRLayerWithTranslateFeature>
62 CreateAlgLayer(OGRLayer &srcLayer)
override;
65 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
74class GDALVectorSetGeomTypeAlgorithmStandalone final
75 :
public GDALVectorSetGeomTypeAlgorithm
78 GDALVectorSetGeomTypeAlgorithmStandalone()
79 : GDALVectorSetGeomTypeAlgorithm( true)
83 ~GDALVectorSetGeomTypeAlgorithmStandalone()
override;
static constexpr const char * HIDDEN_ALIAS_SEPARATOR
Special value to put in m_aliases to separate public alias from hidden aliases.
Definition gdalalgorithm_cpp.h:2136
OGRwkbGeometryType
List of well known binary geometry types.
Definition ogr_core.h:405
@ wkbUnknown
unknown type, non-standard
Definition ogr_core.h:406