📄 classgdalrasterattributetable.html
字号:
<td class="memname"><a class="el" href="gdal_8h.html#27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a> GDALRasterAttributeTable::GetUsageOfCol </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>iCol</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch column usage value. <p>This method is the same as the C function GDALRATGetUsageOfCol().<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>iCol</em> </td><td>the column index (zero based).</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>the column usage, or GFU_Generic for improper column numbers. </dd></dl></div></div><p><a class="anchor" name="69eb6893d98c915ef14293cd68713606"></a><!-- doxytag: member="GDALRasterAttributeTable::GetTypeOfCol" ref="69eb6893d98c915ef14293cd68713606" args="(int) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="gdal_8h.html#810154ac91149d1a63c42717258fe16e">GDALRATFieldType</a> GDALRasterAttributeTable::GetTypeOfCol </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>iCol</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch color type. <p>This method is the same as the C function GDALRATGetTypeOfCol().<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>iCol</em> </td><td>the column index (zero based).</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>color type or GFT_Integer if the column index is illegal. </dd></dl></div></div><p><a class="anchor" name="d14d4f36a9c10ffc3e63ed24f963bd5d"></a><!-- doxytag: member="GDALRasterAttributeTable::GetColOfUsage" ref="d14d4f36a9c10ffc3e63ed24f963bd5d" 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#27bf786b965d5227da1acc2a4cab69a1">GDALRATFieldUsage</a> </td> <td class="paramname"> <em>eUsage</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch column index for given usage. <p>Returns the index of the first column of the requested usage type, or -1 if no match is found.<p>This method is the same as the C function GDALRATGetUsageOfCol().<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>eUsage</em> </td><td>usage type to search for.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>column index, or -1 on failure. </dd></dl></div></div><p><a class="anchor" name="e2bd7c9326b711a8c4e149eff79bf941"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowCount" ref="e2bd7c9326b711a8c4e149eff79bf941" 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> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch row count. <p>This method is the same as the C function GDALRATGetRowCount().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the number of rows. </dd></dl></div></div><p><a class="anchor" name="fa08088965c40b8dc91b00803adf9640"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsString" ref="fa08088965c40b8dc91b00803adf9640" 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 </td> <td class="paramname"> <em>iRow</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>iField</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch field value as a string. <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>This method is the same as the C function GDALRATGetValueAsString(), except it returns a "const char *" result.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>iRow</em> </td><td>row to fetch (zero based). </td></tr> <tr><td valign="top"></td><td valign="top"><em>iField</em> </td><td>column to fetch (zero based).</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>field value </dd></dl></div></div><p><a class="anchor" name="3032beec5c0bac5b1d5aa3128fdb72a0"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsInt" ref="3032beec5c0bac5b1d5aa3128fdb72a0" 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 </td> <td class="paramname"> <em>iRow</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>iField</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch field value as a integer. <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>This method is the same as the C function GDALRATGetValueAsInt().<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>iRow</em> </td><td>row to fetch (zero based). </td></tr> <tr><td valign="top"></td><td valign="top"><em>iField</em> </td><td>column to fetch (zero based).</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>field value </dd></dl></div></div><p><a class="anchor" name="707e6c53b84b03cc1979e2d277f4adc1"></a><!-- doxytag: member="GDALRasterAttributeTable::GetValueAsDouble" ref="707e6c53b84b03cc1979e2d277f4adc1" 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 </td> <td class="paramname"> <em>iRow</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>iField</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch field value as a double. <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>This method is the same as the C function GDALRATGetValueAsDouble().<p><dl compact><dt><b>Parameters:</b></dt><dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -