LCOV - code coverage report
Current view: top level - frmts/pcraster - pcrastermisc.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 9 11 81.8 %
Date: 2024-11-25 13:07:18 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  PCRaster Integration
       4             :  * Purpose:  PCRaster driver support functions.
       5             :  * Author:   Kor de Jong, Oliver Schmitz
       6             :  *
       7             :  ******************************************************************************
       8             :  * Copyright (c) PCRaster owners
       9             :  *
      10             :  * SPDX-License-Identifier: MIT
      11             :  ****************************************************************************/
      12             : 
      13             : #include "gdal_frmts.h"
      14             : #include "gdal_pam.h"
      15             : #include "pcrasterdataset.h"
      16             : #include "pcrasterdrivercore.h"
      17             : 
      18           9 : void GDALRegister_PCRaster()
      19             : {
      20           9 :     if (!GDAL_CHECK_VERSION("PCRaster driver"))
      21           0 :         return;
      22             : 
      23           9 :     if (GDALGetDriverByName(DRIVER_NAME) != nullptr)
      24           0 :         return;
      25             : 
      26           9 :     GDALDriver *poDriver = new GDALDriver();
      27           9 :     PCRasterDriverSetCommonMetadata(poDriver);
      28             : 
      29           9 :     poDriver->pfnOpen = PCRasterDataset::open;
      30           9 :     poDriver->pfnCreate = PCRasterDataset::create;
      31           9 :     poDriver->pfnCreateCopy = PCRasterDataset::createCopy;
      32             : 
      33           9 :     GetGDALDriverManager()->RegisterDriver(poDriver);
      34             : }

Generated by: LCOV version 1.14