📄 classogrspatialreference.html
字号:
</div></div><p><a class="anchor" name="ef9a8378c266604b9cd09042597a649f"></a><!-- doxytag: member="OGRSpatialReference::Release" ref="ef9a8378c266604b9cd09042597a649f" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRSpatialReference::Release </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Decrements the reference count by one, and destroy if zero.<p>The method does the same thing as the C function OSRRelease(). </div></div><p><a class="anchor" name="b738947da46ab6013017de17d6e41b33"></a><!-- doxytag: member="OGRSpatialReference::Clone" ref="b738947da46ab6013017de17d6e41b33" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> * OGRSpatialReference::Clone </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Make a duplicate of this <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a>.<p>This method is the same as the C function OSRClone().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>a new SRS, which becomes the responsibility of the caller. </dd></dl></div></div><p><a class="anchor" name="596b8e527d66a5054408159f0006fdac"></a><!-- doxytag: member="OGRSpatialReference::exportToWkt" ref="596b8e527d66a5054408159f0006fdac" args="(char **) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::exportToWkt </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszResult</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Convert this SRS into WKT format.<p>Note that the returned WKT string should be freed with OGRFree() or CPLFree() when no longer needed. It is the responsibility of the caller.<p>This method is the same as the C function OSRExportToWkt().<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>ppszResult</em> </td><td>the resulting string is returned in this pointer.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>currently OGRERR_NONE is always returned, but the future it is possible error conditions will develop. </dd></dl></div></div><p><a class="anchor" name="28bd9b81856b6a93861576fff0933bb9"></a><!-- doxytag: member="OGRSpatialReference::exportToProj4" ref="28bd9b81856b6a93861576fff0933bb9" args="(char **) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::exportToProj4 </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszProj4</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Export coordinate system in PROJ.4 format.<p>Converts the loaded coordinate reference system into PROJ.4 format to the extent possible. The string returned in ppszProj4 should be deallocated by the caller with CPLFree() when no longer needed.<p>LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with OGRERR_NONE.<p>This method is the equivelent of the C function OSRExportToProj4().<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>ppszProj4</em> </td><td>pointer to which dynamically allocated PROJ.4 definition will be assigned.</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="d91c0f34ebfe6fd08001ced4d805b201"></a><!-- doxytag: member="OGRSpatialReference::exportToPCI" ref="d91c0f34ebfe6fd08001ced4d805b201" args="(char **, char **, double **) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::exportToPCI </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszProj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszUnits</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double ** </td> <td class="paramname"> <em>ppadfPrjParams</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 PCI projection definition.<p>Converts the loaded coordinate reference system into PCI projection definition to the extent possible. The strings returned in ppszProj, ppszUnits and ppadfPrjParams array should be deallocated by the caller with CPLFree() when no longer needed.<p>LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with OGRERR_NONE.<p>This method is the equivelent of the C function OSRExportToPCI().<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>ppszProj</em> </td><td>pointer to which dynamically allocated PCI projection definition will be assigned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>ppszUnits</em> </td><td>pointer to which dynamically allocated units definition will be assigned.</td></tr> <tr><td valign="top"></td><td valign="top"><em>ppadfPrjParams</em> </td><td>pointer to which dynamically allocated array of 17 projection parameters will be assigned. See <a class="el" href="classOGRSpatialReference.html#52f1557adb638b64487afd9c430148f4">importFromPCI()</a> for the list of parameters.</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="04ab13a2ec4ceffd6f802422f95e8f15"></a><!-- doxytag: member="OGRSpatialReference::exportToUSGS" ref="04ab13a2ec4ceffd6f802422f95e8f15" args="(long *, long *, double **, long *) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRSpatialReference::exportToUSGS </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>piZone</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double ** </td> <td class="paramname"> <em>ppadfPrjParams</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long * </td> <td class="paramname"> <em>piDatum</em></td><td> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -