13#ifndef GDALALG_VECTOR_CHECK_GEOMETRY_INCLUDED
14#define GDALALG_VECTOR_CHECK_GEOMETRY_INCLUDED
16#include "gdalalg_vector_pipeline.h"
17#include "cpl_progress.h"
27class GDALVectorCheckGeometryAlgorithm :
public GDALVectorPipelineStepAlgorithm
30 static constexpr const char *NAME =
"check-geometry";
31 static constexpr const char *DESCRIPTION =
32 "Check a dataset for invalid geometries";
33 static constexpr const char *HELP_URL =
34 "/programs/gdal_vector_check_geometry.html";
36 explicit GDALVectorCheckGeometryAlgorithm(
bool standaloneStep =
false);
39 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
41 std::vector<std::string> m_includeFields{};
42 std::string m_geomField{};
43 bool m_includeValid{
false};
50class GDALVectorCheckGeometryAlgorithmStandalone final
51 :
public GDALVectorCheckGeometryAlgorithm
54 GDALVectorCheckGeometryAlgorithmStandalone()
55 : GDALVectorCheckGeometryAlgorithm( true)
59 ~GDALVectorCheckGeometryAlgorithmStandalone()
override;