📄 classogrfielddefn.html
字号:
<table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>eType</em> </td><td>the field type to get name for.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to an internal static name string. It should not be modified or freed. </dd></dl></div></div><p><a class="anchor" name="40f6520b0638571f8acf32b2c436231f"></a><!-- doxytag: member="OGRFieldDefn::GetJustify" ref="40f6520b0638571f8acf32b2c436231f" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRJustification OGRFieldDefn::GetJustify </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Get the justification for this field.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#0cf8a09826e47763e6bf667af0dae1a7">OGR_Fld_GetJustify()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the justification. </dd></dl></div></div><p><a class="anchor" name="cbd783e3b61ab388eab3f45c25cf1bc0"></a><!-- doxytag: member="OGRFieldDefn::SetJustify" ref="cbd783e3b61ab388eab3f45c25cf1bc0" args="(OGRJustification eJustifyIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRFieldDefn::SetJustify </td> <td>(</td> <td class="paramtype">OGRJustification </td> <td class="paramname"> <em>eJustify</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Set the justification for this field.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#e4809f2fe957002b8e18aacc1bdca240">OGR_Fld_SetJustify()</a>.<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>eJustify</em> </td><td>the new justification. </td></tr> </table></dl></div></div><p><a class="anchor" name="3aca8d59291beed0ccfe2e05a187bcb1"></a><!-- doxytag: member="OGRFieldDefn::GetWidth" ref="3aca8d59291beed0ccfe2e05a187bcb1" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRFieldDefn::GetWidth </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Get the formatting width for this field.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a6500186e3f22761a615428c55bba0ce">OGR_Fld_GetWidth()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the width, zero means no specified width. </dd></dl></div></div><p><a class="anchor" name="a793194c45ccba5ec7e9f7aea49dc6f3"></a><!-- doxytag: member="OGRFieldDefn::SetWidth" ref="a793194c45ccba5ec7e9f7aea49dc6f3" args="(int nWidthIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRFieldDefn::SetWidth </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>nWidth</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Set the formatting width for this field in characters.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#1d7bf7c14a299448efac58f7bf364326">OGR_Fld_SetWidth()</a>.<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>nWidth</em> </td><td>the new width. </td></tr> </table></dl></div></div><p><a class="anchor" name="704a3aa995e9ee44b369aff7f1e065a5"></a><!-- doxytag: member="OGRFieldDefn::GetPrecision" ref="704a3aa995e9ee44b369aff7f1e065a5" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRFieldDefn::GetPrecision </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Get the formatting precision for this field. This should normally be zero for fields of types other than OFTReal.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#120dd56ee23070922e4d84ed06b06e27">OGR_Fld_GetPrecision()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the precision. </dd></dl></div></div><p><a class="anchor" name="bea88d3ed96c46b4f0eda415460f8664"></a><!-- doxytag: member="OGRFieldDefn::SetPrecision" ref="bea88d3ed96c46b4f0eda415460f8664" args="(int nPrecisionIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRFieldDefn::SetPrecision </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>nPrecision</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Set the formatting precision for this field in characters.<p>This should normally be zero for fields of types other than OFTReal.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#13890f01f7d7e57bcd07e23f3e2947da">OGR_Fld_SetPrecision()</a>.<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>nPrecision</em> </td><td>the new precision. </td></tr> </table></dl></div></div><p><a class="anchor" name="9b08b348f111ecbfe2970b312d9ce54b"></a><!-- doxytag: member="OGRFieldDefn::Set" ref="9b08b348f111ecbfe2970b312d9ce54b" args="(const char *, OGRFieldType, int=0, int=0, OGRJustification=OJUndefined)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRFieldDefn::Set </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>pszNameIn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">OGRFieldType </td> <td class="paramname"> <em>eTypeIn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nWidthIn</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nPrecisionIn</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">OGRJustification </td> <td class="paramname"> <em>eJustifyIn</em> = <code>OJUndefined</code></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 defining parameters for a field in one call.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#5922e599fe8746b81adf251be6b5ecf0">OGR_Fld_Set()</a>.<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>pszNameIn</em> </td><td>the new name to assign. </td></tr> <tr><td valign="top"></td><td valign="top"><em>eTypeIn</em> </td><td>the new type (one of the OFT values like OFTInteger). </td></tr> <tr><td valign="top"></td><td valign="top"><em>nWidthIn</em> </td><td>the preferred formatting width. Defaults to zero indicating undefined. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nPrecisionIn</em> </td><td>number of decimals places for formatting, defaults to zero indicating undefined. </td></tr> <tr><td valign="top"></td><td valign="top"><em>eJustifyIn</em> </td><td>the formatting justification (OJLeft or OJRight), defaults to OJUndefined. </td></tr> </table></dl></div></div><p><a class="anchor" name="1e8863611c93c09bd5d922e1b859670d"></a><!-- doxytag: member="OGRFieldDefn::SetDefault" ref="1e8863611c93c09bd5d922e1b859670d" args="(const OGRField *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRFieldDefn::SetDefault </td> <td>(</td> <td class="paramtype">const <a class="el" href="unionOGRField.html">OGRField</a> * </td> <td class="paramname"> <em>puDefaultIn</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Set default field value.<p>Currently use of <a class="el" href="classOGRFieldDefn.html">OGRFieldDefn</a> "defaults" is discouraged. This feature may be fleshed out in the future. </div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="ogr__feature_8h-source.html">ogr_feature.h</a><li>ogrfielddefn.cpp</ul><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.5.1.</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -