13#ifndef GDALALG_VECTOR_CHECK_COVERAGE_INCLUDED
14#define GDALALG_VECTOR_CHECK_COVERAGE_INCLUDED
16#include "gdalalg_vector_pipeline.h"
17#include "cpl_progress.h"
27class GDALVectorCheckCoverageAlgorithm :
public GDALVectorPipelineStepAlgorithm
30 static constexpr const char *NAME =
"check-coverage";
31 static constexpr const char *DESCRIPTION =
32 "Check a polygon coverage for validity";
33 static constexpr const char *HELP_URL =
34 "/programs/gdal_vector_check_coverage.html";
36 explicit GDALVectorCheckCoverageAlgorithm(
bool standaloneStep =
false);
38 bool IsNativelyStreamingCompatible()
const override
44 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
46 std::string m_geomField{};
47 bool m_includeValid{
false};
48 double m_maximumGapWidth{};
55class GDALVectorCheckCoverageAlgorithmStandalone final
56 :
public GDALVectorCheckCoverageAlgorithm
59 GDALVectorCheckCoverageAlgorithmStandalone()
60 : GDALVectorCheckCoverageAlgorithm( true)
64 ~GDALVectorCheckCoverageAlgorithmStandalone()
override;