13#ifndef GDALALG_VECTOR_CONVEX_HULL_INCLUDED
14#define GDALALG_VECTOR_CONVEX_HULL_INCLUDED
16#include "gdalalg_vector_geom.h"
20class GDALVectorConvexHullAlgorithm
21 :
public GDALVectorGeomAbstractAlgorithm
24 static constexpr const char *NAME =
"convex-hull";
25 static constexpr const char *DESCRIPTION =
26 "Compute the convex hull of geometries of a vector dataset.";
27 static constexpr const char *HELP_URL =
28 "/programs/gdal_vector_convex_hull.html";
30 struct Options :
public GDALVectorGeomAbstractAlgorithm::OptionsBase
34 std::unique_ptr<OGRLayerWithTranslateFeature>
35 CreateAlgLayer(
OGRLayer &srcLayer)
override;
37 explicit GDALVectorConvexHullAlgorithm(
bool standaloneStep =
false);
40 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
45class GDALVectorConvexHullAlgorithmStandalone final
46 :
public GDALVectorConvexHullAlgorithm
49 GDALVectorConvexHullAlgorithmStandalone()
50 : GDALVectorConvexHullAlgorithm( true)
54 ~GDALVectorConvexHullAlgorithmStandalone()
override;
This class represents a layer of simple features, with access methods.
Definition ogrsf_frmts.h:61