📄 classogrlayer.html
字号:
<a class="anchor" name="ebb07284c734e485d8611b7c8599254f"></a><!-- doxytag: member="OGRLayer::SyncToDisk" ref="ebb07284c734e485d8611b7c8599254f" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRLayer::SyncToDisk </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Flush pending changes to disk.<p>This call is intended to force the layer to flush any pending writes to disk, and leave the disk file in a consistent state. It would not normally have any effect on read-only datasources.<p>Some layers do not implement this method, and will still return OGRERR_NONE. The default implementation just returns OGRERR_NONE. An error is only returned if an error occurs while attempting to flush to disk.<p>This method is the same as the C function OGR_L_SyncToDisk().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE if no error occurs (even if nothing is done) or an error code. </dd></dl></div></div><p><a class="anchor" name="265ddcd701c1d29cb959aae97dda1af4"></a><!-- doxytag: member="OGRLayer::GetStyleTable" ref="265ddcd701c1d29cb959aae97dda1af4" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRLayer::GetStyleTable </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Returns layer style table.<p>This method is the same as the C function OGR_L_GetStyleTable().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to a style table which should not be modified or freed by the caller. </dd></dl></div></div><p><a class="anchor" name="2687d4312c044bb3a20bd13974ba8905"></a><!-- doxytag: member="OGRLayer::SetStyleTableDirectly" ref="2687d4312c044bb3a20bd13974ba8905" args="(OGRStyleTable *poStyleTable)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRLayer::SetStyleTableDirectly </td> <td>(</td> <td class="paramtype">OGRStyleTable * </td> <td class="paramname"> <em>poStyleTable</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Set layer style table.<p>This method operate exactly as <a class="el" href="classOGRLayer.html#33fa0802c0686fb0e6ca6337e11cd7d5">OGRLayer::SetStyleTable()</a> except that it assumes ownership of the passed table.<p>This method is the same as the C function OGR_L_SetStyleTableDirectly().<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>poStyleTable</em> </td><td>pointer to style table to set </td></tr> </table></dl></div></div><p><a class="anchor" name="33fa0802c0686fb0e6ca6337e11cd7d5"></a><!-- doxytag: member="OGRLayer::SetStyleTable" ref="33fa0802c0686fb0e6ca6337e11cd7d5" args="(OGRStyleTable *poStyleTable)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRLayer::SetStyleTable </td> <td>(</td> <td class="paramtype">OGRStyleTable * </td> <td class="paramname"> <em>poStyleTable</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Set layer style table.<p>This method operate exactly as <a class="el" href="classOGRLayer.html#2687d4312c044bb3a20bd13974ba8905">OGRLayer::SetStyleTableDirectly()</a> except that it does not assume ownership of the passed table.<p>This method is the same as the C function OGR_L_SetStyleTable().<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>poStyleTable</em> </td><td>pointer to style table to set </td></tr> </table></dl></div></div><p><a class="anchor" name="f0cb9a05310d7b17d9dfec9e83a18e61"></a><!-- doxytag: member="OGRLayer::GetFIDColumn" ref="f0cb9a05310d7b17d9dfec9e83a18e61" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRLayer::GetFIDColumn </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>This method returns the name of the underlying database column being used as the FID column, or "" if not supported.<p>This method is the same as the C function OGR_L_GetFIDColumn().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>fid column name. </dd></dl></div></div><p><a class="anchor" name="f68036c23622c954ce3a91861f22b724"></a><!-- doxytag: member="OGRLayer::GetGeometryColumn" ref="f68036c23622c954ce3a91861f22b724" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRLayer::GetGeometryColumn </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>This method returns the name of the underlying database column being used as the geometry column, or "" if not supported.<p>This method is the same as the C function OGR_L_GetFIDColumn().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>fid column name. </dd></dl></div></div><p><a class="anchor" name="e783de2e9ee2629e6bf27fd3b8622fb5"></a><!-- doxytag: member="OGRLayer::Reference" ref="e783de2e9ee2629e6bf27fd3b8622fb5" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRLayer::Reference </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Increment layer reference count.<p>This method is the same as the C function OGR_L_Reference().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the reference count after incrementing. </dd></dl></div></div><p><a class="anchor" name="2271d53f75d4f6ff2f4a8aeb71e825d6"></a><!-- doxytag: member="OGRLayer::Dereference" ref="2271d53f75d4f6ff2f4a8aeb71e825d6" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRLayer::Dereference </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Decrement layer reference count.<p>This method is the same as the C function OGR_L_Dereference().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the reference count after decrementing. </dd></dl></div></div><p><a class="anchor" name="df3cea24856572302ae11ed97ca33375"></a><!-- doxytag: member="OGRLayer::GetRefCount" ref="df3cea24856572302ae11ed97ca33375" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRLayer::GetRefCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Fetch reference count.<p>This method is the same as the C function OGR_L_GetRefCount().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the current reference count for the layer object itself. </dd></dl></div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="ogrsf__frmts_8h-source.html">ogrsf_frmts.h</a><li>ogrsf_frmts.dox<li>ogrlayer.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 + -