GDAL
|
Public Member Functions | |
VRTWarpedDataset (int nXSize, int nYSize) | |
CPLErr | Initialize (void *) |
virtual CPLErr | IBuildOverviews (const char *, int, int *, int, int *, GDALProgressFunc, void *) |
virtual CPLXMLNode * | SerializeToXML (const char *pszVRTPath) |
virtual CPLErr | XMLInit (CPLXMLNode *, const char *) |
virtual CPLErr | AddBand (GDALDataType eType, char **papszOptions=NULL) |
Add a band to a dataset. More... | |
virtual char ** | GetFileList () |
Fetch files forming dataset. More... | |
CPLErr | ProcessBlock (int iBlockX, int iBlockY) |
void | GetBlockSize (int *, int *) |
![]() | |
VRTDataset (int nXSize, int nYSize) | |
void | SetNeedsFlush () |
virtual void | FlushCache () |
Flush all write cached data to disk. More... | |
void | SetWritable (int bWritable) |
virtual CPLErr | CreateMaskBand (int nFlags) |
Adds a mask band to the dataset. More... | |
void | SetMaskBand (VRTRasterBand *poMaskBand) |
virtual const char * | GetProjectionRef (void) |
Fetch the projection definition string for this dataset. More... | |
virtual CPLErr | SetProjection (const char *) |
Set the projection reference string for this dataset. More... | |
virtual CPLErr | GetGeoTransform (double *) |
Fetch the affine transformation coefficients. More... | |
virtual CPLErr | SetGeoTransform (double *) |
Set the affine transformation coefficients. More... | |
virtual CPLErr | SetMetadata (char **papszMD, const char *pszDomain="") |
Set metadata. More... | |
virtual CPLErr | SetMetadataItem (const char *pszName, const char *pszValue, const char *pszDomain="") |
Set single metadata item. More... | |
virtual int | GetGCPCount () |
Get number of GCPs. More... | |
virtual const char * | GetGCPProjection () |
Get output projection for GCPs. More... | |
virtual const GDAL_GCP * | GetGCPs () |
Fetch GCPs. More... | |
virtual CPLErr | SetGCPs (int nGCPCount, const GDAL_GCP *pasGCPList, const char *pszGCPProjection) |
Assign GCPs. More... | |
virtual CPLErr | IRasterIO (GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize, void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount, int *panBandMap, int nPixelSpace, int nLineSpace, int nBandSpace) |
GDALDataset * | GetSingleSimpleSource () |
![]() | |
virtual | ~GDALDataset () |
Destroy an open GDALDataset. More... | |
int | GetRasterXSize (void) |
Fetch raster width in pixels. More... | |
int | GetRasterYSize (void) |
Fetch raster height in pixels. More... | |
int | GetRasterCount (void) |
Fetch the number of raster bands on this dataset. More... | |
GDALRasterBand * | GetRasterBand (int) |
Fetch a band object for a dataset. More... | |
virtual void * | GetInternalHandle (const char *) |
Fetch a format specific internally meaningful handle. More... | |
virtual GDALDriver * | GetDriver (void) |
Fetch the driver to which this dataset relates. More... | |
virtual CPLErr | AdviseRead (int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, GDALDataType eDT, int nBandCount, int *panBandList, char **papszOptions) |
Advise driver of upcoming read requests. More... | |
virtual GDALAsyncReader * | BeginAsyncReader (int nXOff, int nYOff, int nXSize, int nYSize, void *pBuf, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount, int *panBandMap, int nPixelSpace, int nLineSpace, int nBandSpace, char **papszOptions) |
Sets up an asynchronous data request. More... | |
virtual void | EndAsyncReader (GDALAsyncReader *) |
End asynchronous request. More... | |
CPLErr | RasterIO (GDALRWFlag, int, int, int, int, void *, int, int, GDALDataType, int, int *, int, int, int) |
Read/write a region of image data from multiple bands. More... | |
int | Reference () |
Add one to dataset reference count. More... | |
int | Dereference () |
Subtract one from dataset reference count. More... | |
GDALAccess | GetAccess () |
int | GetShared () |
Returns shared flag. More... | |
void | MarkAsShared () |
Mark this dataset as available for sharing. | |
CPLErr | BuildOverviews (const char *, int, int *, int, int *, GDALProgressFunc, void *) |
Build raster overview(s) More... | |
void | ReportError (CPLErr eErrClass, int err_no, const char *fmt,...) CPL_PRINT_FUNC_FORMAT(4 |
Emits an error related to a dataset. More... | |
![]() | |
int | GetMOFlags () |
void | SetMOFlags (int nFlags) |
virtual const char * | GetDescription () const |
Fetch object description. More... | |
virtual void | SetDescription (const char *) |
Set object description. More... | |
virtual char ** | GetMetadataDomainList () |
Fetch list of metadata domains. More... | |
virtual char ** | GetMetadata (const char *pszDomain="") |
Fetch metadata. More... | |
virtual const char * | GetMetadataItem (const char *pszName, const char *pszDomain="") |
Fetch single metadata item. More... | |
Public Attributes | |
int | nOverviewCount |
VRTWarpedDataset ** | papoOverviews |
Protected Member Functions | |
virtual int | CloseDependentDatasets () |
Drop references to any other datasets referenced by this dataset. More... | |
![]() | |
void | RasterInitialize (int, int) |
void | SetBand (int, GDALRasterBand *) |
CPLErr | BlockBasedRasterIO (GDALRWFlag, int, int, int, int, void *, int, int, GDALDataType, int, int *, int, int, int) |
void | BlockBasedFlushCache () |
CPLErr | ValidateRasterIOOrAdviseReadParameters (const char *pszCallingFunc, int *pbStopProcessingOnCENone, int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, int nBandCount, int *panBandMap) |
![]() | |
char ** | BuildMetadataDomainList (char **papszList, int bCheckNonEmpty,...) CPL_NULL_TERMINATED |
Helper function for custom implementations of GetMetadataDomainList() More... | |
Friends | |
class | VRTWarpedRasterBand |
Additional Inherited Members | |
![]() | |
static int | Identify (GDALOpenInfo *) |
static GDALDataset * | Open (GDALOpenInfo *) |
static GDALDataset * | OpenXML (const char *, const char *=NULL, GDALAccess eAccess=GA_ReadOnly) |
static GDALDataset * | Create (const char *pszName, int nXSize, int nYSize, int nBands, GDALDataType eType, char **papszOptions) |
static CPLErr | Delete (const char *pszFilename) |
![]() | |
static GDALDataset ** | GetOpenDatasets (int *pnDatasetCount) |
Fetch all open GDAL dataset handles. More... | |
![]() | |
GDALDriver * | poDriver |
GDALAccess | eAccess |
int | nRasterXSize |
int | nRasterYSize |
int | nBands |
GDALRasterBand ** | papoBands |
int | bForceCachedIO |
int | nRefCount |
int | bShared |
GDALDefaultOverviews | oOvManager |
![]() | |
int | nFlags |
CPLString | sDescription |
GDALMultiDomainMetadata | oMDMD |
|
virtual |
Add a band to a dataset.
This method will add a new band to the dataset if the underlying format supports this action. Most formats do not.
Note that the new GDALRasterBand is not returned. It may be fetched after successful completion of the method by calling GDALDataset::GetRasterBand(GDALDataset::GetRasterCount()) as the newest band will always be the last band.
eType | the data type of the pixels in the new band. |
papszOptions | a list of NAME=VALUE option strings. The supported options are format specific. NULL may be passed by default. |
Reimplemented from VRTDataset.
|
protectedvirtual |
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 VRTDataset.
|
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 VRTDataset.