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 );
Raster Attribute Table container.
Definition: gdal_rat.h:61
Document node structure.
Definition: cpl_minixml.h:65
Definitions for CPL mini XML Parser/Serializer.
Definition: gdal_rat.h:41
GDALRATFieldType
Field type of raster attribute table.
Definition: gdal.h:666
Color tuple.
Definition: gdal.h:634
const char * GDALRATGetValueAsString(GDALRasterAttributeTableH, int, int)
Fetch field value as a string.
Definition: gdal_rat.cpp:497
Convenient string class based on std::string.
Definition: cpl_string.h:224
void * GDALRasterAttributeTableH
Opaque type used for the C bindings of the C++ GDALRasterAttributeTable class.
Definition: gdal.h:177
const char * GDALRATGetNameOfCol(GDALRasterAttributeTableH, int)
Fetch name of indicated column.
Definition: gdal_rat.cpp:236
GDALRATFieldUsage
Field usage of raster attribute table.
Definition: gdal.h:673
Definition: gdal_priv.h:432