Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7fd7c575020aa78a8e2e309ea8909f43 > files > 763

gdal-1.6.2-6.fc13.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OGR: OGRPolygon Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>OGRPolygon Class Reference</h1><!-- doxytag: class="OGRPolygon" --><!-- doxytag: inherits="OGRSurface" -->
<p><code>#include &lt;<a class="el" href="ogr__geometry_8h_source.html">ogr_geometry.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for OGRPolygon:</div>
<div class="dynsection">
 <div class="center">
  <img src="classOGRPolygon.png" usemap="#OGRPolygon_map" alt=""/>
  <map id="OGRPolygon_map" name="OGRPolygon_map">
<area href="classOGRSurface.html" alt="OGRSurface" shape="rect" coords="0,56,93,80"/>
<area href="classOGRGeometry.html" alt="OGRGeometry" shape="rect" coords="0,0,93,24"/>
</map>
 </div>
</div>

<p><a href="classOGRPolygon-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a6142a7ee45f6bf7a3a189fa978437913">OGRPolygon</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a12ddd81003dfabd7d3c977c41fa5f506">getGeometryName</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a">OGRwkbGeometryType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a2e23fcc24129c50c2245f707938fdf4d">getGeometryType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a723ac02b4551c683ab7ad88e6616c16b">clone</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a8e8ea1eb8916cf60a69650fd3a9025f9">empty</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#aa974efb0dd2bdc7b62fa23dfdc4f8c72">transform</a> (<a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> *poCT)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a3b8a81f9742e981c242668d2d4d4a69d">flattenTo2D</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a1e14ee632878f6af3a4c93d7bf82a433">IsEmpty</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a51fa8080389d47784fdb6a8ae097b5fa">segmentize</a> (double dfMaxLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ad8ba9b796aafc593f5bd7bcf1086bc3d">get_Area</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ad12bc18f6f0f7c0209c26f5e4cd9eadc">Centroid</a> (<a class="el" href="classOGRPoint.html">OGRPoint</a> *poPoint) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a76e64f21cd31a6256cc425a6b5639069">PointOnSurface</a> (<a class="el" href="classOGRPoint.html">OGRPoint</a> *poPoint) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ad8193c4d42032c4106bdccb907bc66ab">WkbSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a46b833f19bf35fcea113233310a245ce">importFromWkb</a> (unsigned char *, int=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a7e765a5baad9e764146cbb0716bb0d9e">exportToWkb</a> (OGRwkbByteOrder, unsigned char *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a84d3b6e0ee2b098528a537bb874b4856">importFromWkt</a> (char **)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ade6a6d5d628f3ad57d0ce9dca8e26618">exportToWkt</a> (char **ppszDstText) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ad395f8c5a45dfa639b3c9aa71a303fae">getDimension</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a00a97e4a76eafe94b5cbb9d52d722457">getEnvelope</a> (<a class="el" href="classOGREnvelope.html">OGREnvelope</a> *psEnvelope) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a5daaf7cbfb1263a4b9fc126f5c51cf37">Equals</a> (<a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#aae4be814a04641d5ad9f8c79e00b3c35">setCoordinateDimension</a> (int nDimension)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a6a2400d013a7538169b6f610499d9e30">addRing</a> (<a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a17f7fca852efca8155fba7cbad7572c0">addRingDirectly</a> (<a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#ad4ba927fb74871bf029e6a3efec3586c">getExteriorRing</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#a3b996195adcf9fcd4f33570a37753dde">getNumInteriorRings</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOGRLinearRing.html">OGRLinearRing</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#af0bf0b1d1104e142b47637659518ad9c">getInteriorRing</a> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRPolygon.html#af5f15a5673fde9522b4e70abdb9cec93">closeRings</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Concrete class representing polygons.</p>
<p>Note that the OpenGIS simple features polygons consist of one outer ring, and zero or more inner rings. A polygon cannot represent disconnected regions (such as multiple islands in a political body). The <a class="el" href="classOGRMultiPolygon.html">OGRMultiPolygon</a> must be used for this. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6142a7ee45f6bf7a3a189fa978437913"></a><!-- doxytag: member="OGRPolygon::OGRPolygon" ref="a6142a7ee45f6bf7a3a189fa978437913" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRPolygon::OGRPolygon </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create an empty polygon. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6a2400d013a7538169b6f610499d9e30"></a><!-- doxytag: member="OGRPolygon::addRing" ref="a6a2400d013a7538169b6f610499d9e30" 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></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add a ring to a polygon.</p>
<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>
<p>This method has no SFCOM analog.</p>
<dl><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>
  </dd>
</dl>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>.</p>

<p>Referenced by <a class="el" href="ogrpolygon_8cpp_source.html#l00066">clone()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00487">OGRGeometryFactory::forceToPolygon()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00875">OGRGeometryFactory::organizePolygons()</a>, and <a class="el" href="ogrlayer_8cpp_source.html#l00636">OGRLayer::SetSpatialFilterRect()</a>.</p>

</div>
</div>
<a class="anchor" id="a17f7fca852efca8155fba7cbad7572c0"></a><!-- doxytag: member="OGRPolygon::addRingDirectly" ref="a17f7fca852efca8155fba7cbad7572c0" 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></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add a ring to a polygon.</p>
<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>
<p>This method has no SFCOM analog.</p>
<dl><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>
  </dd>
</dl>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometryfactory_8cpp_source.html#l01415">OGRGeometryFactory::createFromFgf()</a>, <a class="el" href="ogrmultipolygon_8cpp_source.html#l00107">OGRMultiPolygon::importFromWkt()</a>, and <a class="el" href="ograssemblepolygon_8cpp_source.html#l00132">OGRBuildPolygonFromEdges()</a>.</p>

</div>
</div>
<a class="anchor" id="ad12bc18f6f0f7c0209c26f5e4cd9eadc"></a><!-- doxytag: member="OGRPolygon::Centroid" ref="ad12bc18f6f0f7c0209c26f5e4cd9eadc" args="(OGRPoint *poPoint) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRPolygon::Centroid </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOGRPoint.html">OGRPoint</a> *&nbsp;</td>
          <td class="paramname"> <em>poPoint</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compute the polygon centroid.</p>
<p>The centroid location is applied to the passed in <a class="el" href="classOGRPoint.html">OGRPoint</a> object.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or OGRERR_FAILURE on error. </dd></dl>

<p>Implements <a class="el" href="classOGRSurface.html#a3f662a2a483477b83224e02be6fde080">OGRSurface</a>.</p>

<p>References <a class="el" href="ogrpoint_8cpp_source.html#l00130">OGRPoint::getGeometryType()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00188">OGRPoint::getX()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00189">OGRPoint::getY()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00194">OGRPoint::setX()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00195">OGRPoint::setY()</a>, and <a class="el" href="ogr__core_8h_source.html#l00147">wkbPoint</a>.</p>

</div>
</div>
<a class="anchor" id="a723ac02b4551c683ab7ad88e6616c16b"></a><!-- doxytag: member="OGRPolygon::clone" ref="a723ac02b4551c683ab7ad88e6616c16b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRPolygon::clone </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Make a copy of this object.</p>
<p>This method relates to the SFCOM IGeometry::clone() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a1725918932da7d59f9ee72829ac171fa">OGR_G_Clone()</a>.</p>
<dl class="return"><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#af4cf9f6eee1997268a481b39401c3161">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrpolygon_8cpp_source.html#l00261">addRing()</a>, <a class="el" href="ogrgeometry_8cpp_source.html#l00228">OGRGeometry::assignSpatialReference()</a>, and <a class="el" href="ogr__geometry_8h_source.html#l00116">OGRGeometry::getSpatialReference()</a>.</p>

</div>
</div>
<a class="anchor" id="af5f15a5673fde9522b4e70abdb9cec93"></a><!-- doxytag: member="OGRPolygon::closeRings" ref="af5f15a5673fde9522b4e70abdb9cec93" 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><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Force rings to be closed.</p>
<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>

<p>Reimplemented from <a class="el" href="classOGRGeometry.html#aeb6cf249316b3046e0d4f77ec400e844">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="a8e8ea1eb8916cf60a69650fd3a9025f9"></a><!-- doxytag: member="OGRPolygon::empty" ref="a8e8ea1eb8916cf60a69650fd3a9025f9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRPolygon::empty </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><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>
<p>This method relates to the SFCOM IGeometry::Empty() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a90cc83b0a3052b8fbe2ed77a86323bf2">OGR_G_Empty()</a>. </p>

<p>Implements <a class="el" href="classOGRGeometry.html#a1702b5b8142abe761061a6cd44e50b05">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="a5daaf7cbfb1263a4b9fc126f5c51cf37"></a><!-- doxytag: member="OGRPolygon::Equals" ref="a5daaf7cbfb1263a4b9fc126f5c51cf37" 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>poOtherGeom</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns two if two geometries are equivalent.</p>
<p>This method is the same as the C function OGR_G_Equal().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if equivalent or FALSE otherwise. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#ae751513a46c7e7b154796bfe494faf16">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrlinestring_8cpp_source.html#l01170">OGRLineString::Equals()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00166">getExteriorRing()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00106">getGeometryType()</a>, <a class="el" href="classOGRGeometry.html#a5c6bca18682cb933e3227552d480e1a5">OGRGeometry::getGeometryType()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00226">getInteriorRing()</a>, and <a class="el" href="ogrpolygon_8cpp_source.html#l00197">getNumInteriorRings()</a>.</p>

</div>
</div>
<a class="anchor" id="a7e765a5baad9e764146cbb0716bb0d9e"></a><!-- doxytag: member="OGRPolygon::exportToWkb" ref="a7e765a5baad9e764146cbb0716bb0d9e" args="(OGRwkbByteOrder, unsigned char *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRPolygon::exportToWkb </td>
          <td>(</td>
          <td class="paramtype">OGRwkbByteOrder&nbsp;</td>
          <td class="paramname"> <em>eByteOrder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&nbsp;</td>
          <td class="paramname"> <em>pabyData</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert a geometry into well known binary format.</p>
<p>This method relates to the SFCOM IWks::ExportToWKB() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ad5c94ae76c09774dba8725c24daeefd6">OGR_G_ExportToWkb()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>eByteOrder</em>&nbsp;</td><td>One of wkbXDR or wkbNDR indicating MSB or LSB byte order respectively. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pabyData</em>&nbsp;</td><td>a buffer into which the binary representation is written. This buffer must be at least <a class="el" href="classOGRGeometry.html#acd1a8164dae2e44e50990756ed6b8b4a">OGRGeometry::WkbSize()</a> byte in size.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Currently OGRERR_NONE is always returned. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#a6fe8947602669a35136e107cd45b084d">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>, and <a class="el" href="ogrpolygon_8cpp_source.html#l00106">getGeometryType()</a>.</p>

</div>
</div>
<a class="anchor" id="ade6a6d5d628f3ad57d0ce9dca8e26618"></a><!-- doxytag: member="OGRPolygon::exportToWkt" ref="ade6a6d5d628f3ad57d0ce9dca8e26618" args="(char **ppszDstText) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRPolygon::exportToWkt </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>ppszDstText</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert a geometry into well known text format.</p>
<p>This method relates to the SFCOM IWks::ExportToWKT() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a3bc9310302e2dbfaab1690de9e2fd2fb">OGR_G_ExportToWkt()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ppszDstText</em>&nbsp;</td><td>a text buffer is allocated by the program, and assigned to the passed pointer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Currently OGRERR_NONE is always returned. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#a0c941d5efdff84666af5a6f6b540aafb">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrlinestring_8cpp_source.html#l00969">OGRLineString::exportToWkt()</a>, <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00166">getExteriorRing()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l01023">IsEmpty()</a>, and <a class="el" href="ogrlinestring_8cpp_source.html#l00140">OGRLineString::setCoordinateDimension()</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00875">OGRGeometryFactory::organizePolygons()</a>.</p>

</div>
</div>
<a class="anchor" id="a3b8a81f9742e981c242668d2d4d4a69d"></a><!-- doxytag: member="OGRPolygon::flattenTo2D" ref="a3b8a81f9742e981c242668d2d4d4a69d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRPolygon::flattenTo2D </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><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>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#afdb7354b55c7448b60b44cd9e36073b8">OGR_G_FlattenTo2D()</a>. </p>

<p>Implements <a class="el" href="classOGRGeometry.html#aaae1a2ced937a5900b2bfeb717bad6c9">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="ad8ba9b796aafc593f5bd7bcf1086bc3d"></a><!-- doxytag: member="OGRPolygon::get_Area" ref="ad8ba9b796aafc593f5bd7bcf1086bc3d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double OGRPolygon::get_Area </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compute area of polygon.</p>
<p>The area is computed as the area of the outer ring less the area of all internal rings.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>computed area. </dd></dl>

<p>Implements <a class="el" href="classOGRSurface.html#a3b2c3125ec8c0b3a986e43cd1056f9e4">OGRSurface</a>.</p>

<p>References <a class="el" href="ogrlinearring_8cpp_source.html#l00422">OGRLinearRing::get_Area()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00166">getExteriorRing()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00226">getInteriorRing()</a>, and <a class="el" href="ogrpolygon_8cpp_source.html#l00197">getNumInteriorRings()</a>.</p>

<p>Referenced by <a class="el" href="ogrmultipolygon_8cpp_source.html#l00351">OGRMultiPolygon::get_Area()</a>, and <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00875">OGRGeometryFactory::organizePolygons()</a>.</p>

</div>
</div>
<a class="anchor" id="ad395f8c5a45dfa639b3c9aa71a303fae"></a><!-- doxytag: member="OGRPolygon::getDimension" ref="ad395f8c5a45dfa639b3c9aa71a303fae" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRPolygon::getDimension </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the dimension of this object.</p>
<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#a2a93f43a3b66462195b46f7fd2196dfc">OGRGeometry::getCoordinateDimension()</a>).</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a94b633e1acd208c258ad49f8d4fd4104">OGR_G_GetDimension()</a>.</p>
<dl class="return"><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#aadca09471fa9917452e087ba12d73eeb">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="a00a97e4a76eafe94b5cbb9d52d722457"></a><!-- doxytag: member="OGRPolygon::getEnvelope" ref="a00a97e4a76eafe94b5cbb9d52d722457" 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> 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>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a617a9c9ea85157661619a1d8f0a69cf9">OGR_G_GetEnvelope()</a>.</p>
<dl><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>
  </dd>
</dl>

<p>Implements <a class="el" href="classOGRGeometry.html#aa3d42b06ae6f7bbef6d1a2886da8d398">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrlinestring_8cpp_source.html#l01137">OGRLineString::getEnvelope()</a>.</p>

</div>
</div>
<a class="anchor" id="ad4ba927fb74871bf029e6a3efec3586c"></a><!-- doxytag: member="OGRPolygon::getExteriorRing" ref="ad4ba927fb74871bf029e6a3efec3586c" 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></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch reference to external polygon ring.</p>
<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#af4cf9f6eee1997268a481b39401c3161">OGRGeometry::clone()</a> method to make a separate copy within the application.</p>
<p>Relates to the SFCOM IPolygon::get_ExteriorRing() method.</p>
<dl class="return"><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>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">OGRGeometry::dumpReadable()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00874">Equals()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00629">exportToWkt()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00670">OGRGeometryFactory::forceToMultiLineString()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00487">OGRGeometryFactory::forceToPolygon()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00987">get_Area()</a>, and <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00875">OGRGeometryFactory::organizePolygons()</a>.</p>

</div>
</div>
<a class="anchor" id="a12ddd81003dfabd7d3c977c41fa5f506"></a><!-- doxytag: member="OGRPolygon::getGeometryName" ref="a12ddd81003dfabd7d3c977c41fa5f506" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * OGRPolygon::getGeometryName </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch WKT name for geometry type.</p>
<p>There is no SFCOM analog to this method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a18121f835b2fb724a0c1a87beb1a437a">OGR_G_GetGeometryName()</a>.</p>
<dl class="return"><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#aba109e1c53ce1452942f85eae66d88b8">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="a2e23fcc24129c50c2245f707938fdf4d"></a><!-- doxytag: member="OGRPolygon::getGeometryType" ref="a2e23fcc24129c50c2245f707938fdf4d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a">OGRwkbGeometryType</a> OGRPolygon::getGeometryType </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch geometry type.</p>
<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>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a8fae58102f5c4a4cf2526e5ca8369a76">OGR_G_GetGeometryType()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the geometry type code. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#a5c6bca18682cb933e3227552d480e1a5">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>, <a class="el" href="ogr__core_8h_source.html#l00150">wkbPolygon</a>, and <a class="el" href="ogr__core_8h_source.html#l00162">wkbPolygon25D</a>.</p>

<p>Referenced by <a class="el" href="ogrpolygon_8cpp_source.html#l00874">Equals()</a>, and <a class="el" href="ogrpolygon_8cpp_source.html#l00435">exportToWkb()</a>.</p>

</div>
</div>
<a class="anchor" id="af0bf0b1d1104e142b47637659518ad9c"></a><!-- doxytag: member="OGRPolygon::getInteriorRing" ref="af0bf0b1d1104e142b47637659518ad9c" 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></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch reference to indicated internal ring.</p>
<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#af4cf9f6eee1997268a481b39401c3161">OGRGeometry::clone()</a> method to make a separate copy within the application.</p>
<p>Relates to the SFCOM IPolygon::get_InternalRing() method.</p>
<dl><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>
  </dd>
</dl>
<dl class="return"><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>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">OGRGeometry::dumpReadable()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00874">Equals()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00670">OGRGeometryFactory::forceToMultiLineString()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00487">OGRGeometryFactory::forceToPolygon()</a>, and <a class="el" href="ogrpolygon_8cpp_source.html#l00987">get_Area()</a>.</p>

</div>
</div>
<a class="anchor" id="a3b996195adcf9fcd4f33570a37753dde"></a><!-- doxytag: member="OGRPolygon::getNumInteriorRings" ref="a3b996195adcf9fcd4f33570a37753dde" 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> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fetch the number of internal rings.</p>
<p>Relates to the SFCOM IPolygon::get_NumInteriorRings() method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>count of internal rings, zero or more. </dd></dl>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">OGRGeometry::dumpReadable()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00874">Equals()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00670">OGRGeometryFactory::forceToMultiLineString()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00487">OGRGeometryFactory::forceToPolygon()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00987">get_Area()</a>, and <a class="el" href="ograssemblepolygon_8cpp_source.html#l00132">OGRBuildPolygonFromEdges()</a>.</p>

</div>
</div>
<a class="anchor" id="a46b833f19bf35fcea113233310a245ce"></a><!-- doxytag: member="OGRPolygon::importFromWkb" ref="a46b833f19bf35fcea113233310a245ce" args="(unsigned char *, int=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRPolygon::importFromWkb </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&nbsp;</td>
          <td class="paramname"> <em>pabyData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nSize</em> = <code>-1</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assign geometry from well known binary data.</p>
<p>The object must have already been instantiated as the correct derived type of geometry object to match the binaries type. This method is used by the <a class="el" href="classOGRGeometryFactory.html">OGRGeometryFactory</a> class, but not normally called by application code.</p>
<p>This method relates to the SFCOM IWks::ImportFromWKB() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#afa5a9173aa3b10a4db09ed696a92ba4a">OGR_G_ImportFromWkb()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pabyData</em>&nbsp;</td><td>the binary input data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nSize</em>&nbsp;</td><td>the size of pabyData in bytes, or zero if not known.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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#ab2c6583c2b7c3e526dcfe54a61470c1f">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogr__core_8h_source.html#l00150">wkbPolygon</a>.</p>

</div>
</div>
<a class="anchor" id="a84d3b6e0ee2b098528a537bb874b4856"></a><!-- doxytag: member="OGRPolygon::importFromWkt" ref="a84d3b6e0ee2b098528a537bb874b4856" args="(char **)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRPolygon::importFromWkt </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>ppszInput</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assign geometry from well known text data.</p>
<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>
<p>This method relates to the SFCOM IWks::ImportFromWKT() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a4286ba243fb05a831a49f52aabcbc6f8">OGR_G_ImportFromWkt()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ppszInput</em>&nbsp;</td><td>pointer to a pointer to the source text. The pointer is updated to pointer after the consumed text.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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#a30561a301d44b1f90393ea4a78a5b0a5">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrlinestring_8cpp_source.html#l00480">OGRLineString::setPoints()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e14ee632878f6af3a4c93d7bf82a433"></a><!-- doxytag: member="OGRPolygon::IsEmpty" ref="a1e14ee632878f6af3a4c93d7bf82a433" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRPolygon::IsEmpty </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns TRUE (non-zero) if the object has no points. Normally this returns FALSE except between when an object is instantiated and points have been assigned.</p>
<p>This method relates to the SFCOM IGeometry::IsEmpty() method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if object is empty, otherwise FALSE. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#ac8653ba97e53f3e3b041946ca2acc111">OGRGeometry</a>.</p>

<p>Referenced by <a class="el" href="ogrpolygon_8cpp_source.html#l00629">exportToWkt()</a>.</p>

</div>
</div>
<a class="anchor" id="a76e64f21cd31a6256cc425a6b5639069"></a><!-- doxytag: member="OGRPolygon::PointOnSurface" ref="a76e64f21cd31a6256cc425a6b5639069" args="(OGRPoint *poPoint) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRPolygon::PointOnSurface </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOGRPoint.html">OGRPoint</a> *&nbsp;</td>
          <td class="paramname"> <em>poPoint</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method relates to the SFCOM ISurface::get_PointOnSurface() method.</p>
<p>NOTE: Only implemented when GEOS included in build.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>poPoint</em>&nbsp;</td><td>point to be set with an internal point.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>OGRERR_NONE if it succeeds or OGRERR_FAILURE otherwise. </dd></dl>

<p>Implements <a class="el" href="classOGRSurface.html#a1d28c548d1ceba9841597c5a37356226">OGRSurface</a>.</p>

<p>References <a class="el" href="ogrpoint_8cpp_source.html#l00130">OGRPoint::getGeometryType()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00188">OGRPoint::getX()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00189">OGRPoint::getY()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00194">OGRPoint::setX()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00195">OGRPoint::setY()</a>, and <a class="el" href="ogr__core_8h_source.html#l00147">wkbPoint</a>.</p>

</div>
</div>
<a class="anchor" id="a51fa8080389d47784fdb6a8ae097b5fa"></a><!-- doxytag: member="OGRPolygon::segmentize" ref="a51fa8080389d47784fdb6a8ae097b5fa" args="(double dfMaxLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRPolygon::segmentize </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfMaxLength</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Modify the geometry such it has no segment longer then the given distance. Interpolated points will have Z and M values (if needed) set to 0. Distance computation is performed in 2d only</p>
<p>This function is the same as the C function <a class="el" href="ogr__api_8h.html#ade9f08c8d63bc0e726cb20c201c86423">OGR_G_Segmentize()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>hGeom</em>&nbsp;</td><td>handle on the geometry to segmentize </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dfMaxLength</em>&nbsp;</td><td>the maximum distance between 2 points after segmentization </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classOGRGeometry.html#a91685bd7c0bdd67cd073a8b4da3c06a5">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="aae4be814a04641d5ad9f8c79e00b3c35"></a><!-- doxytag: member="OGRPolygon::setCoordinateDimension" ref="aae4be814a04641d5ad9f8c79e00b3c35" 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>nNewDimension</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the coordinate dimension.</p>
<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><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>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classOGRGeometry.html#a79f84a2b948d511f28c47c47577dea49">OGRGeometry</a>.</p>

</div>
</div>
<a class="anchor" id="aa974efb0dd2bdc7b62fa23dfdc4f8c72"></a><!-- doxytag: member="OGRPolygon::transform" ref="aa974efb0dd2bdc7b62fa23dfdc4f8c72" args="(OGRCoordinateTransformation *poCT)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRPolygon::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><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Apply arbitrary coordinate transformation to geometry.</p>
<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>
<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>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a59a5b3f954b11cfbf6e78807c28d6090">OGR_G_Transform()</a>.</p>
<dl><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>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or an error code. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#aa9e8bfb3c2129f25cf622660f734e1ba">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00228">OGRGeometry::assignSpatialReference()</a>, <a class="el" href="classOGRCoordinateTransformation.html#ae56218b826d186a8b7dcaf63d9b14fdd">OGRCoordinateTransformation::GetTargetCS()</a>, and <a class="el" href="ogrlinestring_8cpp_source.html#l01201">OGRLineString::transform()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8193c4d42032c4106bdccb907bc66ab"></a><!-- doxytag: member="OGRPolygon::WkbSize" ref="ad8193c4d42032c4106bdccb907bc66ab" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRPolygon::WkbSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns size of related binary representation.</p>
<p>This method returns the exact number of bytes required to hold the well known binary representation of this geometry object. Its computation may be slightly expensive for complex geometries.</p>
<p>This method relates to the SFCOM IWks::WkbSize() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a5f7035a933b957a9d453184c154c237c">OGR_G_WkbSize()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>size of binary representation in bytes. </dd></dl>

<p>Implements <a class="el" href="classOGRGeometry.html#acd1a8164dae2e44e50990756ed6b8b4a">OGRGeometry</a>.</p>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00628">OGRGeometry::getCoordinateDimension()</a>.</p>

</div>
</div>
<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>
<li>ogrpolygon.cpp</li>
</ul>
</div>
<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.6.2-20100208.
</body>
</html>