#include <gdal_priv.h>
Inheritance diagram for GDALDataset:
Public Methods | |
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 | FlushCache (void) |
Flush all write cached data to disk. More... | |
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 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 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... | |
int | Reference () |
Add one to dataset reference count. More... | |
int | Dereference () |
Subtract one from dataset reference count. More... | |
GDALAccess | GetAccess () |
CPLErr | BuildOverviews ( const char *, int, int *, int, int *, GDALProgressFunc, void * ) |
Build raster overview(s). More... | |
Protected Methods | |
GDALDataset (void) | |
void | RasterInitialize ( int, int ) |
void | SetBand ( int, GDALRasterBand * ) |
virtual CPLErr | IBuildOverviews ( const char *, int, int *, int, int *, GDALProgressFunc, void * ) |
Protected Attributes | |
GDALDriver* | poDriver |
GDALAccess | eAccess |
int | nRasterXSize |
int | nRasterYSize |
int | nBands |
GDALRasterBand** | papoBands |
int | nRefCount |
GDALDefaultOverviews | oOvManager |
Friends | |
class | GDALRasterBand |
GDALDatasetH | GDALOpen ( const char *, GDALAccess) |
Open a raster file as a GDALDataset. More... |
Use GDALOpen to create a GDALDataset for a named file.
|
Destroy an open GDALDataset. This is the accepted method of closing a GDAL dataset and deallocating all resources associated with it. Equivelent of the C callable GDALClose(). |
|
Build raster overview(s). If the operation is unsupported for the indicated dataset, then CE_Failure is returned, and CPLGetLastError() will return CPLE_NonSupported.
int anOverviewList[3] = { 2, 4, 8 }; poDataset->BuildOverviews( "NEAREST", 3, anOverviewList, 0, NULL, GDALDummyProgress, NULL ); |
|
Subtract one from dataset reference count. The reference is one after instantiation. Generally when the reference count has dropped to zero the dataset may be safely deleted (closed). This method is the same as the C GDALDereferenceDataset() function.
|
|
Flush all write cached data to disk. Any raster (or other GDAL) data written via GDAL calls, but buffered internally will be written to disk. |
|
Fetch the driver to which this dataset relates. This method is the same as the C GDALGetDatasetDriver() function.
|
|
Get number of GCPs. This method is the same as the C function GDALGetGCPCount().
|
|
Get output projection for GCPs. This method is the same as the C function GDALGetGCPProjection(). The projection string follows the normal rules from GetProjectionRef().
|
|
Fetch GCPs. This method is the same as the C function GDALGetGCPs().
|
|
Fetch the affine transformation coefficients. Fetches the coefficients for transforming between pixel/line (P,L) raster space, and projection coordinates (Xp,Yp) space. Xp = padfTransform[0] + P*padfTransform[1] + L*padfTransform[2]; Yp = padfTransform[3] + P*padfTransform[4] + L*padfTransform[5]; In a north up image, padfTransform[1] is the pixel width, and padfTransform[5] is the pixel height. The upper left corner of the upper left pixel is at position (padfTransform[0],padfTransform[3]). The default transform is (0,1,0,0,0,1) and should be returned even when a CE_Failure error is returned, such as for formats that don't support transformation to projection coordinates. NOTE: GetGeoTransform() isn't expressive enough to handle the variety of OGC Grid Coverages pixel/line to projection transformation schemes. Eventually this method will be depreciated in favour of a more general scheme. This method does the same thing as the C GDALGetGeoTransform() function.
|
|
Fetch a format specific internally meaningful handle. This method is the same as the C GDALGetInternalHandle() method.
|
|
Fetch the projection definition string for this dataset. Same as the C function GDALGetProjectionRef(). The returned string defines the projection coordinate system of the image in either PROJ.4 format or OpenGIS WKT format. It should be suitable for use with the GDALProjDef object to reproject positions. When a projection definition is not available an empty (but not NULL) string is returned.
|
|
Fetch a band object for a dataset. Equivelent of the C function GDALGetRasterBand().
|
|
Fetch the number of raster bands on this dataset. Same as the C function GDALGetRasterCount().
|
|
Fetch raster width in pixels. Equivelent of the C function GDALGetRasterXSize().
|
|
Fetch raster height in pixels. Equivelent of the C function GDALGetRasterYSize().
|
|
Add one to dataset reference count. The reference is one after instantiation. This method is the same as the C GDALReferenceDataset() function.
|
|
Set the affine transformation coefficients. See GetGeoTransform() for details on the meaning of the padfTransform coefficients. This method does the same thing as the C GDALSetGeoTransform() function.
|
|
Set the projection reference string for this dataset. The string should be in OGC WKT or PROJ.4 format. An error may occur because of incorrectly specified projection strings, because the dataset is not writable, or because the dataset does not support the indicated projection. Many formats do not support writing projections. This method is the same as the C GDALSetProjection() function.
|
|
Open a raster file as a GDALDataset.
|