⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classogrgeometry.html

📁 gdal库的学习文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<p>Reimplemented in <a class="el" href="classOGRLinearRing.html#78d316c3e146dc8ee23a58336162d68a">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#f5f15a5673fde9522b4e70abdb9cec93">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#73648d3d592a8a804d160bf0c69648cc">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="79f84a2b948d511f28c47c47577dea49"></a><!-- doxytag: member="OGRGeometry::setCoordinateDimension" ref="79f84a2b948d511f28c47c47577dea49" args="(int nDimension)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRGeometry::setCoordinateDimension           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nNewDimension</em>          </td>          <td>&nbsp;)&nbsp;</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>&nbsp;</td><td>New coordinate dimension value, either 2 or 3. </td></tr>  </table></dl><p>Reimplemented in <a class="el" href="classOGRPoint.html#b1bdccd2a5fe4886a07f345d9af94b28">OGRPoint</a>, <a class="el" href="classOGRLineString.html#ed2edaf7e5af02f2724ec073f0957ee0">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#ae4be814a04641d5ad9f8c79e00b3c35">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#815199fda3d141eb52e7237dafade6fe">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="4308e3549c65aa12cc2ba41be15d99a0"></a><!-- doxytag: member="OGRGeometry::assignSpatialReference" ref="4308e3549c65aa12cc2ba41be15d99a0" args="(OGRSpatialReference *poSR)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRGeometry::assignSpatialReference           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *&nbsp;</td>          <td class="paramname"> <em>poSR</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Assign spatial reference to this object. Any existing spatial reference is replaced, but under no circumstances does this result in the object being reprojected. It is just changing the interpretation of the existing geometry. Note that assigning a spatial reference increments the reference count on the <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a>, but does not copy it.<p>This is similar to the SFCOM IGeometry::put_SpatialReference() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#4dfbd5861e1cd20b372d090539fa4536">OGR_G_AssignSpatialReference()</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>poSR</em>&nbsp;</td><td>new spatial reference system to apply. </td></tr>  </table></dl></div></div><p><a class="anchor" name="66a53c103e37c6d1ead00d2d74586ddd"></a><!-- doxytag: member="OGRGeometry::getSpatialReference" ref="66a53c103e37c6d1ead00d2d74586ddd" args="(void) const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> * OGRGeometry::getSpatialReference           </td>          <td>(</td>          <td class="paramtype">void&nbsp;</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p>Returns spatial reference system for object.<p>This method relates to the SFCOM IGeometry::get_SpatialReference() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#bc393e40282eec3801fb4a4abc9e25bf">OGR_G_GetSpatialReference()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>a reference to the spatial reference object. The object may be shared with many geometry objects, and should not be modified. </dd></dl></div></div><p><a class="anchor" name="a9e8bfb3c2129f25cf622660f734e1ba"></a><!-- doxytag: member="OGRGeometry::transform" ref="a9e8bfb3c2129f25cf622660f734e1ba" args="(OGRCoordinateTransformation *poCT)=0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRErr OGRGeometry::transform           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> *&nbsp;</td>          <td class="paramname"> <em>poCT</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [pure 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>&nbsp;</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>Implemented in <a class="el" href="classOGRPoint.html#351482d4852285a214ac1d55ec046356">OGRPoint</a>, <a class="el" href="classOGRLineString.html#75675b1f158fd1d5d35cc431227ed000">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a974efb0dd2bdc7b62fa23dfdc4f8c72">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#39e5d3d2fbfbfccd7cdf5275f0373816">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="e3f0b441fbf2f66ce3ef3571268ab10f"></a><!-- doxytag: member="OGRGeometry::transformTo" ref="e3f0b441fbf2f66ce3ef3571268ab10f" args="(OGRSpatialReference *poSR)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRErr OGRGeometry::transformTo           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *&nbsp;</td>          <td class="paramname"> <em>poSR</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Transform geometry to new spatial reference system.<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>This method will only work if the geometry already has an assigned spatial reference system, and if it is transformable to the target coordinate system.<p>Because this method requires internal creation and initialization of an <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> object it is significantly more expensive to use this method to transform many geometries than it is to create the <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> in advance, and call <a class="el" href="classOGRGeometry.html#a9e8bfb3c2129f25cf622660f734e1ba">transform()</a> with that transformation. This method exists primarily for convenience when only transforming a single geometry.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#43af4c2127cea0a5059692a62c0feb63">OGR_G_TransformTo()</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>poSR</em>&nbsp;</td><td>spatial reference system to transform to.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success, or an error code. </dd></dl></div></div><p><a class="anchor" name="0829528c9ca29059f86399da954fc8ae"></a><!-- doxytag: member="OGRGeometry::Intersects" ref="0829528c9ca29059f86399da954fc8ae" args="(OGRGeometry *) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRBoolean OGRGeometry::Intersects           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td>          <td class="paramname"> <em>poOtherGeom</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Do these features intersect?<p>Determines whether two geometries intersect. If GEOS is enabled, then this is done in rigerous fashion otherwise TRUE is returned if the envelopes (bounding boxes) of the two features overlap.<p>The poOtherGeom argument may be safely NULL, but in this case the method will always return TRUE. That is, a NULL geometry is treated as being everywhere.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#caed6926b75cd33a42b284c10def6e87">OGR_G_Intersects()</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>poOtherGeom</em>&nbsp;</td><td>the other geometry to test against.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the geometries intersect, otherwise FALSE. </dd></dl></div></div><p><a class="anchor" name="e751513a46c7e7b154796bfe494faf16"></a><!-- doxytag: member="OGRGeometry::Equals" ref="e751513a46c7e7b154796bfe494faf16" args="(OGRGeometry *) const =0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int OGRGeometry::Equals           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td>          <td class="paramname"> <em>poOtherGeom</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#4e04bfdd79cbf0c74d90ef20e99f13a3">OGRPoint</a>, <a class="el" href="classOGRLineString.html#8568a09caf084295b39df28c31586c01">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#5daaf7cbfb1263a4b9fc126f5c51cf37">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#e25defac0e02404820e7a8b6dc712f44">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="45f683761d57c8bea40e4ca1d832760a"></a><!-- doxytag: member="OGRGeometry::Disjoint" ref="45f683761d57c8bea40e4ca1d832760a" args="(const OGRGeometry *) const " --><div class="memitem"><div class="memproto">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -