📄 classogrspatialreference.html
字号:
</tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Export coordinate system in USGS GCTP projection definition.<p>This method is the equivalent of the C function OSRExportToUSGS().<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>piProjSys</em> </td><td>Pointer to variable, where the projection system code will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>piZone</em> </td><td>Pointer to variable, where the zone for UTM and State Plane projection systems will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>ppadfPrjParams</em> </td><td>Pointer to which dynamically allocated array of 15 projection parameters will be assigned. See <a class="el" href="classOGRSpatialReference.html#ed106d3ccdc442209637b4368af0b370">importFromUSGS()</a> for the list of parameters. Caller responsible to free this array.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or an error code on failure. </dd></dl></div></div><p><a class="anchor" name="c5f720abd34b10cfcf99026279829d3b"></a><!-- doxytag: member="OGRSpatialReference::exportToPanorama" ref="c5f720abd34b10cfcf99026279829d3b" args="(long *, long *, long *, long *, double *, double *, double *, double *) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::exportToPanorama </td> <td>(</td> <td class="paramtype">long * </td> <td class="paramname"> <em>piProjSys</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long * </td> <td class="paramname"> <em>piDatum</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long * </td> <td class="paramname"> <em>piEllips</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long * </td> <td class="paramname"> <em>piZone</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double * </td> <td class="paramname"> <em>pdfStdP1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double * </td> <td class="paramname"> <em>pdfStdP2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double * </td> <td class="paramname"> <em>pdfCenterLat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double * </td> <td class="paramname"> <em>pdfCenterLong</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Export coordinate system in "Panorama" GIS projection definition.<p>This method is the equivalent of the C function OSRExportToPanorama().<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>piProjSys</em> </td><td>Pointer to variable, where the projection system code will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>piDatum</em> </td><td>Pointer to variable, where the coordinate system code will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>piEllips</em> </td><td>Pointer to variable, where the spheroid code will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>piZone</em> </td><td>Pointer to variable, where the zone for UTM projection system will be returned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>pdfStdP1</em> </td><td>Pointer to variable, where the latitude of the first standard parallel will be returned (radians).</td></tr> <tr><td valign="top"></td><td valign="top"><em>pdfStdP2</em> </td><td>Pointer to variable, where the latitude of the second standard parallel will be returned (radians).</td></tr> <tr><td valign="top"></td><td valign="top"><em>pdfCenterLat</em> </td><td>Pointer to variable, where the latitude of center of projection will be returned (radians).</td></tr> <tr><td valign="top"></td><td valign="top"><em>pdfCenterLong</em> </td><td>Pointer to variable, where the longitude of center of projection will be returned (radians).</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or an error code on failure. </dd></dl></div></div><p><a class="anchor" name="b74cfc985bd05404a4c61d2d633a6343"></a><!-- doxytag: member="OGRSpatialReference::importFromWkt" ref="b74cfc985bd05404a4c61d2d633a6343" args="(char **)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::importFromWkt </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszInput</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Import from WKT string.<p>This method will wipe the existing SRS definition, and reassign it based on the contents of the passed WKT string. Only as much of the input string as needed to construct this SRS is consumed from the input string, and the input string pointer is then updated to point to the remaining (unused) input.<p>This method is the same as the C function OSRImportFromWkt().<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>ppszInput</em> </td><td>Pointer to pointer to input. The pointer is updated to point to remaining unused input text.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE if import succeeds, or OGRERR_CORRUPT_DATA if it fails for any reason. </dd></dl></div></div><p><a class="anchor" name="f1a29550373c2c14bd11514641e58e7c"></a><!-- doxytag: member="OGRSpatialReference::importFromProj4" ref="f1a29550373c2c14bd11514641e58e7c" args="(const char *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::importFromProj4 </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>pszProj4</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Import PROJ.4 coordinate string.<p>The <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> is initialized from the passed PROJ.4 style coordinate system string. In addition to many +proj formulations which have OGC equivelents, it is also possible to import "+init=epsg:n" style definitions. These are passed to <a class="el" href="classOGRSpatialReference.html#8a5b8c9a205eedc6b88a14aa0c219969">importFromEPSG()</a>. Other init strings (such as the state plane zones) are not currently supported.<p>Example: pszProj4 = "+proj=utm +zone=11 +datum=WGS84"<p>This method is the equivelent of the C function OSRImportFromProj4().<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>pszProj4</em> </td><td>the PROJ.4 style string.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or OGRERR_CORRUPT_DATA on failure. </dd></dl></div></div><p><a class="anchor" name="8a5b8c9a205eedc6b88a14aa0c219969"></a><!-- doxytag: member="OGRSpatialReference::importFromEPSG" ref="8a5b8c9a205eedc6b88a14aa0c219969" args="(int)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::importFromEPSG </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>nCode</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -