13#ifndef GDALALG_VECTOR_SIMPLIFY_COVERAGE_INCLUDED
14#define GDALALG_VECTOR_SIMPLIFY_COVERAGE_INCLUDED
16#include "gdalalg_vector_pipeline.h"
17#include "cpl_progress.h"
27class GDALVectorSimplifyCoverageAlgorithm
28 :
public GDALVectorPipelineStepAlgorithm
31 static constexpr const char *NAME =
"simplify-coverage";
32 static constexpr const char *DESCRIPTION =
33 "Simplify shared boundaries of a polygonal vector dataset.";
34 static constexpr const char *HELP_URL =
35 "/programs/gdal_vector_simplify_coverage.html";
37 explicit GDALVectorSimplifyCoverageAlgorithm(
bool standaloneStep =
false);
42 bool preserveBoundary =
false;
45 bool IsNativelyStreamingCompatible()
const override
51 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
53 std::string m_activeLayer{};
62class GDALVectorSimplifyCoverageAlgorithmStandalone final
63 :
public GDALVectorSimplifyCoverageAlgorithm
66 GDALVectorSimplifyCoverageAlgorithmStandalone()
67 : GDALVectorSimplifyCoverageAlgorithm( true)
71 ~GDALVectorSimplifyCoverageAlgorithmStandalone()
override;