⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classsfctable.html

📁 gdal库的学习文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>OGR: SFCTable Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>    <li><a href="dirs.html"><span>Directories</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</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><h1>SFCTable Class Reference</h1><!-- doxytag: class="SFCTable" --><code>#include &lt;<a class="el" href="sfctable_8h-source.html">sfctable.h</a>&gt;</code><p><a href="classSFCTable-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#f25158b53c9aaa874659eb0989fde855">SetTableName</a> (const char *)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#20fc6269be61437a46aed9fa217e644a">GetTableName</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#338ea0d76a91769df438305b78ac1b8e">ReadSchemaInfo</a> (CDataSource *, CSession *=NULL)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#f559bfec9b26bbfdbfb44e90b9eda989">ReleaseIUnknowns</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#90f7bb0cd4a9bfeb0cbe4c18ac56aed1">GetSpatialRefID</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#8bef99e80a826f2dfbce237c5f8b52c4">HasGeometry</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#164c1b1059f84f3f9e8fc6522af2be37">GetGeometryType</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">BYTE *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#0ec445214ae2020db56a771b4426c20a">GetWKBGeometry</a> (int *pnSize)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSFCTable.html#cd1702b2854f72455c42f613259845cd">GetOGRGeometry</a> ()</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Abstract representation of a rowset (table) with spatial features.<p>This class is intended to simplify access to spatial rowsets, and to centralize all the rules for selecting geometry columns, getting the spatial reference system of a rowset, and special feature access short cuts with selected providers. It is based on the ATL CTable class with a dynamic accessor. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="f25158b53c9aaa874659eb0989fde855"></a><!-- doxytag: member="SFCTable::SetTableName" ref="f25158b53c9aaa874659eb0989fde855" args="(const char *)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void SFCTable::SetTableName           </td>          <td>(</td>          <td class="paramtype">const char *&nbsp;</td>          <td class="paramname"> <em>pszTableName</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Set the table name.<p>This is primarily needed if the <a class="el" href="classSFCTable.html">SFCTable</a> is created by means other than <a class="el" href="classSFCDataSource.html#e34472e0240150aa59e86b975f128375">SFCDataSource::CreateSFCTable()</a>. The table name is needed to collect information from the ogis columns schema rowset.<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>pszTableName</em>&nbsp;</td><td>the name of the table from which this <a class="el" href="classSFCTable.html">SFCTable</a> is derived. </td></tr>  </table></dl></div></div><p><a class="anchor" name="20fc6269be61437a46aed9fa217e644a"></a><!-- doxytag: member="SFCTable::GetTableName" ref="20fc6269be61437a46aed9fa217e644a" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">const char * SFCTable::GetTableName           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Get the name of this rowsets table.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>a pointer to an internal table name. May be NULL if not known. Should not be modified or freed by the application. </dd></dl></div></div><p><a class="anchor" name="338ea0d76a91769df438305b78ac1b8e"></a><!-- doxytag: member="SFCTable::ReadSchemaInfo" ref="338ea0d76a91769df438305b78ac1b8e" args="(CDataSource *, CSession *=NULL)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int SFCTable::ReadSchemaInfo           </td>          <td>(</td>          <td class="paramtype">CDataSource *&nbsp;</td>          <td class="paramname"> <em>poDS</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">CSession *&nbsp;</td>          <td class="paramname"> <em>poSession</em> = <code>NULL</code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Read required schema rowset information.<p>This method is normally called by <a class="el" href="classSFCDataSource.html#e34472e0240150aa59e86b975f128375">SFCDataSource::CreateSFCTable()</a>, but if the <a class="el" href="classSFCTable.html">SFCTable</a> is created by another means, it is necessary so that the <a class="el" href="classSFCTable.html">SFCTable</a> can get information from the schema rowsets about the geometry column, SRS and so forth.<p>If an <a class="el" href="classSFCTable.html">SFCTable</a> is instantiated wihtout this method ever being called a number of the OpenGIS related aspects of the table will not be operational.<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>poDS</em>&nbsp;</td><td>a CDataSource (or <a class="el" href="classSFCDataSource.html">SFCDataSource</a>) on which this <a class="el" href="classSFCTable.html">SFCTable</a> was created.</td></tr>    <tr><td valign="top"></td><td valign="top"><em>poSession</em>&nbsp;</td><td>optional Session to be used internally to access various schema rowsets.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if reading of schema information succeeds. </dd></dl></div></div><p><a class="anchor" name="f559bfec9b26bbfdbfb44e90b9eda989"></a><!-- doxytag: member="SFCTable::ReleaseIUnknowns" ref="f559bfec9b26bbfdbfb44e90b9eda989" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void SFCTable::ReleaseIUnknowns           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Release any IUnknowns in current record.<p>It is very important that this be called once, and only once for each record read on an <a class="el" href="classSFCTable.html">SFCTable</a> if there may be IUnknowns (generally ISequentialStreams for the geometry column).<p>Unfortunately, the CRowset::ReleaseRows() doesn't take care of this itself. </div></div><p><a class="anchor" name="90f7bb0cd4a9bfeb0cbe4c18ac56aed1"></a><!-- doxytag: member="SFCTable::GetSpatialRefID" ref="90f7bb0cd4a9bfeb0cbe4c18ac56aed1" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int SFCTable::GetSpatialRefID           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch the spatial reference system id of this table.<p>This method returns the id of the spatial reference system for this table. All geometries in this table should have this spatial reference system. The <a class="el" href="classSFCDataSource.html#a248cee4e1ee06a9055b612f07ba7db4">SFCDataSource::GetWKTFromSRSId()</a> method can be used to transform this id into a useful form.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>spatial reference system id. The value will be -1 if not known. </dd></dl></div></div><p><a class="anchor" name="8bef99e80a826f2dfbce237c5f8b52c4"></a><!-- doxytag: member="SFCTable::HasGeometry" ref="8bef99e80a826f2dfbce237c5f8b52c4" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int SFCTable::HasGeometry           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Does this table have geometry?<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>this method returns TRUE if this table has an identifiable geometry column. </dd></dl></div></div><p><a class="anchor" name="164c1b1059f84f3f9e8fc6522af2be37"></a><!-- doxytag: member="SFCTable::GetGeometryType" ref="164c1b1059f84f3f9e8fc6522af2be37" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int SFCTable::GetGeometryType           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch the geometry type of this table.<p>This method returns the well known binary type of the geometry in this table. This integer can be cast to the type OGRwkbGeometryType in order to use symbolic constants. The intent is that all objects in this table would be of the returned class, or a derived class. It will generally be zero (wkbUnknown) if nothing is known about the geometry types in the table.<p>Zero (wkbUnknown) will be returned if there is no column info schema rowset (from which this value is normally extracted).<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>well known geometry type. </dd></dl></div></div><p><a class="anchor" name="0ec445214ae2020db56a771b4426c20a"></a><!-- doxytag: member="SFCTable::GetWKBGeometry" ref="0ec445214ae2020db56a771b4426c20a" args="(int *pnSize)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">BYTE * SFCTable::GetWKBGeometry           </td>          <td>(</td>          <td class="paramtype">int *&nbsp;</td>          <td class="paramname"> <em>pnSize</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch geometry binary column binary data.<p>Note that the returned pointer is to an internal buffer, and will be invalidated by the next record read operation. The data should not be freed or modified.<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>pnSize</em>&nbsp;</td><td>pointer to an integer into which the number of bytes returned may be put. This may be NULL.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>a pointer to the binary data or NULL if the fetch fails. </dd></dl></div></div><p><a class="anchor" name="cd1702b2854f72455c42f613259845cd"></a><!-- doxytag: member="SFCTable::GetOGRGeometry" ref="cd1702b2854f72455c42f613259845cd" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * SFCTable::GetOGRGeometry           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch the <a class="el" href="classOGRGeometry.html">OGRGeometry</a> for this record.<p>The reading of the BLOB column, and translation into an <a class="el" href="classOGRGeometry.html">OGRGeometry</a> subclass is handled automatically. The returned object becomes the responsibility of the caller and should be destroyed with delete.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to an <a class="el" href="classOGRGeometry.html">OGRGeometry</a>, or NULL if the read fails. </dd></dl></div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="sfctable_8h-source.html">sfctable.h</a><li>sfctable.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 + -