📄 classogrpoint.html
字号:
<div class="memdoc"><p>Assign geometry from well known text data.<p>The object must have already been instantiated as the correct derived type of geometry object to match the text type. This method is used by the <a class="el" href="classOGRGeometryFactory.html">OGRGeometryFactory</a> class, but not normally called by application code.<p>This method relates to the SFCOM IWks::ImportFromWKT() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#4286ba243fb05a831a49f52aabcbc6f8">OGR_G_ImportFromWkt()</a>.<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 a pointer to the source text. The pointer is updated to pointer after the consumed text.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE if all goes well, otherwise any of OGRERR_NOT_ENOUGH_DATA, OGRERR_UNSUPPORTED_GEOMETRY_TYPE, or OGRERR_CORRUPT_DATA may be returned. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#30561a301d44b1f90393ea4a78a5b0a5">OGRGeometry</a>.</div></div><p><a class="anchor" name="95d5d32b27fc3954bde2adec9183fac1"></a><!-- doxytag: member="OGRPoint::exportToWkt" ref="95d5d32b27fc3954bde2adec9183fac1" args="(char **ppszDstText) const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRPoint::exportToWkt </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszDstText</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Convert a geometry into well known text format.<p>This method relates to the SFCOM IWks::ExportToWKT() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#3bc9310302e2dbfaab1690de9e2fd2fb">OGR_G_ExportToWkt()</a>.<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>ppszDstText</em> </td><td>a text buffer is allocated by the program, and assigned to the passed pointer.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Currently OGRERR_NONE is always returned. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#71184265101d21cffa5c50ee79afdd61">OGRGeometry</a>.</div></div><p><a class="anchor" name="655377ca0daa357cc02b55c53e34ddef"></a><!-- doxytag: member="OGRPoint::getDimension" ref="655377ca0daa357cc02b55c53e34ddef" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRPoint::getDimension </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Get the dimension of this object.<p>This method corresponds to the SFCOM IGeometry::GetDimension() method. It indicates the dimension of the object, but does not indicate the dimension of the underlying space (as indicated by <a class="el" href="classOGRGeometry.html#4a6fdd4df7c043558b5428d8f1c35b16">OGRGeometry::getCoordinateDimension()</a>).<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#94b633e1acd208c258ad49f8d4fd4104">OGR_G_GetDimension()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>0 for points, 1 for lines and 2 for surfaces. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#266c427f00ea35fdc503393c210a115d">OGRGeometry</a>.</div></div><p><a class="anchor" name="f177b24b8fec7b547ded9c0c7636e032"></a><!-- doxytag: member="OGRPoint::clone" ref="f177b24b8fec7b547ded9c0c7636e032" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRPoint::clone </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Make a copy of this object.<p>This method relates to the SFCOM IGeometry::clone() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#1725918932da7d59f9ee72829ac171fa">OGR_G_Clone()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>a new object instance with the same geometry, and spatial reference system as the original. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#f2fe60f2bde104cb3eef16475f3f3cd8">OGRGeometry</a>.</div></div><p><a class="anchor" name="3f4973eec2851ff655b61c600f8bf2f9"></a><!-- doxytag: member="OGRPoint::empty" ref="3f4973eec2851ff655b61c600f8bf2f9" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::empty </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Clear geometry information. This restores the geometry to it's initial state after construction, and before assignment of actual geometry.<p>This method relates to the SFCOM IGeometry::Empty() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#90cc83b0a3052b8fbe2ed77a86323bf2">OGR_G_Empty()</a>. <p>Implements <a class="el" href="classOGRGeometry.html#1702b5b8142abe761061a6cd44e50b05">OGRGeometry</a>.</div></div><p><a class="anchor" name="fde5e07207bccc3e1c5a9170fa03421c"></a><!-- doxytag: member="OGRPoint::getEnvelope" ref="fde5e07207bccc3e1c5a9170fa03421c" args="(OGREnvelope *psEnvelope) const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::getEnvelope </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> * </td> <td class="paramname"> <em>psEnvelope</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#617a9c9ea85157661619a1d8f0a69cf9">OGR_G_GetEnvelope()</a>.<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>psEnvelope</em> </td><td>the structure in which to place the results. </td></tr> </table></dl><p>Implements <a class="el" href="classOGRGeometry.html#a3d42b06ae6f7bbef6d1a2886da8d398">OGRGeometry</a>.</div></div><p><a class="anchor" name="5170ea70ce7458059e4395f852fce687"></a><!-- doxytag: member="OGRPoint::getX" ref="5170ea70ce7458059e4395f852fce687" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">double OGRPoint::getX </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch X coordinate.<p>Relates to the SFCOM IPoint::get_X() method.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the X coordinate of this point. </dd></dl></div></div><p><a class="anchor" name="dbb341223a71d4563315a587f0454f66"></a><!-- doxytag: member="OGRPoint::getY" ref="dbb341223a71d4563315a587f0454f66" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">double OGRPoint::getY </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch Y coordinate.<p>Relates to the SFCOM IPoint::get_Y() method.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the Y coordinate of this point. </dd></dl></div></div><p><a class="anchor" name="ccb9ac6df25779eb10381231cd411374"></a><!-- doxytag: member="OGRPoint::getZ" ref="ccb9ac6df25779eb10381231cd411374" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">double OGRPoint::getZ </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch Z coordinate.<p>Relates to the SFCOM IPoint::get_Z() method.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the Z coordinate of this point, or zero if it is a 2D point. </dd></dl></div></div><p><a class="anchor" name="b1bdccd2a5fe4886a07f345d9af94b28"></a><!-- doxytag: member="OGRPoint::setCoordinateDimension" ref="b1bdccd2a5fe4886a07f345d9af94b28" args="(int nDimension)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::setCoordinateDimension </td> <td>(</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -