GDAL
|
Public Member Functions | |
void | LoadJP2Metadata (GDALOpenInfo *poOpenInfo, const char *pszOverideFilename=NULL) |
void | LoadVectorLayers (int bOpenRemoteResources=FALSE) |
virtual char ** | GetFileList (void) |
Fetch files forming dataset. | |
virtual int | GetLayerCount () |
Get the number of layers in this dataset. | |
virtual OGRLayer * | GetLayer (int i) |
Fetch a layer by index. | |
Protected Member Functions | |
virtual int | CloseDependentDatasets () |
Drop references to any other datasets referenced by this dataset. |
int GDALJP2AbstractDataset::CloseDependentDatasets | ( | ) | [protected, virtual] |
Drop references to any other datasets referenced by this dataset.
This method should release any reference to other datasets (e.g. a VRT dataset to its sources), but not close the current dataset itself.
If at least, one reference to a dependent dataset has been dropped, this method should return TRUE. Otherwise it *should* return FALSE. (Failure to return the proper value might result in infinite loop)
This method can be called several times on a given dataset. After the first time, it should not do anything and return FALSE.
The driver implementation may choose to destroy its raster bands, so be careful not to call any method on the raster bands afterwards.
Basically the only safe action you can do after calling CloseDependantDatasets() is to call the destructor.
Note: the only legitimate caller of CloseDependantDatasets() is GDALDriverManager::~GDALDriverManager()
Reimplemented from GDALDataset.
char ** GDALJP2AbstractDataset::GetFileList | ( | void | ) | [virtual] |
Fetch files forming dataset.
Returns a list of files believed to be part of this dataset. If it returns an empty list of files it means there is believed to be no local file system files associated with the dataset (for instance a virtual dataset). The returned file list is owned by the caller and should be deallocated with CSLDestroy().
The returned filenames will normally be relative or absolute paths depending on the path used to originally open the dataset. The strings will be UTF-8 encoded.
This method is the same as the C GDALGetFileList() function.
Reimplemented from GDALPamDataset.
OGRLayer * GDALJP2AbstractDataset::GetLayer | ( | int | ) | [virtual] |
Fetch a layer by index.
The returned layer remains owned by the GDALDataset and should not be deleted by the application.
This method is the same as the C function GDALDatasetGetLayer() and the deprecated OGR_DS_GetLayer().
In GDAL 1.X, this method used to be in the OGRDataSource class.
iLayer | a layer number between 0 and GetLayerCount()-1. |
Reimplemented from GDALDataset.
int GDALJP2AbstractDataset::GetLayerCount | ( | ) | [virtual] |
Get the number of layers in this dataset.
This method is the same as the C function GDALDatasetGetLayerCount(), and the deprecated OGR_DS_GetLayerCount().
In GDAL 1.X, this method used to be in the OGRDataSource class.
Reimplemented from GDALDataset.