[Gdal-dev] Re: GXF and Minimum and Maximum support
N. Farah
nfarah at hotmail.com
Mon Sep 22 17:30:30 EDT 2003
Hi,
I did made the changes on my local file (gxfdataset.cpp) to implement min
and max functions. I tested the two methods and they are working fine
(returning the right values).
Just a very tiny contribution:
// Class definition
class GXFRasterBand : public GDALRasterBand
{
.........................................
virtual double GetMinimum (int *pbSuccess);
virtual double GetMaximum (int *pbSuccess);
};
// Class implementation
double GXFRasterBand::GetMinimum (int *pbSuccess)
{
GXFDataset *poODS = (GXFDataset *) poDS;
GXFInfo_t *gxfInfo = (GXFInfo_t *) poODS->hGXF;
if( pbSuccess != NULL )
*pbSuccess = TRUE;
return gxfInfo->dfZMinimum;
}
double GXFRasterBand::GetMaximum (int *pbSuccess)
{
GXFDataset *poODS = (GXFDataset *) poDS;
GXFInfo_t *gxfInfo = (GXFInfo_t *) poODS->hGXF;
if( pbSuccess != NULL )
*pbSuccess = TRUE;
return gxfInfo->dfZMaximum;
}
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Gdal-dev
mailing list