GDAL
gdalalg_vector_grid_linear.h
1/******************************************************************************
2 *
3 * Project: GDAL
4 * Purpose: gdal "vector grid linear" subcommand
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef GDALALG_VECTOR_GRID_LINEAR_INCLUDED
14#define GDALALG_VECTOR_GRID_LINEAR_INCLUDED
15
16#include "gdalalg_vector_grid.h"
17
19
20/************************************************************************/
21/* GDALVectorGridLinearAlgorithm */
22/************************************************************************/
23
24class GDALVectorGridLinearAlgorithm /* non final */
25 : public GDALVectorGridAbstractAlgorithm
26{
27 public:
28 static constexpr const char *NAME = "linear";
29 static constexpr const char *DESCRIPTION =
30 "Create a regular grid from scattered points using linear/barycentric "
31 "interpolation.";
32 static constexpr const char *HELP_URL = "/programs/gdal_vector_grid.html";
33
34 explicit GDALVectorGridLinearAlgorithm(bool standaloneStep = false);
35
36 std::string GetGridAlgorithm() const override;
37};
38
39/************************************************************************/
40/* GDALVectorGridLinearAlgorithmStandalone */
41/************************************************************************/
42
43class GDALVectorGridLinearAlgorithmStandalone final
44 : public GDALVectorGridLinearAlgorithm
45{
46 public:
47 GDALVectorGridLinearAlgorithmStandalone()
48 : GDALVectorGridLinearAlgorithm(/* standaloneStep = */ true)
49 {
50 }
51
52 ~GDALVectorGridLinearAlgorithmStandalone() override;
53};
54
56
57#endif