📄 classgdalrasterattributetable.html
字号:
<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="71b0d63f1991f300a88e1b0b95024a44"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="71b0d63f1991f300a88e1b0b95024a44" 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 </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>pszValue</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set field value from string. <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>This method is the same as the C function GDALRATSetValueAsString().<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> <tr><td valign="top"></td><td valign="top"><em>pszValue</em> </td><td>the value to assign. </td></tr> </table></dl></div></div><p><a class="anchor" name="b76d4a92ff58fd4dd4ce3ccc6006927f"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="b76d4a92ff58fd4dd4ce3ccc6006927f" 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 </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>dfValue</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set field value from double. <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>This method is the same as the C function GDALRATSetValueAsDouble().<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> <tr><td valign="top"></td><td valign="top"><em>dfValue</em> </td><td>the value to assign. </td></tr> </table></dl></div></div><p><a class="anchor" name="e500398b7acd98a7630a51028387ba04"></a><!-- doxytag: member="GDALRasterAttributeTable::SetValue" ref="e500398b7acd98a7630a51028387ba04" 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 </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nValue</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set field value from integer. <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>This method is the same as the C function GDALRATSetValueAsInteger().<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> <tr><td valign="top"></td><td valign="top"><em>nValue</em> </td><td>the value to assign. </td></tr> </table></dl></div></div><p><a class="anchor" name="5f108000de7f8ace1a4eb4f015ac3b5f"></a><!-- doxytag: member="GDALRasterAttributeTable::SetRowCount" ref="5f108000de7f8ace1a4eb4f015ac3b5f" 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 </td> <td class="paramname"> <em>nNewCount</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set row count. <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>This method is the same as the C function GDALRATSetRowCount().<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>nNewCount</em> </td><td>the new number of rows. </td></tr> </table></dl></div></div><p><a class="anchor" name="a7c68ff1867e87fe5986f38655fa7d32"></a><!-- doxytag: member="GDALRasterAttributeTable::GetRowOfValue" ref="a7c68ff1867e87fe5986f38655fa7d32" 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 </td> <td class="paramname"> <em>dfValue</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Get row for pixel value. <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>This method is the same as the C function GDALRATGetRowOfValue().<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>dfValue</em> </td><td>the pixel value.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>the row index or -1 if no row is appropriate. </dd></dl></div></div><p><a class="anchor" name="2a4f7248c0e37e217b1d6423c538123e"></a><!-- doxytag: member="GDALRasterAttributeTable::CreateColumn" ref="2a4f7248c0e37e217b1d6423c538123e" 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 * </td> <td class="paramname"> <em>pszFieldName</em>, </td> </tr> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -