Coverage Report

Created: 2026-02-14 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/apps/gdalalg_vector_grid_average.h
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  GDAL
4
 * Purpose:  gdal "vector grid average" 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_AVERAGE_INCLUDED
14
#define GDALALG_VECTOR_GRID_AVERAGE_INCLUDED
15
16
#include "gdalalg_vector_grid.h"
17
18
#include <limits>
19
20
//! @cond Doxygen_Suppress
21
22
/************************************************************************/
23
/*                    GDALVectorGridAverageAlgorithm                    */
24
/************************************************************************/
25
26
class GDALVectorGridAverageAlgorithm /* non final */
27
    : public GDALVectorGridAbstractAlgorithm
28
{
29
  public:
30
    static constexpr const char *NAME = "average";
31
    static constexpr const char *DESCRIPTION =
32
        "Create a regular grid from scattered points using moving average "
33
        "interpolation.";
34
    static constexpr const char *HELP_URL = "/programs/gdal_vector_grid.html";
35
36
    explicit GDALVectorGridAverageAlgorithm(bool standaloneStep = false);
37
38
    std::string GetGridAlgorithm() const override;
39
};
40
41
/************************************************************************/
42
/*               GDALVectorGridAverageAlgorithmStandalone               */
43
/************************************************************************/
44
45
class GDALVectorGridAverageAlgorithmStandalone final
46
    : public GDALVectorGridAverageAlgorithm
47
{
48
  public:
49
    GDALVectorGridAverageAlgorithmStandalone()
50
0
        : GDALVectorGridAverageAlgorithm(/* standaloneStep = */ true)
51
0
    {
52
0
    }
53
54
    ~GDALVectorGridAverageAlgorithmStandalone() override;
55
};
56
57
//! @endcond
58
59
#endif