classcountries.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 130 行

HTML
130
字号
<!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>vtdata library: Countries 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.4.5 --><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>  </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>Countries Class Reference</h1><!-- doxytag: class="Countries" --><a href="classCountries-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"><a class="anchor" name="bdf71829f1407520102ec34a15661fce"></a><!-- doxytag: member="Countries::ReadCountryList" ref="bdf71829f1407520102ec34a15661fce" args="(const char *fname)" -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>ReadCountryList</b> (const char *fname)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e9b99d252a4e9027c41d87a520cf73f"></a><!-- doxytag: member="Countries::ParseRawCountryFiles" ref="0e9b99d252a4e9027c41d87a520cf73f" args="(const char *path_prefix, bool bNativeNames)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>ParseRawCountryFiles</b> (const char *path_prefix, bool bNativeNames)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5edcbfa36135eed878a27cf2b4e0865f"></a><!-- doxytag: member="Countries::ParseRawCountry" ref="5edcbfa36135eed878a27cf2b4e0865f" args="(int i, bool bNativeNames)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>ParseRawCountry</b> (int i, bool bNativeNames)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="681d05141d0760e25d61cde779a76f9b"></a><!-- doxytag: member="Countries::WriteGCF" ref="681d05141d0760e25d61cde779a76f9b" args="(const char *fname)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>WriteGCF</b> (const char *fname)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6316c482668ad32e49bde4ecc93f937"></a><!-- doxytag: member="Countries::WriteSingleSHP" ref="f6316c482668ad32e49bde4ecc93f937" args="(const char *fname)" -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>WriteSingleSHP</b> (const char *fname)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9755039974a543bcb0daaa1696681901"></a><!-- doxytag: member="Countries::WriteSHPPerCountry" ref="9755039974a543bcb0daaa1696681901" args="(const char *prefix)" -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>WriteSHPPerCountry</b> (const char *prefix)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6a715e310a142dff5a8e4b894e4114c2"></a><!-- doxytag: member="Countries::Free" ref="6a715e310a142dff5a8e4b894e4114c2" args="(bool progress_callback(int)=0)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Free</b> (bool progress_callback(int)=0)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a98940e6215b564fcd8ec2ab17ea8ac4"></a><!-- doxytag: member="Countries::ReadGCF" ref="a98940e6215b564fcd8ec2ab17ea8ac4" args="(const char *fname, bool progress_callback(int)=NULL)" -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>ReadGCF</b> (const char *fname, bool progress_callback(int)=NULL)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c7222b6eae0e08d099b260463a256709"></a><!-- doxytag: member="Countries::FindPlace" ref="c7222b6eae0e08d099b260463a256709" args="(const char *country, const char *place, DPoint2 &amp;point)" -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>FindPlace</b> (const char *country, const char *place, <a class="el" href="classDPoint2.html">DPoint2</a> &amp;point)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCountries.html#92569fa767041bd705a31a1bdd6b27bb">FindPlaceWithGuess</a> (const char *country, const char *place, <a class="el" href="classDPoint2.html">DPoint2</a> &amp;point, bool bUTF8=false)</td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1cafeb25fe618db945d5b68ef1e04f5e"></a><!-- doxytag: member="Countries::m_countries" ref="1cafeb25fe618db945d5b68ef1e04f5e" args="" --><a class="el" href="classvtArray.html">vtArray</a>&lt; Country * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>m_countries</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a74740ab247baeaa4f1f231e45678f33"></a><!-- doxytag: member="Countries::m_path" ref="a74740ab247baeaa4f1f231e45678f33" args="" --><a class="el" href="classvtString.html">vtString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>m_path</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class parses and utilizes a subset of the information from the GEOnet Names Server.<p>See <a href="http://earth-info.nga.mil/gns/html/">http://earth-info.nga.mil/gns/html/</a> for the description of the data and the raw data files.<p>From the 700 MB of raw source files, a compact 'GCF' file containing only the geographic coordinate and a single name string are extracted for each populated place.<p>The GCF (75 MB) can be then loaded and used for rough geocoding of international addresses <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="92569fa767041bd705a31a1bdd6b27bb"></a><!-- doxytag: member="Countries::FindPlaceWithGuess" ref="92569fa767041bd705a31a1bdd6b27bb" args="(const char *country, const char *place, DPoint2 &amp;point, bool bUTF8=false)" --><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 Countries::FindPlaceWithGuess           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>country</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>place</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>geo</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>bUTF8</em> = <code>false</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>Find a location given its country and placename. If successful, it returns true and places the coordinate in 'geo'.<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>country</em>&nbsp;</td><td>Country input </td></tr>    <tr><td valign="top"></td><td valign="top"><em>place</em>&nbsp;</td><td>Place intput - this is generally a town or city </td></tr>    <tr><td valign="top"></td><td valign="top"><em>geo</em>&nbsp;</td><td>If successful, receives the resulting point </td></tr>    <tr><td valign="top"></td><td valign="top"><em>bUTF8</em>&nbsp;</td><td>Important! If your country and place names are UTF8 strings, pass true. Otherwise they are assumed to be ANSI (western europe). </td></tr>  </table></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:54 2008 for vtdata library by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>

⌨️ 快捷键说明

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