GDAL
Public Member Functions | Protected Attributes | List of all members
GDALGeorefPamDataset Class Reference
Inheritance diagram for GDALGeorefPamDataset:
GDALPamDataset GDALDataset GDALMajorObject GDALJP2AbstractDataset

Public Member Functions

virtual CPLErr GetGeoTransform (double *)
 Fetch the affine transformation coefficients. More...
 
virtual const char * GetProjectionRef ()
 Fetch the projection definition string for this dataset. More...
 
virtual int GetGCPCount ()
 Get number of GCPs. More...
 
virtual const char * GetGCPProjection ()
 Get output projection for GCPs. More...
 
virtual const GDAL_GCPGetGCPs ()
 Fetch GCPs. More...
 
- Public Member Functions inherited from GDALPamDataset
virtual void FlushCache (void)
 Flush all write cached data to disk. More...
 
virtual CPLErr SetProjection (const char *)
 Set the projection reference string for this dataset. More...
 
virtual CPLErr SetGeoTransform (double *)
 Set the affine transformation coefficients. More...
 
virtual CPLErr SetGCPs (int nGCPCount, const GDAL_GCP *pasGCPList, const char *pszGCPProjection)
 Assign GCPs. More...
 
virtual CPLErr SetMetadata (char **papszMetadata, const char *pszDomain="")
 Set metadata. More...
 
virtual CPLErr SetMetadataItem (const char *pszName, const char *pszValue, const char *pszDomain="")
 Set single metadata item. 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...
 
virtual char ** GetFileList (void)
 Fetch files forming dataset. More...
 
virtual CPLErr CloneInfo (GDALDataset *poSrcDS, int nCloneInfoFlags)
 
virtual CPLErr IBuildOverviews (const char *pszResampling, int nOverviews, int *panOverviewList, int nListBands, int *panBandList, GDALProgressFunc pfnProgress, void *pProgressData)
 
void MarkPamDirty ()
 
GDALDatasetPamInfoGetPamInfo ()
 
int GetPamFlags ()
 
void SetPamFlags (int nValue)
 
- Public Member Functions inherited from GDALDataset
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...
 
GDALRasterBandGetRasterBand (int)
 Fetch a band object for a dataset. More...
 
virtual CPLErr AddBand (GDALDataType eType, char **papszOptions=NULL)
 Add a band to a dataset. More...
 
virtual void * GetInternalHandle (const char *)
 Fetch a format specific internally meaningful handle. More...
 
virtual GDALDriverGetDriver (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 CPLErr CreateMaskBand (int nFlags)
 Adds a mask band to the dataset. More...
 
virtual GDALAsyncReaderBeginAsyncReader (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...
 
- Public Member Functions inherited from GDALMajorObject
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...
 

Protected Attributes

int bGeoTransformValid
 
double adfGeoTransform [6]
 
char * pszProjection
 
int nGCPCount
 
GDAL_GCPpasGCPList
 
- Protected Attributes inherited from GDALPamDataset
int nPamFlags
 
GDALDatasetPamInfopsPam
 
- Protected Attributes inherited from GDALDataset
GDALDriverpoDriver
 
GDALAccess eAccess
 
int nRasterXSize
 
int nRasterYSize
 
int nBands
 
GDALRasterBand ** papoBands
 
int bForceCachedIO
 
int nRefCount
 
int bShared
 
GDALDefaultOverviews oOvManager
 
- Protected Attributes inherited from GDALMajorObject
int nFlags
 
CPLString sDescription
 
GDALMultiDomainMetadata oMDMD
 

Additional Inherited Members

- Static Public Member Functions inherited from GDALDataset
static GDALDataset ** GetOpenDatasets (int *pnDatasetCount)
 Fetch all open GDAL dataset handles. More...
 
- Protected Member Functions inherited from GDALPamDataset
virtual CPLXMLNodeSerializeToXML (const char *)
 
virtual CPLErr XMLInit (CPLXMLNode *, const char *)
 
virtual CPLErr TryLoadXML (char **papszSiblingFiles=NULL)
 
virtual CPLErr TrySaveXML ()
 
CPLErr TryLoadAux (char **papszSiblingFiles=NULL)
 
CPLErr TrySaveAux ()
 
virtual const char * BuildPamFilename ()
 
void PamInitialize ()
 
void PamClear ()
 
void SetPhysicalFilename (const char *)
 
const char * GetPhysicalFilename ()
 
void SetSubdatasetName (const char *)
 
const char * GetSubdatasetName ()
 
- Protected Member Functions inherited from GDALDataset
void RasterInitialize (int, int)
 
void SetBand (int, GDALRasterBand *)
 
virtual CPLErr IRasterIO (GDALRWFlag, int, int, int, int, void *, int, int, GDALDataType, int, int *, int, int, int)
 
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)
 
virtual int CloseDependentDatasets ()
 Drop references to any other datasets referenced by this dataset. More...
 
- Protected Member Functions inherited from GDALMajorObject
char ** BuildMetadataDomainList (char **papszList, int bCheckNonEmpty,...) CPL_NULL_TERMINATED
 Helper function for custom implementations of GetMetadataDomainList() More...
 

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
padfTransforman 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.8.11.