Public Member Functions | Protected Attributes

GDALGeorefPamDataset Class Reference

Inheritance diagram for GDALGeorefPamDataset:
GDALPamDataset GDALDataset GDALMajorObject GDALJP2AbstractDataset

List of all members.

Public Member Functions

virtual CPLErr GetGeoTransform (double *)
 Fetch the affine transformation coefficients.
virtual const char * GetProjectionRef ()
 Fetch the projection definition string for this dataset.
virtual int GetGCPCount ()
 Get number of GCPs.
virtual const char * GetGCPProjection ()
 Get output projection for GCPs.
virtual const GDAL_GCPGetGCPs ()
 Fetch GCPs.

Protected Attributes

int bGeoTransformValid
double adfGeoTransform [6]
char * pszProjection
int nGCPCount
GDAL_GCPpasGCPList

Member Function Documentation

int GDALGeorefPamDataset::GetGCPCount (  )  [virtual]

Get number of GCPs.

This method is the same as the C function GDALGetGCPCount().

Returns:
number of GCPs for this dataset. Zero if there are none.

Reimplemented from GDALPamDataset.

const char * GDALGeorefPamDataset::GetGCPProjection (  )  [virtual]

Get output projection for GCPs.

This method is the same as the C function GDALGetGCPProjection().

The projection string follows the normal rules from GetProjectionRef().

Returns:
internal projection string or "" if there are no GCPs. It should not be altered, freed or expected to last for long.

Reimplemented from GDALPamDataset.

const GDAL_GCP * GDALGeorefPamDataset::GetGCPs (  )  [virtual]

Fetch GCPs.

This method is the same as the C function GDALGetGCPs().

Returns:
pointer to internal GCP structure list. It should not be modified, and may change on the next GDAL call.

Reimplemented from GDALPamDataset.

CPLErr GDALGeorefPamDataset::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.

This method does the same thing as the C GDALGetGeoTransform() function.

Parameters:
padfTransform an existing six double buffer into which the transformation will be placed.
Returns:
CE_None on success, or CE_Failure if no transform can be fetched.

Reimplemented from GDALPamDataset.

const char * GDALGeorefPamDataset::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.

Returns:
a pointer to an internal projection reference string. It should not be altered, freed or expected to last for long.
See also:
http://www.gdal.org/ogr/osr_tutorial.html

Reimplemented from GDALPamDataset.


The documentation for this class was generated from the following files:

Generated for GDAL by doxygen 1.7.1.