Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Project: GDAL 4 : * Purpose: "read" step of "mdim pipeline" 5 : * Author: Even Rouault <even dot rouault at spatialys.com> 6 : * 7 : ****************************************************************************** 8 : * Copyright (c) 2026, Even Rouault <even dot rouault at spatialys.com> 9 : * 10 : * SPDX-License-Identifier: MIT 11 : ****************************************************************************/ 12 : 13 : #ifndef GDALALG_RASTER_READ_INCLUDED 14 : #define GDALALG_RASTER_READ_INCLUDED 15 : 16 : #include "gdalmdimpipelinestepalgorithm.h" 17 : 18 : //! @cond Doxygen_Suppress 19 : 20 : /************************************************************************/ 21 : /* GDALMdimReadAlgorithm */ 22 : /************************************************************************/ 23 : 24 : class GDALMdimReadAlgorithm final : public GDALMdimPipelineStepAlgorithm 25 : { 26 : public: 27 : static constexpr const char *NAME = "read"; 28 : static constexpr const char *DESCRIPTION = 29 : "Read a multidimensional dataset."; 30 : static constexpr const char *HELP_URL = "/programs/gdal_mdim_pipeline.html"; 31 : 32 : explicit GDALMdimReadAlgorithm(bool openForMixedMdimVector = false); 33 : 34 5 : bool CanBeFirstStep() const override 35 : { 36 5 : return true; 37 : } 38 : 39 : private: 40 : bool RunStep(GDALPipelineStepRunContext &ctxt) override; 41 : }; 42 : 43 : //! @endcond 44 : 45 : #endif