Opened 13 years ago

Closed 10 years ago

#1454 closed defect (fixed)

GDALPamRasterBand can't provide min/max

Reported by: frederic.claudel@… Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: minor Keywords:
Cc:

Description

Vitual methods GetMinimum() and GetMaximum() have not been re-implemented in GDALPamRasterBand, so there's no way to access the member data (dfMin and dfMAx, in GDALRasterBandPamInfo).

Yet, when creating a GDAL PamRasterBand, the XMLInit method loads the <Minimum> and <Maximum> values from the .aux.xml PAM file.
SerializeToXML() also writes the values back to the PAM aux file.

A suggestion : maybe flag bHaveMinMax in GDALRasterBandpamInfo can be splitted into bHaveMin and bHaveMax to handle min and max values independently

Change History (1)

comment:1 Changed 10 years ago by Even Rouault

Resolution: fixed
Status: newclosed

That works presumably since r10980

Note: See TracTickets for help on using tickets.