13#ifndef GDALALG_RASTER_BLEND_INCLUDED
14#define GDALALG_RASTER_BLEND_INCLUDED
16#include "gdalalg_raster_pipeline.h"
24class GDALRasterBlendAlgorithm
25 :
public GDALRasterPipelineStepAlgorithm
28 explicit GDALRasterBlendAlgorithm(
bool standaloneStep =
false);
30 static constexpr const char *NAME =
"blend";
31 static constexpr const char *DESCRIPTION =
32 "Blend/compose two raster datasets";
33 static constexpr const char *HELP_URL =
"/programs/gdal_raster_blend.html";
36 bool RunStep(GDALPipelineStepRunContext &ctxt)
override;
37 bool ValidateGlobal();
39 GDALArgDatasetValue m_overlayDataset{};
40 std::string m_operator{};
41 static constexpr int OPACITY_INPUT_RANGE = 100;
42 int m_opacity = OPACITY_INPUT_RANGE;
49class GDALRasterBlendAlgorithmStandalone final :
public GDALRasterBlendAlgorithm
52 GDALRasterBlendAlgorithmStandalone()
53 : GDALRasterBlendAlgorithm( true)
57 ~GDALRasterBlendAlgorithmStandalone()
override;