📄 classvtprojection.html
字号:
<td> </td> <td><p>Set the datum to an EPSG Datum code, a value in the range (6120 - 6904).<p>Here are the codes for some of the better-known datums:<ul><li>NAD27 6267</li><li>NAD83 6269</li><li>WGS84 6326 </li></ul> </td> </tr></table><a class="anchor" name="c54c3ec4c36206816ffb6b8e4c98e3a9"></a><!-- doxytag: member="vtProjection::SetGeogCSFromDatum" ref="c54c3ec4c36206816ffb6b8e4c98e3a9" 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::SetGeogCSFromDatum </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> <td> </td> <td><p>Set the projection to a fresh, new geographical coordinate system based on the indicated Datum. </td> </tr></table><a class="anchor" name="467fd1613be10b952ba5970fa1ec2fd8"></a><!-- doxytag: member="vtProjection::SetProjectionSimple" ref="467fd1613be10b952ba5970fa1ec2fd8" args="(bool bUTM, int iUTMZone, 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">bool vtProjection::SetProjectionSimple </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname" nowrap> <em>bUTM</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iUTMZone</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iDatum</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Convenient way to set a simple projection.<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>bUTM</em> </td><td>true for UTM, false for Geographic. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iUTMZone</em> </td><td>If UTM, this is the zone: 1 through 60 in the northern hemisphere, -1 through -60 for the southern hemisphere. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iDatum</em> </td><td>The Datum as either an old USGS code or an EPSG code </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="d1f275b40ebce95c287495d27cd1b824"></a><!-- doxytag: member="vtProjection::SetSpatialReference" ref="d1f275b40ebce95c287495d27cd1b824" args="(OGRSpatialReference *pRef)" --><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">void vtProjection::SetSpatialReference </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">OGRSpatialReference * </td> <td class="mdname1" valign="top" nowrap> <em>pRef</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>Set the projection by copying from a OGRSpatialReference. </td> </tr></table><a class="anchor" name="74319ac3b6fa6e2f11009bfbc9fb6b54"></a><!-- doxytag: member="vtProjection::SetTextDescription" ref="74319ac3b6fa6e2f11009bfbc9fb6b54" args="(const char *type, const char *value)" --><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::SetTextDescription </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>type</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>value</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the projection using a text description.<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>The type of description, either "simple" for short simple string, or "wkt" for a full-length WKT (Well-Known Text) description.</td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The description itself. A WKT description should be a single string, with no extra whitespace. A simple string can have the following forms:<ul><li>geo, datum D</li><li>utm, datum D, zone Z</li></ul></td></tr> </table></dl><dl compact><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> proj.SetTextDescription(<span class="stringliteral">"simple"</span>, <span class="stringliteral">"utm, datum WGS_84, zone 11"</span>);</pre></div> </dd></dl> </td> </tr></table><a class="anchor" name="530f529e2a0152eea2e03f3b5165942e"></a><!-- doxytag: member="vtProjection::SetUTMZone" ref="530f529e2a0152eea2e03f3b5165942e" args="(int iZone)" --><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">void vtProjection::SetUTMZone </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iZone</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>Get the UTM zone of the projection.<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>iZone</em> </td><td>Should be one of the following values:<ul><li>1 through 60 for the northern hemisphere</li><li>-1 through -60 for the southern hemisphere </li></ul></td></tr> </table></dl> </td> </tr></table><a class="anchor" name="12ba5c50c8136299ab6c9b1bbac8d964"></a><!-- doxytag: member="vtProjection::WriteProjFile" ref="12ba5c50c8136299ab6c9b1bbac8d964" args="(const char *filename) 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::WriteProjFile </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> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Write the projection to a .prj file.<p><dl compact><dt><b>Returns:</b></dt><dd>true if successful. </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:55 2008 for vtdata library by <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -