Coverage Report

Created: 2026-04-01 06:20

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/apps/gdalalg_vector_convert.cpp
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  GDAL
4
 * Purpose:  gdal "vector convert" subcommand
5
 * Author:   Even Rouault <even dot rouault at spatialys.com>
6
 *
7
 ******************************************************************************
8
 * Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
9
 *
10
 * SPDX-License-Identifier: MIT
11
 ****************************************************************************/
12
13
#include "gdalalg_vector_convert.h"
14
15
//! @cond Doxygen_Suppress
16
17
/************************************************************************/
18
/*       GDALVectorConvertAlgorithm::GDALVectorConvertAlgorithm()       */
19
/************************************************************************/
20
21
GDALVectorConvertAlgorithm::GDALVectorConvertAlgorithm(
22
    bool /* standaloneStep */)
23
0
    : GDALVectorPipelineStepAlgorithm(NAME, DESCRIPTION, HELP_URL,
24
0
                                      ConstructorOptions()
25
0
                                          .SetStandaloneStep(true)
26
0
                                          .SetNoCreateEmptyLayersArgument(true))
27
0
{
28
0
}
29
30
/************************************************************************/
31
/*                GDALVectorConvertAlgorithm::RunImpl()                 */
32
/************************************************************************/
33
34
bool GDALVectorConvertAlgorithm::RunStep(GDALPipelineStepRunContext &)
35
0
{
36
    // Do nothing but forwarding the input dataset to the output. Real job
37
    // is done by GDALVectorWrite.
38
0
    CPLAssert(m_inputDataset.size() == 1);
39
0
    auto poSrcDS = m_inputDataset[0].GetDatasetRef();
40
0
    CPLAssert(poSrcDS);
41
42
0
    m_outputDataset.Set(poSrcDS);
43
44
0
    return true;
45
0
}
46
47
//! @endcond