LCOV - code coverage report
Current view: top level - apps - gdalalg_vector_grid_linear.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 9 9 100.0 %
Date: 2025-06-19 12:30:01 Functions: 2 2 100.0 %

          Line data    Source code
       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           9 : GDALVectorGridLinearAlgorithm::GDALVectorGridLinearAlgorithm(
      24           9 :     bool standaloneStep)
      25             :     : GDALVectorGridAbstractAlgorithm(NAME, DESCRIPTION, HELP_URL,
      26           9 :                                       standaloneStep)
      27             : {
      28           9 :     m_radius = std::numeric_limits<double>::infinity();
      29           9 :     AddRadiusArg().SetDefault(m_radius);
      30           9 :     AddNodataArg();
      31           9 : }
      32             : 
      33             : /************************************************************************/
      34             : /*               GDALVectorGridLinearAlgorithm::RunImpl()              */
      35             : /************************************************************************/
      36             : 
      37           5 : std::string GDALVectorGridLinearAlgorithm::GetGridAlgorithm() const
      38             : {
      39           5 :     return CPLSPrintf("linear:radius=%.17g:nodata=%.17g", m_radius, m_nodata);
      40             : }
      41             : 
      42             : GDALVectorGridLinearAlgorithmStandalone::
      43             :     ~GDALVectorGridLinearAlgorithmStandalone() = default;
      44             : 
      45             : //! @endcond

Generated by: LCOV version 1.14