13#ifndef GDALALG_VECTOR_SIMPLIFY_INCLUDED
14#define GDALALG_VECTOR_SIMPLIFY_INCLUDED
16#include "gdalalg_vector_geom.h"
24class GDALVectorSimplifyAlgorithm
25 :
public GDALVectorGeomAbstractAlgorithm
28 static constexpr const char *NAME =
"simplify";
29 static constexpr const char *DESCRIPTION =
30 "Simplify geometries of a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_simplify.html";
34 struct Options :
public GDALVectorGeomAbstractAlgorithm::OptionsBase
36 double m_tolerance = 0;
39 std::unique_ptr<OGRLayerWithTranslateFeature>
40 CreateAlgLayer(OGRLayer &srcLayer)
override;
42 explicit GDALVectorSimplifyAlgorithm(
bool standaloneStep =
false);
45 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
54class GDALVectorSimplifyAlgorithmStandalone final
55 :
public GDALVectorSimplifyAlgorithm
58 GDALVectorSimplifyAlgorithmStandalone()
59 : GDALVectorSimplifyAlgorithm( true)
63 ~GDALVectorSimplifyAlgorithmStandalone()
override;