classvtfeatureset.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 680 行 · 第 1/3 页

HTML
680
字号
</table><hr><a name="_details"></a><h2>Detailed Description</h2>vtFeatureSet contains a collection of features which are just abstract data, without any specific correspondence to any aspect of the physical world. This is the same as a traditional GIS file (e.g. ESRI Shapefile).<p>Examples: political and property boundaries, geocoded addresses, flight paths, place names. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="7da98cdb3834f8d3a66658f63f696338"></a><!-- doxytag: member="vtFeatureSet::AddField" ref="7da98cdb3834f8d3a66658f63f696338" args="(const char *name, FieldType ftype, int string_length=40)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int vtFeatureSet::AddField           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>name</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>FieldType&nbsp;</td>          <td class="mdname" nowrap> <em>ftype</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>string_length</em> = <code>40</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Add a data field to this featureset. The field contain a value of any type, for every entity.<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>name</em>&nbsp;</td><td>Name of the new field. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ftype</em>&nbsp;</td><td>Type of the new field. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string_length</em>&nbsp;</td><td>For backward compatibility with the old SHP/DBF file formats, this is the maximum length of a string, for string fields. It has no effect unless you save this featureset to a SHP/DBF file. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="677e73f84a8e4ce8d7824f5dcfe666e5"></a><!-- doxytag: member="vtFeatureSet::AppendDataFrom" ref="677e73f84a8e4ce8d7824f5dcfe666e5" args="(vtFeatureSet *pFromSet)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">bool vtFeatureSet::AppendDataFrom           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classvtFeatureSet.html">vtFeatureSet</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pFromSet</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Append the contents of another featureset to this one. The two featuresets must have the same geometry type. Only fields with matching names are copied in the record data.     </td>  </tr></table><a class="anchor" name="594c518f9e0c2b7098daac293baa3250"></a><!-- doxytag: member="vtFeatureSet::GetFieldIndex" ref="594c518f9e0c2b7098daac293baa3250" args="(const char *name) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int vtFeatureSet::GetFieldIndex           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the index of the field with the given name, or -1 if no field with that name was found.     </td>  </tr></table><a class="anchor" name="077417fee63df5bca7aa35574ef4bafe"></a><!-- doxytag: member="vtFeatureSet::GetGeomType" ref="077417fee63df5bca7aa35574ef4bafe" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">OGRwkbGeometryType vtFeatureSet::GetGeomType           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the type of geometry that each feature has.<p><dl compact><dt><b>Returns:</b></dt><dd><ul><li>wkbPoint for 2D points</li><li>wkbPoint25D fpr 3D points</li><li>wkbLineString for 2D polylines</li><li>wkbPolygon for 2D polygons </li></ul></dd></dl>    </td>  </tr></table><a class="anchor" name="84360b5aa25b32f6ab9e66eca5b9e5e6"></a><!-- doxytag: member="vtFeatureSet::LoadDataFromCSV" ref="84360b5aa25b32f6ab9e66eca5b9e5e6" args="(const char *filename, bool progress_callback(int)=0)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">bool vtFeatureSet::LoadDataFromCSV           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>filename</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool &nbsp;</td>          <td class="mdname" nowrap> <em>progress_callback</em>(int) = <code>0</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Load a featureset's field data from a comma-separated-value (CSV) file.<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>filename</em>&nbsp;</td><td>filename in UTF-8 encoding. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>progress_callback</em>&nbsp;</td><td>Provide a callback function if you want to receive progress indication.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true if successful. </dd></dl>    </td>  </tr></table><a class="anchor" name="51a636aea4255280d23f4b9fc4dfdd1e"></a><!-- doxytag: member="vtFeatureSet::LoadDataFromDBF" ref="51a636aea4255280d23f4b9fc4dfdd1e" args="(const char *filename, bool progress_callback(int)=0)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">bool vtFeatureSet::LoadDataFromDBF           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>filename</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool &nbsp;</td>          <td class="mdname" nowrap> <em>progress_callback</em>(int) = <code>0</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Load a featureset's field data from a DBF file<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?