Public Member Functions | |
GDALColorReliefDataset (GDALDatasetH hSrcDS, GDALRasterBandH hSrcBand, const char *pszColorFilename, ColorSelectionMode eColorSelectionMode, int bAlpha) | |
CPLErr | GetGeoTransform (double *padfGeoTransform) |
Fetch the affine transformation coefficients. | |
const char * | GetProjectionRef () |
Fetch the projection definition string for this dataset. | |
Friends | |
class | GDALColorReliefRasterBand |
CPLErr GDALColorReliefDataset::GetGeoTransform | ( | double * | padfTransform | ) | [virtual] |
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.
padfTransform | an existing six double buffer into which the transformation will be placed. |
Reimplemented from GDALDataset.
References GDALGetGeoTransform().
const char * GDALColorReliefDataset::GetProjectionRef | ( | void | ) | [virtual] |
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 OpenGIS WKT format. It should be suitable for use with the OGRSpatialReference class.
When a projection definition is not available an empty (but not NULL) string is returned.
Reimplemented from GDALDataset.
References GDALGetProjectionRef().