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_linear.cpp
Line
Count
Source
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
#include "gdalalg_vector_grid_linear.h"
14
15
#include <limits>
16
17
//! @cond Doxygen_Suppress
18
19
/************************************************************************/
20
/*    GDALVectorGridLinearAlgorithm::GDALVectorGridLinearAlgorithm()    */
21
/************************************************************************/
22
23
GDALVectorGridLinearAlgorithm::GDALVectorGridLinearAlgorithm(
24
    bool standaloneStep)
25
0
    : GDALVectorGridAbstractAlgorithm(NAME, DESCRIPTION, HELP_URL,
26
0
                                      standaloneStep)
27
0
{
28
0
    m_radius = std::numeric_limits<double>::infinity();
29
0
    AddRadiusArg().SetDefault(m_radius);
30
0
    AddNodataArg();
31
0
}
32
33
/************************************************************************/
34
/*               GDALVectorGridLinearAlgorithm::RunImpl()               */
35
/************************************************************************/
36
37
std::string GDALVectorGridLinearAlgorithm::GetGridAlgorithm() const
38
0
{
39
0
    return CPLSPrintf("linear:radius=%.17g:nodata=%.17g", m_radius, m_nodata);
40
0
}
41
42
GDALVectorGridLinearAlgorithmStandalone::
43
0
    ~GDALVectorGridLinearAlgorithmStandalone() = default;
44
45
//! @endcond