LCOV - code coverage report
Current view: top level - gcore - gdaljp2abstractdataset.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 1 3 33.3 %
Date: 2025-01-18 12:42:00 Functions: 1 2 50.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  GDALGeorefPamDataset with helper to read georeferencing and other
       5             :  *           metadata from JP2Boxes
       6             :  * Author:   Even Rouault <even dot rouault at spatialys.com>
       7             :  *
       8             :  ******************************************************************************
       9             :  * Copyright (c) 2013, Even Rouault <even dot rouault at spatialys.com>
      10             :  *
      11             :  * SPDX-License-Identifier: MIT
      12             :  ****************************************************************************/
      13             : 
      14             : #ifndef GDAL_JP2_ABSTRACT_DATASET_H_INCLUDED
      15             : #define GDAL_JP2_ABSTRACT_DATASET_H_INCLUDED
      16             : 
      17             : //! @cond Doxygen_Suppress
      18             : #include "gdalgeorefpamdataset.h"
      19             : 
      20        2443 : class CPL_DLL GDALJP2AbstractDataset : public GDALGeorefPamDataset
      21             : {
      22             :     char *pszWldFilename = nullptr;
      23             : 
      24             :     GDALDataset *poMemDS = nullptr;
      25             :     char **papszMetadataFiles = nullptr;
      26             :     int m_nWORLDFILEIndex = -1;
      27             :     CPLStringList m_aosImageStructureMetadata{};
      28             : 
      29             :     CPL_DISALLOW_COPY_ASSIGN(GDALJP2AbstractDataset)
      30             : 
      31             :   protected:
      32             :     int CloseDependentDatasets() override;
      33             : 
      34           0 :     virtual VSILFILE *GetFileHandle()
      35             :     {
      36           0 :         return nullptr;
      37             :     }
      38             : 
      39             :   public:
      40             :     GDALJP2AbstractDataset();
      41             :     ~GDALJP2AbstractDataset() override;
      42             : 
      43             :     void LoadJP2Metadata(GDALOpenInfo *poOpenInfo,
      44             :                          const char *pszOverrideFilename = nullptr,
      45             :                          VSILFILE *fpBox = nullptr);
      46             :     void LoadVectorLayers(int bOpenRemoteResources = FALSE);
      47             : 
      48             :     char **GetFileList(void) override;
      49             : 
      50             :     char **GetMetadata(const char *pszDomain = "") override;
      51             :     const char *GetMetadataItem(const char *pszName,
      52             :                                 const char *pszDomain = "") override;
      53             : 
      54             :     int GetLayerCount() override;
      55             :     OGRLayer *GetLayer(int i) override;
      56             : };
      57             : 
      58             : //! @endcond
      59             : 
      60             : #endif /* GDAL_JP2_ABSTRACT_DATASET_H_INCLUDED */

Generated by: LCOV version 1.14