OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
ossimGdalDataset This is a gdal data set that wraps an ossim image handler. More...
#include <ossimGdalDataset.h>
Public Member Functions | |
ossimGdalDataset () | |
default constructor More... | |
virtual | ~ossimGdalDataset () |
virtual destructor More... | |
bool | open (const ossimFilename &file) |
open method. More... | |
void | setImageHandler (ossimImageHandler *ih) |
Sets theImageHandler. More... | |
const ossimImageHandler * | getImageHandler () const |
ossimImageHandler * | getImageHandler () |
void | initGdalOverviewManager () |
Calls gdal's oOvManager.Initialize. More... | |
void | setGdalAcces (GDALAccess access) |
Set the access data member. More... | |
Static Public Member Functions | |
static GDALDataset * | Open (GDALOpenInfo *) |
Open for static gdal driver. More... | |
Private Member Functions | |
void | init () |
Initializes this object from the image handler. More... | |
Private Attributes | |
ossimRefPtr< ossimImageHandler > | theImageHandler |
Friends | |
class | ossimGdalDatasetRasterBand |
ossimGdalDataset This is a gdal data set that wraps an ossim image handler.
Definition at line 30 of file ossimGdalDataset.h.
CPL_C_END ossimGdalDataset::ossimGdalDataset | ( | ) |
default constructor
Definition at line 34 of file ossimGdalDataset.cpp.
|
virtual |
virtual destructor
Definition at line 57 of file ossimGdalDataset.cpp.
const ossimImageHandler * ossimGdalDataset::getImageHandler | ( | ) | const |
Definition at line 132 of file ossimGdalDataset.cpp.
References ossimRefPtr< T >::get(), and theImageHandler.
Referenced by ossimGdalOverviewBuilder::generateHfaStats(), and ossimGdalOverviewBuilder::getOutputFile().
ossimImageHandler * ossimGdalDataset::getImageHandler | ( | ) |
Definition at line 137 of file ossimGdalDataset.cpp.
References ossimRefPtr< T >::get(), and theImageHandler.
|
private |
Initializes this object from the image handler.
Definition at line 153 of file ossimGdalDataset.cpp.
References ossimImageHandler::getImageRectangle(), ossimImageSource::getNumberOfOutputBands(), ossimIrect::height(), theImageHandler, and ossimIrect::width().
void ossimGdalDataset::initGdalOverviewManager | ( | ) |
Calls gdal's oOvManager.Initialize.
This must be called if you are building overviews or the code will fail.
Definition at line 142 of file ossimGdalDataset.cpp.
References ossimString::c_str(), ossimImageHandler::getFilename(), theImageHandler, and ossimRefPtr< T >::valid().
bool ossimGdalDataset::open | ( | const ossimFilename & | file | ) |
open method.
file | The file to open. |
Definition at line 72 of file ossimGdalDataset.cpp.
References ossimImageHandlerRegistry::instance(), ossimImageHandlerRegistry::open(), theImageHandler, and ossimRefPtr< T >::valid().
Referenced by ossimGdalOverviewBuilder::open().
|
static |
Open for static gdal driver.
Definition at line 99 of file ossimGdalDataset.cpp.
void ossimGdalDataset::setGdalAcces | ( | GDALAccess | access | ) |
Set the access data member.
Either GA_ReadOnly = 0, or GA_Update = 1
Definition at line 179 of file ossimGdalDataset.cpp.
void ossimGdalDataset::setImageHandler | ( | ossimImageHandler * | ih | ) |
Sets theImageHandler.
ih | Pointer to image handler. |
Definition at line 119 of file ossimGdalDataset.cpp.
Referenced by ossimGdalOverviewBuilder::setInputSource().
|
friend |
Definition at line 83 of file ossimGdalDataset.h.
|
private |
Definition at line 85 of file ossimGdalDataset.h.
Referenced by getImageHandler(), init(), initGdalOverviewManager(), and open().