13#ifndef GDALALG_VECTOR_SEGMENTIZE_INCLUDED
14#define GDALALG_VECTOR_SEGMENTIZE_INCLUDED
16#include "gdalalg_vector_geom.h"
24class GDALVectorSegmentizeAlgorithm
25 :
public GDALVectorGeomAbstractAlgorithm
28 static constexpr const char *NAME =
"segmentize";
29 static constexpr const char *DESCRIPTION =
30 "Segmentize geometries of a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_segmentize.html";
34 struct Options :
public GDALVectorGeomAbstractAlgorithm::OptionsBase
36 double m_maxLength = 0;
39 std::unique_ptr<OGRLayerWithTranslateFeature>
40 CreateAlgLayer(OGRLayer &srcLayer)
override;
42 explicit GDALVectorSegmentizeAlgorithm(
bool standaloneStep =
false);
52class GDALVectorSegmentizeAlgorithmStandalone final
53 :
public GDALVectorSegmentizeAlgorithm
56 GDALVectorSegmentizeAlgorithmStandalone()
57 : GDALVectorSegmentizeAlgorithm( true)
61 ~GDALVectorSegmentizeAlgorithmStandalone()
override;