logo       

Re: GXF and Minimum and Maximum support: msg#00131

gis.gdal.devel

Subject: Re: GXF and Minimum and Maximum support

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise