13#ifndef GDALALG_VECTOR_SWAP_XY_INCLUDED
14#define GDALALG_VECTOR_SWAP_XY_INCLUDED
16#include "gdalalg_vector_geom.h"
24class GDALVectorSwapXYAlgorithm
25 :
public GDALVectorGeomAbstractAlgorithm
28 static constexpr const char *NAME =
"swap-xy";
29 static constexpr const char *DESCRIPTION =
30 "Swap X and Y coordinates of geometries of a vector dataset.";
31 static constexpr const char *HELP_URL =
32 "/programs/gdal_vector_swap_xy.html";
34 struct Options :
public GDALVectorGeomAbstractAlgorithm::OptionsBase
38 std::unique_ptr<OGRLayerWithTranslateFeature>
39 CreateAlgLayer(OGRLayer &srcLayer)
override;
41 explicit GDALVectorSwapXYAlgorithm(
bool standaloneStep =
false);
51class GDALVectorSwapXYAlgorithmStandalone final
52 :
public GDALVectorSwapXYAlgorithm
55 GDALVectorSwapXYAlgorithmStandalone()
56 : GDALVectorSwapXYAlgorithm( true)
60 ~GDALVectorSwapXYAlgorithmStandalone()
override;