Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7fd7c575020aa78a8e2e309ea8909f43 > files > 128

gdal-1.6.2-6.fc13.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GDAL: GDALRasterAttributeTable Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>GDALRasterAttributeTable Class Reference</h1><!-- doxytag: class="GDALRasterAttributeTable" -->
<p>Raster Attribute Table container.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="gdal__rat_8h_source.html">gdal_rat.h</a>&gt;</code></p>

<p><a href="classGDALRasterAttributeTable-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6363eab77ef5bb5a45f66a1d43e304f7"></a><!-- doxytag: member="GDALRasterAttributeTable::GDALRasterAttributeTable" ref="a6363eab77ef5bb5a45f66a1d43e304f7" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a6363eab77ef5bb5a45f66a1d43e304f7">GDALRasterAttributeTable</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct empty table. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66bf4b1ee784239e88ae7d7b9b906076"></a><!-- doxytag: member="GDALRasterAttributeTable::GDALRasterAttributeTable" ref="a66bf4b1ee784239e88ae7d7b9b906076" args="(const GDALRasterAttributeTable &amp;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a66bf4b1ee784239e88ae7d7b9b906076">GDALRasterAttributeTable</a> (const <a class="el" href="classGDALRasterAttributeTable.html">GDALRasterAttributeTable</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGDALRasterAttributeTable.html">GDALRasterAttributeTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#ae8026534d14d0e955942577253e6949a">Clone</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy Raster Attribute Table.  <a href="#ae8026534d14d0e955942577253e6949a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a32f3dfc6b1bd7e23cb7732af64d8bafe">GetColumnCount</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch table column count.  <a href="#a32f3dfc6b1bd7e23cb7732af64d8bafe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a533ed0e87ba61d1c3d662c5fd1ee01e8">GetNameOfCol</a> (int) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch name of indicated column.  <a href="#a533ed0e87ba61d1c3d662c5fd1ee01e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a53f36667aa01059844d980914e3ea09d">GetUsageOfCol</a> (int) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch column usage value.  <a href="#a53f36667aa01059844d980914e3ea09d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="gdal_8h.html#a810154ac91149d1a63c42717258fe16e">GDALRATFieldType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a69eb6893d98c915ef14293cd68713606">GetTypeOfCol</a> (int) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch color type.  <a href="#a69eb6893d98c915ef14293cd68713606"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#ad14d4f36a9c10ffc3e63ed24f963bd5d">GetColOfUsage</a> (<a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a>) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch column index for given usage.  <a href="#ad14d4f36a9c10ffc3e63ed24f963bd5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a170f146219e82d680dd83b0c9bba620d">GetRowCount</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch row count.  <a href="#a170f146219e82d680dd83b0c9bba620d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#abfc54ebd2a2ef04427b041bee9a0bc8d">GetValueAsString</a> (int iRow, int iField) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch field value as a string.  <a href="#abfc54ebd2a2ef04427b041bee9a0bc8d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a1a59d41ade3a8bee59e6fd8f38b69802">GetValueAsInt</a> (int iRow, int iField) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch field value as a integer.  <a href="#a1a59d41ade3a8bee59e6fd8f38b69802"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a8508a5c99ac1d987d29c68645ea0202d">GetValueAsDouble</a> (int iRow, int iField) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch field value as a double.  <a href="#a8508a5c99ac1d987d29c68645ea0202d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a71b0d63f1991f300a88e1b0b95024a44">SetValue</a> (int iRow, int iField, const char *pszValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set field value from string.  <a href="#a71b0d63f1991f300a88e1b0b95024a44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#ab76d4a92ff58fd4dd4ce3ccc6006927f">SetValue</a> (int iRow, int iField, double dfValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set field value from double.  <a href="#ab76d4a92ff58fd4dd4ce3ccc6006927f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#ae500398b7acd98a7630a51028387ba04">SetValue</a> (int iRow, int iField, int nValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set field value from integer.  <a href="#ae500398b7acd98a7630a51028387ba04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a5f108000de7f8ace1a4eb4f015ac3b5f">SetRowCount</a> (int iCount)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set row count.  <a href="#a5f108000de7f8ace1a4eb4f015ac3b5f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#aa7c68ff1867e87fe5986f38655fa7d32">GetRowOfValue</a> (double dfValue) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get row for pixel value.  <a href="#aa7c68ff1867e87fe5986f38655fa7d32"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9fbcbfd6cd8b6d70bda2ffda0f4e48d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowOfValue" ref="ab9fbcbfd6cd8b6d70bda2ffda0f4e48d" args="(int nValue) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>GetRowOfValue</b> (int nValue) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8bed2cc18b18c6018a5d2ecd0545b0d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetColorOfValue" ref="af8bed2cc18b18c6018a5d2ecd0545b0d" args="(double dfValue, GDALColorEntry *psEntry) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>GetColorOfValue</b> (double dfValue, <a class="el" href="structGDALColorEntry.html">GDALColorEntry</a> *psEntry) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aced757e4cad763dbe8630b013269f173"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowMin" ref="aced757e4cad763dbe8630b013269f173" args="(int iRow) const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><b>GetRowMin</b> (int iRow) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecb4061f6fadba8f36b053ce4e3c5d0a"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowMax" ref="aecb4061f6fadba8f36b053ce4e3c5d0a" args="(int iRow) const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><b>GetRowMax</b> (int iRow) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CPLErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a2a4f7248c0e37e217b1d6423c538123e">CreateColumn</a> (const char *pszFieldName, <a class="el" href="gdal_8h.html#a810154ac91149d1a63c42717258fe16e">GDALRATFieldType</a> eFieldType, <a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a> eFieldUsage)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create new column.  <a href="#a2a4f7248c0e37e217b1d6423c538123e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CPLErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#aca7ea5023d9820fd8611a388ca947887">SetLinearBinning</a> (double dfRow0Min, double dfBinSize)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set linear binning information.  <a href="#aca7ea5023d9820fd8611a388ca947887"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a256e0e90249b812048731c597f6f79f2">GetLinearBinning</a> (double *pdfRow0Min, double *pdfBinSize) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get linear binning information.  <a href="#a256e0e90249b812048731c597f6f79f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa52d6b06726d4c5568cbfabc2ddc2808"></a><!-- doxytag: member="GDALRasterAttributeTable::Serialize" ref="aa52d6b06726d4c5568cbfabc2ddc2808" args="() const " -->
<a class="el" href="structCPLXMLNode.html">CPLXMLNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>Serialize</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1570b5a0b242d28cb435005bd7ac38bd"></a><!-- doxytag: member="GDALRasterAttributeTable::XMLInit" ref="a1570b5a0b242d28cb435005bd7ac38bd" args="(CPLXMLNode *, const char *)" -->
CPLErr&nbsp;</td><td class="memItemRight" valign="bottom"><b>XMLInit</b> (<a class="el" href="structCPLXMLNode.html">CPLXMLNode</a> *, const char *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CPLErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#ace0bd498e5533d9f1585f801ca6ecf5e">InitializeFromColorTable</a> (const <a class="el" href="classGDALColorTable.html">GDALColorTable</a> *)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize from color table.  <a href="#ace0bd498e5533d9f1585f801ca6ecf5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGDALColorTable.html">GDALColorTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a855180a5a68a73a6830d00ffd6ee655f">TranslateToColorTable</a> (int nEntryCount=-1)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translate to a color table.  <a href="#a855180a5a68a73a6830d00ffd6ee655f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGDALRasterAttributeTable.html#a3dad1ef8c228f8a24c304b511e17c72f">DumpReadable</a> (FILE *=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump RAT in readable form.  <a href="#a3dad1ef8c228f8a24c304b511e17c72f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22bf88c32fd2ce88f597eac395cae99a"></a><!-- doxytag: member="GDALRasterAttributeTable::GDALRATGetNameOfCol" ref="a22bf88c32fd2ce88f597eac395cae99a" args="(GDALRasterAttributeTableH, int)" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>GDALRATGetNameOfCol</b> (GDALRasterAttributeTableH, int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada2251716cae4438fba8d4cf932c6506"></a><!-- doxytag: member="GDALRasterAttributeTable::GDALRATGetValueAsString" ref="ada2251716cae4438fba8d4cf932c6506" args="(GDALRasterAttributeTableH, int, int)" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>GDALRATGetValueAsString</b> (GDALRasterAttributeTableH, int, int)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Raster Attribute Table container. </p>
<p>The <a class="el" href="classGDALRasterAttributeTable.html" title="Raster Attribute Table container.">GDALRasterAttributeTable</a> (or RAT) class is used to encapsulate a table used to provide attribute information about pixel values. Each row in the table applies to a range of pixel values (or a single value in some cases), and might have attributes such as the histogram count for that range, the color pixels of that range should be drawn names of classes or any other generic information.</p>
<p>Raster attribute tables can be used to represent histograms, color tables, and classification information.</p>
<p>Each column in a raster attribute table has a name, a type (integer, floating point or string), and a GDALRATFieldUsage. The usage distinguishes columns with particular understood purposes (such as color, histogram count, name) and columns that have specific purposes not understood by the library (long label, suitability_for_growing_wheat, etc).</p>
<p>In the general case each row has a column indicating the minimum pixel values falling into that category, and a column indicating the maximum pixel value. These are indicated with usage values of GFU_Min, and GFU_Max. In other cases where each row is a discrete pixel value, one column of usage GFU_MinMax can be used.</p>
<p>In other cases all the categories are of equal size and regularly spaced and the categorization information can be determine just by knowing the value at which the categories start, and the size of a category. This is called "Linear Binning" and the information is kept specially on the raster attribute table as a whole.</p>
<p>RATs are normally associated with GDALRasterBands and be be queried using the <a class="el" href="classGDALRasterBand.html#a5239240c7d3f69342bcda45ff3bc62db">GDALRasterBand::GetDefaultRAT()</a> method. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae8026534d14d0e955942577253e6949a"></a><!-- doxytag: member="GDALRasterAttributeTable::Clone" ref="ae8026534d14d0e955942577253e6949a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGDALRasterAttributeTable.html">GDALRasterAttributeTable</a> * GDALRasterAttributeTable::Clone </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy Raster Attribute Table. </p>
<p>Creates a new copy of an existing raster attribute table. The new copy becomes the responsibility of the caller to destroy.</p>
<p>This method is the same as the C function GDALRATClone().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>new copy of the RAT. </dd></dl>

<p>References <a class="el" href="gdal__rat_8cpp_source.html#l00078">GDALRasterAttributeTable()</a>.</p>

<p>Referenced by <a class="el" href="gdalpamrasterband_8cpp_source.html#l01211">GDALPamRasterBand::SetDefaultRAT()</a>.</p>

</div>
</div>
<a class="anchor" id="a2a4f7248c0e37e217b1d6423c538123e"></a><!-- doxytag: member="GDALRasterAttributeTable::CreateColumn" ref="a2a4f7248c0e37e217b1d6423c538123e" args="(const char *pszFieldName, GDALRATFieldType eFieldType, GDALRATFieldUsage eFieldUsage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPLErr GDALRasterAttributeTable::CreateColumn </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pszFieldName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="gdal_8h.html#a810154ac91149d1a63c42717258fe16e">GDALRATFieldType</a>&nbsp;</td>
          <td class="paramname"> <em>eFieldType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a>&nbsp;</td>
          <td class="paramname"> <em>eFieldUsage</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create new column. </p>
<p>If the table already has rows, all row values for the new column will be initialized to the default value ("", or zero). The new column is always created as the last column, can will be column (field) "GetColumnCount()-1" after <a class="el" href="classGDALRasterAttributeTable.html#a2a4f7248c0e37e217b1d6423c538123e" title="Create new column.">CreateColumn()</a> has completed successfully.</p>
<p>This method is the same as the C function GDALRATCreateColumn().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pszFieldName</em>&nbsp;</td><td>the name of the field to create. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>eFieldType</em>&nbsp;</td><td>the field type (integer, double or string). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>eFieldUsage</em>&nbsp;</td><td>the field usage, GFU_Generic if not known.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>CE_None on success or CE_Failure if something goes wrong. </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, and <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>.</p>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a3dad1ef8c228f8a24c304b511e17c72f"></a><!-- doxytag: member="GDALRasterAttributeTable::DumpReadable" ref="a3dad1ef8c228f8a24c304b511e17c72f" args="(FILE *=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GDALRasterAttributeTable::DumpReadable </td>
          <td>(</td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>fp</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dump RAT in readable form. </p>
<p>Currently the readable form is the XML encoding ... only barely readable.</p>
<p>This method is the same as the C function GDALRATDumpReadable().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fp</em>&nbsp;</td><td>file to dump to or NULL for stdout. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad14d4f36a9c10ffc3e63ed24f963bd5d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetColOfUsage" ref="ad14d4f36a9c10ffc3e63ed24f963bd5d" args="(GDALRATFieldUsage) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetColOfUsage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a>&nbsp;</td>
          <td class="paramname"> <em>eUsage</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch column index for given usage. </p>
<p>Returns the index of the first column of the requested usage type, or -1 if no match is found.</p>
<p>This method is the same as the C function GDALRATGetUsageOfCol().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>eUsage</em>&nbsp;</td><td>usage type to search for.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>column index, or -1 on failure. </dd></dl>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01248">TranslateToColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a32f3dfc6b1bd7e23cb7732af64d8bafe"></a><!-- doxytag: member="GDALRasterAttributeTable::GetColumnCount" ref="a32f3dfc6b1bd7e23cb7732af64d8bafe" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetColumnCount </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch table column count. </p>
<p>This method is the same as the C function GDALRATGetColumnCount().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of columns. </dd></dl>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a256e0e90249b812048731c597f6f79f2"></a><!-- doxytag: member="GDALRasterAttributeTable::GetLinearBinning" ref="a256e0e90249b812048731c597f6f79f2" args="(double *pdfRow0Min, double *pdfBinSize) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetLinearBinning </td>
          <td>(</td>
          <td class="paramtype">double *&nbsp;</td>
          <td class="paramname"> <em>pdfRow0Min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&nbsp;</td>
          <td class="paramname"> <em>pdfBinSize</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get linear binning information. </p>
<p>Returns linear binning information if any is associated with the RAT.</p>
<p>This method is the same as the C function GDALRATGetLinearBinning().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pdfRow0MinIn</em>&nbsp;</td><td>(out) the lower bound (pixel value) of the first category. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pdfBinSizeIn</em>&nbsp;</td><td>(out) the width of each category (in pixel value units).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if linear binning information exists or FALSE if there is none. </dd></dl>

</div>
</div>
<a class="anchor" id="a533ed0e87ba61d1c3d662c5fd1ee01e8"></a><!-- doxytag: member="GDALRasterAttributeTable::GetNameOfCol" ref="a533ed0e87ba61d1c3d662c5fd1ee01e8" args="(int) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * GDALRasterAttributeTable::GetNameOfCol </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iCol</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch name of indicated column. </p>
<p>This method is the same as the C function GDALRATGetNameOfCol(), except that the C function returns "const char *".</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iCol</em>&nbsp;</td><td>the column index (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the column name or an empty string for invalid column numbers. </dd></dl>

</div>
</div>
<a class="anchor" id="a170f146219e82d680dd83b0c9bba620d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowCount" ref="a170f146219e82d680dd83b0c9bba620d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetRowCount </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch row count. </p>
<p>This method is the same as the C function GDALRATGetRowCount().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of rows. </dd></dl>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="aa7c68ff1867e87fe5986f38655fa7d32"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowOfValue" ref="aa7c68ff1867e87fe5986f38655fa7d32" args="(double dfValue) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetRowOfValue </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfValue</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get row for pixel value. </p>
<p>Given a raw pixel value, the raster attribute table is scanned to determine which row in the table applies to the pixel value. The row index is returned.</p>
<p>This method is the same as the C function GDALRATGetRowOfValue().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dfValue</em>&nbsp;</td><td>the pixel value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the row index or -1 if no row is appropriate. </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, and <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>.</p>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01248">TranslateToColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a69eb6893d98c915ef14293cd68713606"></a><!-- doxytag: member="GDALRasterAttributeTable::GetTypeOfCol" ref="a69eb6893d98c915ef14293cd68713606" args="(int) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="gdal_8h.html#a810154ac91149d1a63c42717258fe16e">GDALRATFieldType</a> GDALRasterAttributeTable::GetTypeOfCol </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iCol</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch color type. </p>
<p>This method is the same as the C function GDALRATGetTypeOfCol().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iCol</em>&nbsp;</td><td>the column index (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>column type or GFT_Integer if the column index is illegal. </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>.</p>

</div>
</div>
<a class="anchor" id="a53f36667aa01059844d980914e3ea09d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetUsageOfCol" ref="a53f36667aa01059844d980914e3ea09d" args="(int) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="gdal_8h.html#a27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a> GDALRasterAttributeTable::GetUsageOfCol </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iCol</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch column usage value. </p>
<p>This method is the same as the C function GDALRATGetUsageOfCol().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iCol</em>&nbsp;</td><td>the column index (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the column usage, or GFU_Generic for improper column numbers. </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00618">GFU_Generic</a>.</p>

</div>
</div>
<a class="anchor" id="a8508a5c99ac1d987d29c68645ea0202d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsDouble" ref="a8508a5c99ac1d987d29c68645ea0202d" args="(int iRow, int iField) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double GDALRasterAttributeTable::GetValueAsDouble </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch field value as a double. </p>
<p>The value of the requested column in the requested row is returned as a double. Non double fields will be converted to double with the possibility of data loss.</p>
<p>This method is the same as the C function GDALRATGetValueAsDouble().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>field value </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, and <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>.</p>

</div>
</div>
<a class="anchor" id="a1a59d41ade3a8bee59e6fd8f38b69802"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsInt" ref="a1a59d41ade3a8bee59e6fd8f38b69802" args="(int iRow, int iField) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GDALRasterAttributeTable::GetValueAsInt </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch field value as a integer. </p>
<p>The value of the requested column in the requested row is returned as an integer. Non-integer fields will be converted to integer with the possibility of data loss.</p>
<p>This method is the same as the C function GDALRATGetValueAsInt().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>field value </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, and <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>.</p>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01248">TranslateToColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="abfc54ebd2a2ef04427b041bee9a0bc8d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsString" ref="abfc54ebd2a2ef04427b041bee9a0bc8d" args="(int iRow, int iField) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * GDALRasterAttributeTable::GetValueAsString </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch field value as a string. </p>
<p>The value of the requested column in the requested row is returned as a string. If the field is numeric, it is formatted as a string using default rules, so some precision may be lost.</p>
<p>This method is the same as the C function GDALRATGetValueAsString(), except it returns a "const char *" result.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>field value </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, and <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>.</p>

</div>
</div>
<a class="anchor" id="ace0bd498e5533d9f1585f801ca6ecf5e"></a><!-- doxytag: member="GDALRasterAttributeTable::InitializeFromColorTable" ref="ace0bd498e5533d9f1585f801ca6ecf5e" args="(const GDALColorTable *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPLErr GDALRasterAttributeTable::InitializeFromColorTable </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGDALColorTable.html">GDALColorTable</a> *&nbsp;</td>
          <td class="paramname"> <em>poTable</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize from color table. </p>
<p>This method will setup a whole raster attribute table based on the contents of the passed color table. The Value (GFU_MinMax), Red (GFU_Red), Green (GFU_Green), Blue (GFU_Blue), and Alpha (GFU_Alpha) fields are created, and a row is set for each entry in the color table.</p>
<p>The raster attribute table must be empty before calling <a class="el" href="classGDALRasterAttributeTable.html#ace0bd498e5533d9f1585f801ca6ecf5e" title="Initialize from color table.">InitializeFromColorTable()</a>.</p>
<p>The Value fields are set based on the implicit assumption with color tables that entry 0 applies to pixel value 0, 1 to 1, etc.</p>
<p>This method is the same as the C function GDALRATInitializeFromColorTable().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>poTable</em>&nbsp;</td><td>the color table to copy from.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>CE_None</em>&nbsp;</td><td>on success or CE_Failure if something goes wrong. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="gdal_8h_source.html#l00583">GDALColorEntry::c1</a>, <a class="el" href="gdal_8h_source.html#l00586">GDALColorEntry::c2</a>, <a class="el" href="gdal_8h_source.html#l00589">GDALColorEntry::c3</a>, <a class="el" href="gdal_8h_source.html#l00592">GDALColorEntry::c4</a>, <a class="el" href="gdal__rat_8cpp_source.html#l01112">CreateColumn()</a>, <a class="el" href="gdalcolortable_8cpp_source.html#l00147">GDALColorTable::GetColorEntryAsRGB()</a>, <a class="el" href="gdalcolortable_8cpp_source.html#l00260">GDALColorTable::GetColorEntryCount()</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00170">GetColumnCount()</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00367">GetRowCount()</a>, <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00627">GFU_Alpha</a>, <a class="el" href="gdal_8h_source.html#l00626">GFU_Blue</a>, <a class="el" href="gdal_8h_source.html#l00625">GFU_Green</a>, <a class="el" href="gdal_8h_source.html#l00623">GFU_MinMax</a>, <a class="el" href="gdal_8h_source.html#l00624">GFU_Red</a>, <a class="el" href="gdal__rat_8cpp_source.html#l01020">SetLinearBinning()</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00618">SetRowCount()</a>, and <a class="el" href="gdal__rat_8cpp_source.html#l00677">SetValue()</a>.</p>

</div>
</div>
<a class="anchor" id="aca7ea5023d9820fd8611a388ca947887"></a><!-- doxytag: member="GDALRasterAttributeTable::SetLinearBinning" ref="aca7ea5023d9820fd8611a388ca947887" args="(double dfRow0Min, double dfBinSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPLErr GDALRasterAttributeTable::SetLinearBinning </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfRow0MinIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfBinSizeIn</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set linear binning information. </p>
<p>For RATs with equal sized categories (in pixel value space) that are evenly spaced, this method may be used to associate the linear binning information with the table.</p>
<p>This method is the same as the C function GDALRATSetLinearBinning().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dfRow0MinIn</em>&nbsp;</td><td>the lower bound (pixel value) of the first category. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dfBinSizeIn</em>&nbsp;</td><td>the width of each category (in pixel value units).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>CE_None on success or CE_Failure on failure. </dd></dl>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a5f108000de7f8ace1a4eb4f015ac3b5f"></a><!-- doxytag: member="GDALRasterAttributeTable::SetRowCount" ref="a5f108000de7f8ace1a4eb4f015ac3b5f" args="(int iCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GDALRasterAttributeTable::SetRowCount </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nNewCount</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set row count. </p>
<p>Resizes the table to include the indicated number of rows. Newly created rows will be initialized to their default values - "" for strings, and zero for numeric fields.</p>
<p>This method is the same as the C function GDALRATSetRowCount().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nNewCount</em>&nbsp;</td><td>the new number of rows. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, and <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>.</p>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>, and <a class="el" href="gdal__rat_8cpp_source.html#l00677">SetValue()</a>.</p>

</div>
</div>
<a class="anchor" id="ae500398b7acd98a7630a51028387ba04"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="ae500398b7acd98a7630a51028387ba04" args="(int iRow, int iField, int nValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GDALRasterAttributeTable::SetValue </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set field value from integer. </p>
<p>The indicated field (column) on the indicated row is set from the passed value. The value will be automatically converted for other field types, with a possible loss of precision.</p>
<p>This method is the same as the C function GDALRATSetValueAsInteger().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nValue</em>&nbsp;</td><td>the value to assign. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>, and <a class="el" href="gdal__rat_8cpp_source.html#l00618">SetRowCount()</a>.</p>

</div>
</div>
<a class="anchor" id="ab76d4a92ff58fd4dd4ce3ccc6006927f"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="ab76d4a92ff58fd4dd4ce3ccc6006927f" args="(int iRow, int iField, double dfValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GDALRasterAttributeTable::SetValue </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set field value from double. </p>
<p>The indicated field (column) on the indicated row is set from the passed value. The value will be automatically converted for other field types, with a possible loss of precision.</p>
<p>This method is the same as the C function GDALRATSetValueAsDouble().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dfValue</em>&nbsp;</td><td>the value to assign. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>, and <a class="el" href="gdal__rat_8cpp_source.html#l00618">SetRowCount()</a>.</p>

</div>
</div>
<a class="anchor" id="a71b0d63f1991f300a88e1b0b95024a44"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="a71b0d63f1991f300a88e1b0b95024a44" args="(int iRow, int iField, const char *pszValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GDALRasterAttributeTable::SetValue </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iField</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pszValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set field value from string. </p>
<p>The indicated field (column) on the indicated row is set from the passed value. The value will be automatically converted for other field types, with a possible loss of precision.</p>
<p>This method is the same as the C function GDALRATSetValueAsString().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iRow</em>&nbsp;</td><td>row to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iField</em>&nbsp;</td><td>column to fetch (zero based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pszValue</em>&nbsp;</td><td>the value to assign. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="gdal_8h_source.html#l00612">GFT_Integer</a>, <a class="el" href="gdal_8h_source.html#l00613">GFT_Real</a>, <a class="el" href="gdal_8h_source.html#l00614">GFT_String</a>, and <a class="el" href="gdal__rat_8cpp_source.html#l00618">SetRowCount()</a>.</p>

<p>Referenced by <a class="el" href="gdal__rat_8cpp_source.html#l01177">InitializeFromColorTable()</a>.</p>

</div>
</div>
<a class="anchor" id="a855180a5a68a73a6830d00ffd6ee655f"></a><!-- doxytag: member="GDALRasterAttributeTable::TranslateToColorTable" ref="a855180a5a68a73a6830d00ffd6ee655f" args="(int nEntryCount=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGDALColorTable.html">GDALColorTable</a> * GDALRasterAttributeTable::TranslateToColorTable </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nEntryCount</em> = <code>-1</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translate to a color table. </p>
<p>This method will attempt to create a corresponding <a class="el" href="classGDALColorTable.html">GDALColorTable</a> from this raster attribute table.</p>
<p>This method is the same as the C function GDALRATTranslateToColorTable().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nEntryCount</em>&nbsp;</td><td>The number of entries to produce (0 to nEntryCount-1), or -1 to auto-determine the number of entries.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the generated color table or NULL on failure. </dd></dl>

<p>References <a class="el" href="gdal_8h_source.html#l00583">GDALColorEntry::c1</a>, <a class="el" href="gdal_8h_source.html#l00586">GDALColorEntry::c2</a>, <a class="el" href="gdal_8h_source.html#l00589">GDALColorEntry::c3</a>, <a class="el" href="gdal_8h_source.html#l00592">GDALColorEntry::c4</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00327">GetColOfUsage()</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00900">GetRowOfValue()</a>, <a class="el" href="gdal__rat_8cpp_source.html#l00488">GetValueAsInt()</a>, <a class="el" href="gdal_8h_source.html#l00627">GFU_Alpha</a>, <a class="el" href="gdal_8h_source.html#l00626">GFU_Blue</a>, <a class="el" href="gdal_8h_source.html#l00625">GFU_Green</a>, <a class="el" href="gdal_8h_source.html#l00622">GFU_Max</a>, <a class="el" href="gdal_8h_source.html#l00623">GFU_MinMax</a>, <a class="el" href="gdal_8h_source.html#l00624">GFU_Red</a>, and <a class="el" href="gdalcolortable_8cpp_source.html#l00190">GDALColorTable::SetColorEntry()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="gdal__rat_8h_source.html">gdal_rat.h</a></li>
<li>gdal_rat.cpp</li>
</ul>
</div>
<hr>

Generated for GDAL by 
<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.2-20100208.
</body>
</html>