📄 classvtprojection.html
字号:
<p>Get the projection as a text description. If the projection is Geographic or UTM, then a "simple" type string will be returned. For all other projection types, a WKT string is returned.<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>type</em> </td><td>A string buffer to contain the type of description. This buffer should be at least 7 characters long to contain either the word "simple" or "wkt".</td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string buffer to contain the full description. This buffer should be at least 2048 characters long to contain either a simple or WKT description. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ac9bf92d8cb40bea4617896148677b11"></a><!-- doxytag: member="vtProjection::GetUnits" ref="ac9bf92d8cb40bea4617896148677b11" 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">LinearUnits vtProjection::GetUnits </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return the kind of horizontal units used by the projection. This is also called "linear units."<p><dl compact><dt><b>Returns:</b></dt><dd><ul><li>LU_DEGREES - Arc Degrees</li><li>LU_METERS - Meters</li><li>LU_FEET_INT - Feet (International Foot)</li><li>LU_FEET_US - Feet (U.S. Survey Foot) </li></ul></dd></dl> </td> </tr></table><a class="anchor" name="c512de92d741ac8afdabeae997ed989d"></a><!-- doxytag: member="vtProjection::GetUTMZone" ref="c512de92d741ac8afdabeae997ed989d" 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">int vtProjection::GetUTMZone </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the UTM zone of the projection.<p><dl compact><dt><b>Returns:</b></dt><dd><ul><li>1 through 60 in the northern hemisphere</li></ul></dd></dl><ul><li>-1 through -60 for the southern hemisphere</li><li>0 if the projection is not UTM </li></ul> </td> </tr></table><a class="anchor" name="a81d22a5163a78c932ee90761ebb8af6"></a><!-- doxytag: member="vtProjection::GuessEPSGCode" ref="a81d22a5163a78c932ee90761ebb8af6" 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">int vtProjection::GuessEPSGCode </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Try to determine the EPSG code that corresponds to the current projection. This important capability is mysteriously absent from the underlying libraries (OGR, PROJ.4) so it is implemented here.<p><dl compact><dt><b>Returns:</b></dt><dd>An EPSG coordinate system code, or -1 if it couldn't be guessed. </dd></dl> </td> </tr></table><a class="anchor" name="ded1c5b2449aefb575ef928eb2347bbe"></a><!-- doxytag: member="vtProjection::operator!=" ref="ded1c5b2449aefb575ef928eb2347bbe" args="(const vtProjection &ref) 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">bool vtProjection::operator!= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classvtProjection.html">vtProjection</a> & </td> <td class="mdname1" valign="top" nowrap> <em>ref</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Inequality operator. </td> </tr></table><a class="anchor" name="a6cc3788a48c4b1fc74e4f1d833422a9"></a><!-- doxytag: member="vtProjection::operator=" ref="a6cc3788a48c4b1fc74e4f1d833422a9" args="(const vtProjection &ref)" --><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"><a class="el" href="classvtProjection.html">vtProjection</a> & vtProjection::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classvtProjection.html">vtProjection</a> & </td> <td class="mdname1" valign="top" nowrap> <em>ref</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Assignment operator. </td> </tr></table><a class="anchor" name="f128c88e4c3dadf4bbf478c45f4b3ab8"></a><!-- doxytag: member="vtProjection::operator==" ref="f128c88e4c3dadf4bbf478c45f4b3ab8" args="(const vtProjection &ref) 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">bool vtProjection::operator== </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classvtProjection.html">vtProjection</a> & </td> <td class="mdname1" valign="top" nowrap> <em>ref</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Equality operator. </td> </tr></table><a class="anchor" name="38ec7ac473e159b0a6d5e6100854e631"></a><!-- doxytag: member="vtProjection::ReadProjFile" ref="38ec7ac473e159b0a6d5e6100854e631" args="(const char *filename)" --><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 vtProjection::ReadProjFile </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Read the projection from a .prj file.<p>If the filename does not have the file extension ".prj", this method will look for a file which has the same name with a ".prj" extension.<p><dl compact><dt><b>Returns:</b></dt><dd>true if successful. </dd></dl> </td> </tr></table><a class="anchor" name="9ce80cb71e2a57a65559a6a6ca9ffef4"></a><!-- doxytag: member="vtProjection::SetDatum" ref="9ce80cb71e2a57a65559a6a6ca9ffef4" args="(int iDatum)" --><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">OGRErr vtProjection::SetDatum </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iDatum</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -