30 #ifndef GDAL_RAT_H_INCLUDED
31 #define GDAL_RAT_H_INCLUDED
50 std::vector<GInt32> anValues;
51 std::vector<double> adfValues;
52 std::vector<CPLString> aosValues;
67 std::vector<GDALRasterAttributeField> aoFields;
73 void AnalyseColumns();
89 int GetColumnCount()
const;
91 const char *GetNameOfCol(
int )
const;
97 int GetRowCount()
const;
99 const char *GetValueAsString(
int iRow,
int iField )
const;
100 int GetValueAsInt(
int iRow,
int iField )
const;
101 double GetValueAsDouble(
int iRow,
int iField )
const;
103 void SetValue(
int iRow,
int iField,
const char *pszValue );
104 void SetValue(
int iRow,
int iField,
double dfValue);
105 void SetValue(
int iRow,
int iField,
int nValue );
106 void SetRowCount(
int iCount );
108 int GetRowOfValue(
double dfValue )
const;
109 int GetRowOfValue(
int nValue )
const;
110 int GetColorOfValue(
double dfValue,
GDALColorEntry *psEntry )
const;
112 double GetRowMin(
int iRow )
const;
113 double GetRowMax(
int iRow )
const;
115 CPLErr CreateColumn(
const char *pszFieldName,
118 CPLErr SetLinearBinning(
double dfRow0Min,
double dfBinSize );
119 int GetLinearBinning(
double *pdfRow0Min,
double *pdfBinSize )
const;
127 void DumpReadable( FILE * = NULL );