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

📄 classogrpolygon.html

📁 gdal库的学习文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <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="4e2a4414af5e8a0bf2901b408d29e345"></a><!-- doxytag: member="OGRPolygon::getEnvelope" ref="4e2a4414af5e8a0bf2901b408d29e345" args="(OGREnvelope *psEnvelope) const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRPolygon::getEnvelope           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> *&nbsp;</td>          <td class="paramname"> <em>psEnvelope</em>          </td>          <td>&nbsp;)&nbsp;</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>&nbsp;</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="5daaf7cbfb1263a4b9fc126f5c51cf37"></a><!-- doxytag: member="OGRPolygon::Equals" ref="5daaf7cbfb1263a4b9fc126f5c51cf37" args="(OGRGeometry *) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRBoolean OGRPolygon::Equals           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td>          <td class="paramname"> <em>poOther</em>          </td>          <td>&nbsp;)&nbsp;</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="ae4be814a04641d5ad9f8c79e00b3c35"></a><!-- doxytag: member="OGRPolygon::setCoordinateDimension" ref="ae4be814a04641d5ad9f8c79e00b3c35" args="(int nDimension)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRPolygon::setCoordinateDimension           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nDimension</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 from <a class="el" href="classOGRGeometry.html#79f84a2b948d511f28c47c47577dea49">OGRGeometry</a>.</div></div><p><a class="anchor" name="6a2400d013a7538169b6f610499d9e30"></a><!-- doxytag: member="OGRPolygon::addRing" ref="6a2400d013a7538169b6f610499d9e30" args="(OGRLinearRing *)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRPolygon::addRing           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *&nbsp;</td>          <td class="paramname"> <em>poNewRing</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Add a ring to a polygon.<p>If the polygon has no external ring (it is empty) this will be used as the external ring, otherwise it is used as an internal ring. The passed <a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> remains the responsibility of the caller (an internal copy is made).<p>This method has no SFCOM analog.<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>poNewRing</em>&nbsp;</td><td>ring to be added to the polygon. </td></tr>  </table></dl></div></div><p><a class="anchor" name="17f7fca852efca8155fba7cbad7572c0"></a><!-- doxytag: member="OGRPolygon::addRingDirectly" ref="17f7fca852efca8155fba7cbad7572c0" args="(OGRLinearRing *)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRPolygon::addRingDirectly           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *&nbsp;</td>          <td class="paramname"> <em>poNewRing</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Add a ring to a polygon.<p>If the polygon has no external ring (it is empty) this will be used as the external ring, otherwise it is used as an internal ring. Ownership of the passed ring is assumed by the <a class="el" href="classOGRPolygon.html">OGRPolygon</a>, but otherwise this method operates the same as OGRPolygon::AddRing().<p>This method has no SFCOM analog.<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>poNewRing</em>&nbsp;</td><td>ring to be added to the polygon. </td></tr>  </table></dl></div></div><p><a class="anchor" name="d4ba927fb74871bf029e6a3efec3586c"></a><!-- doxytag: member="OGRPolygon::getExteriorRing" ref="d4ba927fb74871bf029e6a3efec3586c" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> * OGRPolygon::getExteriorRing           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch reference to external polygon ring.<p>Note that the returned ring pointer is to an internal data object of the <a class="el" href="classOGRPolygon.html">OGRPolygon</a>. It should not be modified or deleted by the application, and the pointer is only valid till the polygon is next modified. Use the <a class="el" href="classOGRGeometry.html#f2fe60f2bde104cb3eef16475f3f3cd8">OGRGeometry::clone()</a> method to make a separate copy within the application.<p>Relates to the SFCOM IPolygon::get_ExteriorRing() method.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to external ring. May be NULL if the <a class="el" href="classOGRPolygon.html">OGRPolygon</a> is empty. </dd></dl></div></div><p><a class="anchor" name="a2299b4634f5c1d5468475ec5ab8ce12"></a><!-- doxytag: member="OGRPolygon::getNumInteriorRings" ref="a2299b4634f5c1d5468475ec5ab8ce12" args="() const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">int OGRPolygon::getNumInteriorRings           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const</td>        </tr>      </table></div><div class="memdoc"><p>Fetch the number of internal rings.<p>Relates to the SFCOM IPolygon::get_NumInteriorRings() method.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>count of internal rings, zero or more. </dd></dl></div></div><p><a class="anchor" name="f0bf0b1d1104e142b47637659518ad9c"></a><!-- doxytag: member="OGRPolygon::getInteriorRing" ref="f0bf0b1d1104e142b47637659518ad9c" args="(int)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> * OGRPolygon::getInteriorRing           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>iRing</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Fetch reference to indicated internal ring.<p>Note that the returned ring pointer is to an internal data object of the <a class="el" href="classOGRPolygon.html">OGRPolygon</a>. It should not be modified or deleted by the application, and the pointer is only valid till the polygon is next modified. Use the <a class="el" href="classOGRGeometry.html#f2fe60f2bde104cb3eef16475f3f3cd8">OGRGeometry::clone()</a> method to make a separate copy within the application.<p>Relates to the SFCOM IPolygon::get_InternalRing() method.<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>iRing</em>&nbsp;</td><td>internal ring index from 0 to getNumInternalRings() - 1.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>pointer to external ring. May be NULL if the <a class="el" href="classOGRPolygon.html">OGRPolygon</a> is empty. </dd></dl></div></div><p><a class="anchor" name="f5f15a5673fde9522b4e70abdb9cec93"></a><!-- doxytag: member="OGRPolygon::closeRings" ref="f5f15a5673fde9522b4e70abdb9cec93" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRPolygon::closeRings           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Force rings to be closed.<p>If this geometry, or any contained geometries has polygon rings that are not closed, they will be closed by adding the starting point at the end. <p>Reimplemented from <a class="el" href="classOGRGeometry.html#eb6cf249316b3046e0d4f77ec400e844">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>ogrpolygon.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 + -