Skip to content

Commit

Permalink
Don't derive from PAM classes for GDAL driver (#64)
Browse files Browse the repository at this point in the history
* don't derive from PAM classes

* update includes
  • Loading branch information
gillins authored Jun 17, 2024
1 parent f386837 commit 23695aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gdal/keaband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ CPLErr KEARasterBand::GetDefaultHistogram( double *pdfMin, double *pdfMax,
{
if( bForce )
{
return GDALPamRasterBand::GetDefaultHistogram(pdfMin, pdfMax, pnBuckets,
return GDALRasterBand::GetDefaultHistogram(pdfMin, pdfMax, pnBuckets,
ppanHistogram, bForce, fn, pProgressData);
}
else
Expand Down Expand Up @@ -1284,7 +1284,7 @@ GDALRasterBand* KEARasterBand::GetMaskBand()
{
// use the base class implementation - GDAL will delete
//fprintf( stderr, "returning base GetMaskBand()\n" );
m_pMaskBand = GDALPamRasterBand::GetMaskBand();
m_pMaskBand = GDALRasterBand::GetMaskBand();
}
}
catch(const kealib::KEAException &e)
Expand All @@ -1304,7 +1304,7 @@ int KEARasterBand::GetMaskFlags()
// need to return the base class one since we are using
// the base class implementation of GetMaskBand()
//fprintf( stderr, "returning base GetMaskFlags()\n" );
return GDALPamRasterBand::GetMaskFlags();
return GDALRasterBand::GetMaskFlags();
}
}
catch(const kealib::KEAException &e)
Expand Down
4 changes: 2 additions & 2 deletions gdal/keaband.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#ifndef KEABAND_H
#define KEABAND_H

#include "gdal_pam.h"
#include "gdal_priv.h"

#if (GDAL_VERSION_MAJOR > 3) || ((GDAL_VERSION_MAJOR == 3) && (GDAL_VERSION_MINOR >= 5))
#define HAVE_64BITIMAGES
Expand All @@ -52,7 +52,7 @@ class KEAOverview;
class KEAMaskBand;

// Provides the implementation of a GDAL raster band
class KEARasterBand : public GDALPamRasterBand
class KEARasterBand : public GDALRasterBand
{
private:
LockedRefCount *m_pRefCount; // reference count of m_pImageIO
Expand Down
4 changes: 2 additions & 2 deletions gdal/keadataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
#ifndef KEADATASET_H
#define KEADATASET_H

#include "gdal_pam.h"
#include "gdal_priv.h"
#include "cpl_multiproc.h"
#include "libkea/KEAImageIO.h"

class LockedRefCount;

// class that implements a GDAL dataset
class KEADataset : public GDALPamDataset
class KEADataset : public GDALDataset
{
public:
// constructor/destructor
Expand Down

0 comments on commit 23695aa

Please sign in to comment.