📄 classogrpoint.html
字号:
<td class="paramtype">int </td> <td class="paramname"> <em>nDimension</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Set the coordinate dimension.<p>This method sets the explicit coordinate dimension. Setting the coordinate dimension of a geometry to 2 should zero out any existing Z values. Setting the dimension of a geometry collection will not necessarily affect the children geometries.<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>nNewDimension</em> </td><td>New coordinate dimension value, either 2 or 3. </td></tr> </table></dl><p>Reimplemented from <a class="el" href="classOGRGeometry.html#79f84a2b948d511f28c47c47577dea49">OGRGeometry</a>.</div></div><p><a class="anchor" name="0eef5e2d9e0edeca0e0f06c7527facb4"></a><!-- doxytag: member="OGRPoint::setX" ref="0eef5e2d9e0edeca0e0f06c7527facb4" args="(double xIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::setX </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>xIn</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Assign point X coordinate.<p>There is no corresponding SFCOM method. </div></div><p><a class="anchor" name="b064eaaedb2140ed1410e7c2ce4ad1ca"></a><!-- doxytag: member="OGRPoint::setY" ref="b064eaaedb2140ed1410e7c2ce4ad1ca" args="(double yIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::setY </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>yIn</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Assign point Y coordinate.<p>There is no corresponding SFCOM method. </div></div><p><a class="anchor" name="4330c36258125d939a4ecbbc3bfe66ce"></a><!-- doxytag: member="OGRPoint::setZ" ref="4330c36258125d939a4ecbbc3bfe66ce" args="(double zIn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::setZ </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>zIn</em> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>Assign point Z coordinate. Setting a zero zIn value will make the point 2D, and setting a non-zero value will make the point 3D (wkbPoint|wkbZ).<p>There is no corresponding SFCOM method. </div></div><p><a class="anchor" name="4e04bfdd79cbf0c74d90ef20e99f13a3"></a><!-- doxytag: member="OGRPoint::Equals" ref="4e04bfdd79cbf0c74d90ef20e99f13a3" args="(OGRGeometry *) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRBoolean OGRPoint::Equals </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poOther</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Returns two if two geometries are equivalent.<p>This method is the same as the C function OGR_G_Equal().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if equivalent or FALSE otherwise. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#e751513a46c7e7b154796bfe494faf16">OGRGeometry</a>.</div></div><p><a class="anchor" name="0091bfd6873ac20e5f163a15d52d2a98"></a><!-- doxytag: member="OGRPoint::getGeometryName" ref="0091bfd6873ac20e5f163a15d52d2a98" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRPoint::getGeometryName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch WKT name for geometry type.<p>There is no SFCOM analog to this method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#18121f835b2fb724a0c1a87beb1a437a">OGR_G_GetGeometryName()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>name used for this geometry type in well known text format. The returned pointer is to a static internal string and should not be modified or freed. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#b9c97ddc4876f1aa563cc4c075bfb251">OGRGeometry</a>.</div></div><p><a class="anchor" name="678940f393575777a8e629e46b1292ab"></a><!-- doxytag: member="OGRPoint::getGeometryType" ref="678940f393575777a8e629e46b1292ab" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRwkbGeometryType OGRPoint::getGeometryType </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch geometry type.<p>Note that the geometry type may include the 2.5D flag. To get a 2D flattened version of the geometry type apply the wkbFlatten() macro to the return result.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#8fae58102f5c4a4cf2526e5ca8369a76">OGR_G_GetGeometryType()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the geometry type code. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#26fef0fc5e95c9e8e526922476c778bd">OGRGeometry</a>.</div></div><p><a class="anchor" name="351482d4852285a214ac1d55ec046356"></a><!-- doxytag: member="OGRPoint::transform" ref="351482d4852285a214ac1d55ec046356" args="(OGRCoordinateTransformation *poCT)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRPoint::transform </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> * </td> <td class="paramname"> <em>poCT</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Apply arbitrary coordinate transformation to geometry.<p>This method will transform the coordinates of a geometry from their current spatial reference system to a new target spatial reference system. Normally this means reprojecting the vectors, but it could include datum shifts, and changes of units.<p>Note that this method does not require that the geometry already have a spatial reference system. It will be assumed that they can be treated as having the source spatial reference system of the <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> object, and the actual SRS of the geometry will be ignored. On successful completion the output <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> of the <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> will be assigned to the geometry.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#59a5b3f954b11cfbf6e78807c28d6090">OGR_G_Transform()</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>poCT</em> </td><td>the transformation to apply.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or an error code. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#a9e8bfb3c2129f25cf622660f734e1ba">OGRGeometry</a>.</div></div><p><a class="anchor" name="efb1c9e09c101735d8617f30109b3685"></a><!-- doxytag: member="OGRPoint::flattenTo2D" ref="efb1c9e09c101735d8617f30109b3685" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRPoint::flattenTo2D </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#fdb7354b55c7448b60b44cd9e36073b8">OGR_G_FlattenTo2D()</a>. <p>Implements <a class="el" href="classOGRGeometry.html#aae1a2ced937a5900b2bfeb717bad6c9">OGRGeometry</a>.</div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="ogr__geometry_8h-source.html">ogr_geometry.h</a><li>ogrpoint.cpp</ul><hr>Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1.</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -