Sophie

Sophie

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

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: OGRGeometry 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>OGRGeometry Class Reference</h1><!-- doxytag: class="OGRGeometry" -->
<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 OGRGeometry:</div>
<div class="dynsection">
 <div class="center">
  <img src="classOGRGeometry.png" usemap="#OGRGeometry_map" alt=""/>
  <map id="OGRGeometry_map" name="OGRGeometry_map">
<area href="classOGRCurve.html" alt="OGRCurve" shape="rect" coords="0,56,149,80"/>
<area href="classOGRGeometryCollection.html" alt="OGRGeometryCollection" shape="rect" coords="318,56,467,80"/>
<area href="classOGRPoint.html" alt="OGRPoint" shape="rect" coords="477,56,626,80"/>
<area href="classOGRSurface.html" alt="OGRSurface" shape="rect" coords="636,56,785,80"/>
<area href="classOGRLineString.html" alt="OGRLineString" shape="rect" coords="0,112,149,136"/>
<area href="classOGRMultiLineString.html" alt="OGRMultiLineString" shape="rect" coords="159,112,308,136"/>
<area href="classOGRMultiPoint.html" alt="OGRMultiPoint" shape="rect" coords="318,112,467,136"/>
<area href="classOGRMultiPolygon.html" alt="OGRMultiPolygon" shape="rect" coords="477,112,626,136"/>
<area href="classOGRPolygon.html" alt="OGRPolygon" shape="rect" coords="636,112,785,136"/>
<area href="classOGRLinearRing.html" alt="OGRLinearRing" shape="rect" coords="0,168,149,192"/>
</map>
 </div>
</div>

<p><a href="classOGRGeometry-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">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#aadca09471fa9917452e087ba12d73eeb">getDimension</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a2a93f43a3b66462195b46f7fd2196dfc">getCoordinateDimension</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ac8653ba97e53f3e3b041946ca2acc111">IsEmpty</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a7bbb194937466a6127b5436ac2ae99d9">IsValid</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ab72b0c5c673d8b1cf6f870fabbeffe26">IsSimple</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ad15ffdcae4351112b3106d4f87b2a3bf">IsRing</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="classOGRGeometry.html#a1702b5b8142abe761061a6cd44e50b05">empty</a> ()=0</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="classOGRGeometry.html#af4cf9f6eee1997268a481b39401c3161">clone</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#aa3d42b06ae6f7bbef6d1a2886da8d398">getEnvelope</a> (<a class="el" href="classOGREnvelope.html">OGREnvelope</a> *psEnvelope) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#acd1a8164dae2e44e50990756ed6b8b4a">WkbSize</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ab2c6583c2b7c3e526dcfe54a61470c1f">importFromWkb</a> (unsigned char *, int=-1)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a6fe8947602669a35136e107cd45b084d">exportToWkb</a> (OGRwkbByteOrder, unsigned char *) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a30561a301d44b1f90393ea4a78a5b0a5">importFromWkt</a> (char **ppszInput)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a0c941d5efdff84666af5a6f6b540aafb">exportToWkt</a> (char **ppszDstText) const =0</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="classOGRGeometry.html#a5c6bca18682cb933e3227552d480e1a5">getGeometryType</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#aba109e1c53ce1452942f85eae66d88b8">getGeometryName</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a2e70f05d61566a5ddaa29b44f637cfff">dumpReadable</a> (FILE *, const char *=NULL, char **papszOptions=NULL) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#aaae1a2ced937a5900b2bfeb717bad6c9">flattenTo2D</a> ()=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a4a7965591f2f795a4d0c7a32e4ccd0fb">exportToGML</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a579b67f04630b791a229b6a7c2914640">exportToKML</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a28609fce6bd422b16182eab58ff4e812">exportToJson</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="classOGRGeometry.html#aeb6cf249316b3046e0d4f77ec400e844">closeRings</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a79f84a2b948d511f28c47c47577dea49">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="classOGRGeometry.html#a4308e3549c65aa12cc2ba41be15d99a0">assignSpatialReference</a> (<a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *poSR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a194f0bbdae896539852106cafbffbe87">getSpatialReference</a> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#aa9e8bfb3c2129f25cf622660f734e1ba">transform</a> (<a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> *poCT)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OGRErr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ae3f0b441fbf2f66ce3ef3571268ab10f">transformTo</a> (<a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> *poSR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a91685bd7c0bdd67cd073a8b4da3c06a5">segmentize</a> (double dfMaxLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a0829528c9ca29059f86399da954fc8ae">Intersects</a> (<a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ae751513a46c7e7b154796bfe494faf16">Equals</a> (<a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a45f683761d57c8bea40e4ca1d832760a">Disjoint</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a5d3e23c20b51ceb5a56d397f812a81a2">Touches</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#ad5656df62f0857852519bea1486ab1ff">Crosses</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#abb4bb4687de9b6f23e61b686177b2856">Within</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a5e2c9296c75521ec8aff5bc2285c347f">Contains</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OGRBoolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#afc672c524568f3ee6ee5257b250d2b12">Overlaps</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</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="classOGRGeometry.html#ae9126f410f228235f47746e520421ad8">getBoundary</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRGeometry.html#a24fb51e9b419e97f14964e5a00ae3fb4">Distance</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</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="classOGRGeometry.html#ac906abd9b1cd9dd2b208a10c6e9d1bf0">ConvexHull</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="classOGRGeometry.html#ab34b27e2c8812a0fc1dccf055b11d1a2">Buffer</a> (double dfDist, int nQuadSegs=30) 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="classOGRGeometry.html#a202ad4c29487ca046c4a2b055042cb6a">Intersection</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</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="classOGRGeometry.html#a15fb98d101f5887f7c3af40b6da5a3c4">Union</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</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="classOGRGeometry.html#ac92e1ca0e8b108ee920147d4894bde3a">Difference</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</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="classOGRGeometry.html#a977693916ba1b7e19c2b390f04fde293">SymmetricDifference</a> (const <a class="el" href="classOGRGeometry.html">OGRGeometry</a> *) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Abstract base class for all geometry classes.</p>
<p>Note that the family of spatial analysis methods (Equal(), <a class="el" href="classOGRGeometry.html#a45f683761d57c8bea40e4ca1d832760a">Disjoint()</a>, ..., <a class="el" href="classOGRGeometry.html#ac906abd9b1cd9dd2b208a10c6e9d1bf0">ConvexHull()</a>, <a class="el" href="classOGRGeometry.html#ab34b27e2c8812a0fc1dccf055b11d1a2">Buffer()</a>, ...) are not implemented at ths time. Some other required and optional geometry methods have also been omitted at this time. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4308e3549c65aa12cc2ba41be15d99a0"></a><!-- doxytag: member="OGRGeometry::assignSpatialReference" ref="a4308e3549c65aa12cc2ba41be15d99a0" 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></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>
<p>This is similar to the SFCOM IGeometry::put_SpatialReference() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a4dfbd5861e1cd20b372d090539fa4536">OGR_G_AssignSpatialReference()</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>poSR</em>&nbsp;</td><td>new spatial reference system to apply. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="ogrspatialreference_8cpp_source.html#l00227">OGRSpatialReference::Reference()</a>, and <a class="el" href="ogrspatialreference_8cpp_source.html#l00302">OGRSpatialReference::Release()</a>.</p>

<p>Referenced by <a class="el" href="ogrpolygon_8cpp_source.html#l00066">OGRPolygon::clone()</a>, <a class="el" href="ogrpoint_8cpp_source.html#l00095">OGRPoint::clone()</a>, <a class="el" href="ogrmultipolygon_8cpp_source.html#l00084">OGRMultiPolygon::clone()</a>, <a class="el" href="ogrmultipoint_8cpp_source.html#l00089">OGRMultiPoint::clone()</a>, <a class="el" href="ogrmultilinestring_8cpp_source.html#l00092">OGRMultiLineString::clone()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00102">OGRLineString::clone()</a>, <a class="el" href="ogrlinearring_8cpp_source.html#l00320">OGRLinearRing::clone()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00086">OGRGeometryCollection::clone()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l01415">OGRGeometryFactory::createFromFgf()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00073">OGRGeometryFactory::createFromWkb()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00233">OGRGeometryFactory::createFromWkt()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00910">OGRPolygon::transform()</a>, <a class="el" href="ogrpoint_8cpp_source.html#l00519">OGRPoint::transform()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l01201">OGRLineString::transform()</a>, and <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00726">OGRGeometryCollection::transform()</a>.</p>

</div>
</div>
<a class="anchor" id="ab34b27e2c8812a0fc1dccf055b11d1a2"></a><!-- doxytag: member="OGRGeometry::Buffer" ref="ab34b27e2c8812a0fc1dccf055b11d1a2" args="(double dfDist, int nQuadSegs=30) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::Buffer </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>dfDist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>nQuadSegs</em> = <code>30</code></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>Compute buffer of geometry.</p>
<p>Builds a new geometry containing the buffer region around the geometry on which it is invoked. The buffer is a polygon containing the region within the buffer distance of the original geometry.</p>
<p>Some buffer sections are properly described as curves, but are converted to approximate polygons. The nQuadSegs parameter can be used to control how many segements should be used to define a 90 degree curve - a quadrant of a circle. A value of 30 is a reasonable default. Large values result in large numbers of vertices in the resulting buffer geometry while small numbers reduce the accuracy of the result.</p>
<p>This method is the same as the C function OGR_G_Buffer().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dfDist</em>&nbsp;</td><td>the buffer distance to be applied.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nQuadSegs</em>&nbsp;</td><td>the number of segments used to approximate a 90 degree (quadrant) of curvature.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the newly created geometry, or NULL if an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="af4cf9f6eee1997268a481b39401c3161"></a><!-- doxytag: member="OGRGeometry::clone" ref="af4cf9f6eee1997268a481b39401c3161" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::clone </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#adacecce9c5c6a7ef7d09842827565eae">OGRPoint</a>, <a class="el" href="classOGRLineString.html#aa3274a231b53c920584257e15119b0f6">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#a7f64b5d73de1fc1df6e0de938e5fac63">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#a723ac02b4551c683ab7ad88e6616c16b">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#ae007573cfec375b0fbb246a758b20b4c">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#a4ef6848b2988b29c9387897debc85cc0">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#a62e4056dc08502ac1161d8e44c434d80">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#a00cb2d7be778ad436530834bdc3cda38">OGRMultiLineString</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00229">OGRGeometryCollection::addGeometry()</a>, and <a class="el" href="ogrfeature_8cpp_source.html#l00352">OGRFeature::SetGeometry()</a>.</p>

</div>
</div>
<a class="anchor" id="aeb6cf249316b3046e0d4f77ec400e844"></a><!-- doxytag: member="OGRGeometry::closeRings" ref="aeb6cf249316b3046e0d4f77ec400e844" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::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 in <a class="el" href="classOGRLinearRing.html#a78d316c3e146dc8ee23a58336162d68a">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#af5f15a5673fde9522b4e70abdb9cec93">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a73648d3d592a8a804d160bf0c69648cc">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="a5e2c9296c75521ec8aff5bc2285c347f"></a><!-- doxytag: member="OGRGeometry::Contains" ref="a5e2c9296c75521ec8aff5bc2285c347f" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Contains </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for containment.</p>
<p>Tests if actual geometry object contains the passed geometry.</p>
<p>This method is the same as the C function OGR_G_Contains().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if poOtherGeom contains this geometry, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="ac906abd9b1cd9dd2b208a10c6e9d1bf0"></a><!-- doxytag: member="OGRGeometry::ConvexHull" ref="ac906abd9b1cd9dd2b208a10c6e9d1bf0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::ConvexHull </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 convex hull.</p>
<p>A new geometry object is created and returned containing the convex hull of the geometry on which the method is invoked.</p>
<p>This method is the same as the C function OGR_G_ConvexHull().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a newly allocated geometry now owned by the caller, or NULL on failure. </dd></dl>

</div>
</div>
<a class="anchor" id="ad5656df62f0857852519bea1486ab1ff"></a><!-- doxytag: member="OGRGeometry::Crosses" ref="ad5656df62f0857852519bea1486ab1ff" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Crosses </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for crossing.</p>
<p>Tests if this geometry and the other passed into the method are crossing.</p>
<p>This method is the same as the C function OGR_G_Crosses().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if they are crossing, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="ac92e1ca0e8b108ee920147d4894bde3a"></a><!-- doxytag: member="OGRGeometry::Difference" ref="ac92e1ca0e8b108ee920147d4894bde3a" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::Difference </td>
          <td>(</td>
          <td class="paramtype">const <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>Compute difference.</p>
<p>Generates a new geometry which is the region of this geometry with the region of the second geometry removed.</p>
<p>This method is the same as the C function OGR_G_Difference().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 removed from "this" geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new geometry representing the difference or NULL if the difference is empty or an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="a45f683761d57c8bea40e4ca1d832760a"></a><!-- doxytag: member="OGRGeometry::Disjoint" ref="a45f683761d57c8bea40e4ca1d832760a" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Disjoint </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for disjointness.</p>
<p>Tests if this geometry and the other passed into the method are disjoint.</p>
<p>This method is the same as the C function OGR_G_Disjoint().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if they are disjoint, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="a24fb51e9b419e97f14964e5a00ae3fb4"></a><!-- doxytag: member="OGRGeometry::Distance" ref="a24fb51e9b419e97f14964e5a00ae3fb4" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double OGRGeometry::Distance </td>
          <td>(</td>
          <td class="paramtype">const <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>Compute distance between two geometries.</p>
<p>Returns the shortest distance between the two geometries.</p>
<p>This method is the same as the C function OGR_G_Distance().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 compare against.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the distance between the geometries or -1 if an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="a2e70f05d61566a5ddaa29b44f637cfff"></a><!-- doxytag: member="OGRGeometry::dumpReadable" ref="a2e70f05d61566a5ddaa29b44f637cfff" args="(FILE *, const char *=NULL, char **papszOptions=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::dumpReadable </td>
          <td>(</td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pszPrefix</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>papszOptions</em> = <code>NULL</code></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>Dump geometry in well known text format to indicated output file.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a3a99330bd108940f8a33036c0f83119f">OGR_G_DumpReadable()</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>fp</em>&nbsp;</td><td>the text file to write the geometry to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pszPrefix</em>&nbsp;</td><td>the prefix to put on each line of output. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="ogrgeometry_8cpp_source.html#l00097">dumpReadable()</a>, <a class="el" href="classOGRGeometry.html#a0c941d5efdff84666af5a6f6b540aafb">exportToWkt()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00166">OGRPolygon::getExteriorRing()</a>, <a class="el" href="classOGRGeometry.html#aba109e1c53ce1452942f85eae66d88b8">getGeometryName()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00186">OGRGeometryCollection::getGeometryRef()</a>, <a class="el" href="classOGRGeometry.html#a5c6bca18682cb933e3227552d480e1a5">getGeometryType()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00226">OGRPolygon::getInteriorRing()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00161">OGRGeometryCollection::getNumGeometries()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00197">OGRPolygon::getNumInteriorRings()</a>, <a class="el" href="ogr__geometry_8h_source.html#l00273">OGRLineString::getNumPoints()</a>, <a class="el" href="ogr__core_8h_source.html#l00156">wkbGeometryCollection</a>, <a class="el" href="ogr__core_8h_source.html#l00166">wkbGeometryCollection25D</a>, <a class="el" href="ogr__core_8h_source.html#l00159">wkbLinearRing</a>, <a class="el" href="ogr__core_8h_source.html#l00148">wkbLineString</a>, <a class="el" href="ogr__core_8h_source.html#l00161">wkbLineString25D</a>, <a class="el" href="ogr__core_8h_source.html#l00154">wkbMultiLineString</a>, <a class="el" href="ogr__core_8h_source.html#l00164">wkbMultiLineString25D</a>, <a class="el" href="ogr__core_8h_source.html#l00153">wkbMultiPoint</a>, <a class="el" href="ogr__core_8h_source.html#l00163">wkbMultiPoint25D</a>, <a class="el" href="ogr__core_8h_source.html#l00155">wkbMultiPolygon</a>, <a class="el" href="ogr__core_8h_source.html#l00165">wkbMultiPolygon25D</a>, <a class="el" href="ogr__core_8h_source.html#l00158">wkbNone</a>, <a class="el" href="ogr__core_8h_source.html#l00147">wkbPoint</a>, <a class="el" href="ogr__core_8h_source.html#l00160">wkbPoint25D</a>, <a class="el" href="ogr__core_8h_source.html#l00150">wkbPolygon</a>, <a class="el" href="ogr__core_8h_source.html#l00162">wkbPolygon25D</a>, and <a class="el" href="ogr__core_8h_source.html#l00146">wkbUnknown</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">dumpReadable()</a>, and <a class="el" href="ogrfeature_8cpp_source.html#l02413">OGRFeature::DumpReadable()</a>.</p>

</div>
</div>
<a class="anchor" id="a1702b5b8142abe761061a6cd44e50b05"></a><!-- doxytag: member="OGRGeometry::empty" ref="a1702b5b8142abe761061a6cd44e50b05" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::empty </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a3f4973eec2851ff655b61c600f8bf2f9">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a958cec2e062c6372131139be247aecdb">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a8e8ea1eb8916cf60a69650fd3a9025f9">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a9aead953ce5cc3076d9d4e4a85c6f68d">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="ae751513a46c7e7b154796bfe494faf16"></a><!-- doxytag: member="OGRGeometry::Equals" ref="ae751513a46c7e7b154796bfe494faf16" 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> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a4e04bfdd79cbf0c74d90ef20e99f13a3">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a8568a09caf084295b39df28c31586c01">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a5daaf7cbfb1263a4b9fc126f5c51cf37">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#ae25defac0e02404820e7a8b6dc712f44">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrfeature_8cpp_source.html#l02597">OGRFeature::Equal()</a>, and <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00697">OGRGeometryCollection::Equals()</a>.</p>

</div>
</div>
<a class="anchor" id="a4a7965591f2f795a4d0c7a32e4ccd0fb"></a><!-- doxytag: member="OGRGeometry::exportToGML" ref="a4a7965591f2f795a4d0c7a32e4ccd0fb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * OGRGeometry::exportToGML </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert a geometry into GML format.</p>
<p>The GML geometry is expressed directly in terms of GML basic data types assuming the this is available in the gml namespace. The returned string should be freed with CPLFree() when no longer required.</p>
<p>This method is the same as the C function OGR_G_ExportToGML().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A GML fragment or NULL in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="a28609fce6bd422b16182eab58ff4e812"></a><!-- doxytag: member="OGRGeometry::exportToJson" ref="a28609fce6bd422b16182eab58ff4e812" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * OGRGeometry::exportToJson </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert a geometry into GeoJSON format.</p>
<p>The returned string should be freed with CPLFree() when no longer required.</p>
<p>This method is the same as the C function OGR_G_ExportToJson().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A GeoJSON fragment or NULL in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="a579b67f04630b791a229b6a7c2914640"></a><!-- doxytag: member="OGRGeometry::exportToKML" ref="a579b67f04630b791a229b6a7c2914640" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * OGRGeometry::exportToKML </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert a geometry into KML format.</p>
<p>The returned string should be freed with CPLFree() when no longer required.</p>
<p>This method is the same as the C function OGR_G_ExportToKML().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A KML fragment or NULL in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="a6fe8947602669a35136e107cd45b084d"></a><!-- doxytag: member="OGRGeometry::exportToWkb" ref="a6fe8947602669a35136e107cd45b084d" args="(OGRwkbByteOrder, unsigned char *) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGeometry::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> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a9db7a262c67ce9ba9a560a777fc8140d">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a9aedf75d9a94fedd99e4945c5abb9565">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#ab75b22057069099bd7d5d85d72986ffb">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#a7e765a5baad9e764146cbb0716bb0d9e">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a63414d1e0ab0c16227494b88937e951a">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00454">OGRGeometryCollection::exportToWkb()</a>.</p>

</div>
</div>
<a class="anchor" id="a0c941d5efdff84666af5a6f6b540aafb"></a><!-- doxytag: member="OGRGeometry::exportToWkt" ref="a0c941d5efdff84666af5a6f6b540aafb" args="(char **ppszDstText) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGeometry::exportToWkt </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>ppszDstText</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a2cb15e548a3d3ecaf8c2acfc1e03b40a">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a80aa40481584eca17808d1abacb435f9">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#ade6a6d5d628f3ad57d0ce9dca8e26618">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#a6612b05d85871c92b24015457883de1c">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#a21f4a8e2e947c55e9e83b563240bf63e">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#ad8ece50b6411e915bf53d8f31de041ff">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#ad26a712732139dbec7d827a65e273d68">OGRMultiLineString</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">dumpReadable()</a>, <a class="el" href="ogrmultipolygon_8cpp_source.html#l00262">OGRMultiPolygon::exportToWkt()</a>, <a class="el" href="ogrmultilinestring_8cpp_source.html#l00233">OGRMultiLineString::exportToWkt()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00607">OGRGeometryCollection::exportToWkt()</a>, and <a class="el" href="ogrfeature_8cpp_source.html#l00976">OGRFeature::GetFieldAsString()</a>.</p>

</div>
</div>
<a class="anchor" id="aaae1a2ced937a5900b2bfeb717bad6c9"></a><!-- doxytag: member="OGRGeometry::flattenTo2D" ref="aaae1a2ced937a5900b2bfeb717bad6c9" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::flattenTo2D </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#aefb1c9e09c101735d8617f30109b3685">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a79882a4aba981daf0f2af80d1fbb9b21">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a3b8a81f9742e981c242668d2d4d4a69d">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a954d008774d80ad0637bc25088746eea">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="ae9126f410f228235f47746e520421ad8"></a><!-- doxytag: member="OGRGeometry::getBoundary" ref="ae9126f410f228235f47746e520421ad8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::getBoundary </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 boundary.</p>
<p>A new geometry object is created and returned containing the boundary of the geometry on which the method is invoked.</p>
<p>This method is the same as the C function OGR_G_GetBoundary().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a newly allocated geometry now owned by the caller, or NULL on failure. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a93f43a3b66462195b46f7fd2196dfc"></a><!-- doxytag: member="OGRGeometry::getCoordinateDimension" ref="a2a93f43a3b66462195b46f7fd2196dfc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRGeometry::getCoordinateDimension </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 the coordinates in this object.</p>
<p>This method corresponds to the SFCOM IGeometry::GetDimension() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a8a5e78b0753339d1cdd282b0e151d28f">OGR_G_GetCoordinateDimension()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>in practice this always returns 2 indicating that coordinates are specified within a two dimensional space. </dd></dl>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00268">OGRGeometryCollection::addGeometryDirectly()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00261">OGRPolygon::addRing()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00292">OGRPolygon::addRingDirectly()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00102">OGRLineString::clone()</a>, <a class="el" href="ogrlinearring_8cpp_source.html#l00386">OGRLinearRing::closeRings()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00435">OGRPolygon::exportToWkb()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00819">OGRLineString::exportToWkb()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00629">OGRPolygon::exportToWkt()</a>, <a class="el" href="ogrmultipoint_8cpp_source.html#l00112">OGRMultiPoint::exportToWkt()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00969">OGRLineString::exportToWkt()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00106">OGRPolygon::getGeometryType()</a>, <a class="el" href="ogrmultipolygon_8cpp_source.html#l00047">OGRMultiPolygon::getGeometryType()</a>, <a class="el" href="ogrmultipoint_8cpp_source.html#l00048">OGRMultiPoint::getGeometryType()</a>, <a class="el" href="ogrmultilinestring_8cpp_source.html#l00055">OGRMultiLineString::getGeometryType()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00069">OGRLineString::getGeometryType()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00106">OGRGeometryCollection::getGeometryType()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00208">OGRLineString::getPoint()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00361">OGRGeometryCollection::importFromWkb()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l01263">OGRLineString::segmentize()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00300">OGRLineString::setNumPoints()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00379">OGRLineString::setPoint()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00480">OGRLineString::setPoints()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l01085">OGRLineString::Value()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00314">OGRPolygon::WkbSize()</a>, and <a class="el" href="ogrlinestring_8cpp_source.html#l00157">OGRLineString::WkbSize()</a>.</p>

</div>
</div>
<a class="anchor" id="aadca09471fa9917452e087ba12d73eeb"></a><!-- doxytag: member="OGRGeometry::getDimension" ref="aadca09471fa9917452e087ba12d73eeb" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRGeometry::getDimension </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a0466937038d945f8f1f35c6ca1dfd4ca">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a9ef03e6376a2dbaa10181f282f2b1f42">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#ad395f8c5a45dfa639b3c9aa71a303fae">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a611f61007e92d5e5807748b48450880c">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="aa3d42b06ae6f7bbef6d1a2886da8d398"></a><!-- doxytag: member="OGRGeometry::getEnvelope" ref="aa3d42b06ae6f7bbef6d1a2886da8d398" args="(OGREnvelope *psEnvelope) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::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> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#ac080db52ee9343fbaa448b2f038cdfe4">OGRPoint</a>, <a class="el" href="classOGRLineString.html#acd1805288a923f93a147b643f45e8e68">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a00a97e4a76eafe94b5cbb9d52d722457">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a4319e7dea4967dfc1e5a7d4bcdb8e5ff">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00668">OGRGeometryCollection::getEnvelope()</a>, <a class="el" href="ogrlayer_8cpp_source.html#l00193">OGRLayer::GetExtent()</a>, <a class="el" href="ogrgeometry_8cpp_source.html#l00289">Intersects()</a>, and <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00875">OGRGeometryFactory::organizePolygons()</a>.</p>

</div>
</div>
<a class="anchor" id="aba109e1c53ce1452942f85eae66d88b8"></a><!-- doxytag: member="OGRGeometry::getGeometryName" ref="aba109e1c53ce1452942f85eae66d88b8" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * OGRGeometry::getGeometryName </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#ab343d46136b60283560f03f752dd2630">OGRPoint</a>, <a class="el" href="classOGRLineString.html#ab6f7736ff4bd435528b793374f9544ea">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#a1db244dfa8106d5068046f50c6b8dd37">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#a12ddd81003dfabd7d3c977c41fa5f506">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#ad8a37b8aaa8506c59a0f6e361e33cfea">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#a3819c81ad80e967decf4fd5896d54919">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#ac71b8d5d56cc41fc4ead4946effd64a9">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#aeb01456fae7b8953d9955c11313bd06f">OGRMultiLineString</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometry_8cpp_source.html#l00097">dumpReadable()</a>, and <a class="el" href="ogrfeature_8cpp_source.html#l00976">OGRFeature::GetFieldAsString()</a>.</p>

</div>
</div>
<a class="anchor" id="a5c6bca18682cb933e3227552d480e1a5"></a><!-- doxytag: member="OGRGeometry::getGeometryType" ref="a5c6bca18682cb933e3227552d480e1a5" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a">OGRwkbGeometryType</a> OGRGeometry::getGeometryType </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a0629a8049b94f9ad86939ba0c7a40bed">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a5654b3123a1b296d09f32ee3c5c68bfa">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a2e23fcc24129c50c2245f707938fdf4d">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#ac0ce5876364a826479eb2a10815fea60">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#a3d06dca158cbe0375bfe1baf0927b13b">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#a1608a1b94dfb29122c42a4ac8f1b77d4">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#a960c59e32e54ca010393e5c749c64b50">OGRMultiLineString</a>.</p>

<p>Referenced by <a class="el" href="ogrmultipolygon_8cpp_source.html#l00070">OGRMultiPolygon::addGeometryDirectly()</a>, <a class="el" href="ogrmultipoint_8cpp_source.html#l00075">OGRMultiPoint::addGeometryDirectly()</a>, <a class="el" href="ogrmultilinestring_8cpp_source.html#l00078">OGRMultiLineString::addGeometryDirectly()</a>, <a class="el" href="ogrgeometry_8cpp_source.html#l00097">dumpReadable()</a>, <a class="el" href="ogrpolygon_8cpp_source.html#l00874">OGRPolygon::Equals()</a>, <a class="el" href="ogrpoint_8cpp_source.html#l00494">OGRPoint::Equals()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l01170">OGRLineString::Equals()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00697">OGRGeometryCollection::Equals()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00670">OGRGeometryFactory::forceToMultiLineString()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00602">OGRGeometryFactory::forceToMultiPoint()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00536">OGRGeometryFactory::forceToMultiPolygon()</a>, <a class="el" href="ogrgeometryfactory_8cpp_source.html#l00487">OGRGeometryFactory::forceToPolygon()</a>, and <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00805">OGRGeometryCollection::get_Area()</a>.</p>

</div>
</div>
<a class="anchor" id="a194f0bbdae896539852106cafbffbe87"></a><!-- doxytag: member="OGRGeometry::getSpatialReference" ref="a194f0bbdae896539852106cafbffbe87" 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> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns spatial reference system for object.</p>
<p>This method relates to the SFCOM IGeometry::get_SpatialReference() method.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#abc393e40282eec3801fb4a4abc9e25bf">OGR_G_GetSpatialReference()</a>.</p>
<dl class="return"><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>

<p>Referenced by <a class="el" href="ogrpolygon_8cpp_source.html#l00066">OGRPolygon::clone()</a>, <a class="el" href="ogrpoint_8cpp_source.html#l00095">OGRPoint::clone()</a>, <a class="el" href="ogrmultipolygon_8cpp_source.html#l00084">OGRMultiPolygon::clone()</a>, <a class="el" href="ogrmultipoint_8cpp_source.html#l00089">OGRMultiPoint::clone()</a>, <a class="el" href="ogrmultilinestring_8cpp_source.html#l00092">OGRMultiLineString::clone()</a>, <a class="el" href="ogrlinestring_8cpp_source.html#l00102">OGRLineString::clone()</a>, <a class="el" href="ogrlinearring_8cpp_source.html#l00320">OGRLinearRing::clone()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00086">OGRGeometryCollection::clone()</a>, and <a class="el" href="ogrgeometry_8cpp_source.html#l00409">transformTo()</a>.</p>

</div>
</div>
<a class="anchor" id="ab2c6583c2b7c3e526dcfe54a61470c1f"></a><!-- doxytag: member="OGRGeometry::importFromWkb" ref="ab2c6583c2b7c3e526dcfe54a61470c1f" args="(unsigned char *, int=&#45;1)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGeometry::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> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a5c5679f8fcc254562e36a8fce316b646">OGRPoint</a>, <a class="el" href="classOGRLineString.html#ae594aeb14deec56cf957ce54a9f299a7">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#a80fa5c79e98e92a1b58f30b9904c272c">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#a46b833f19bf35fcea113233310a245ce">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a1f06b21c6ec0a0500eb7e3a815283ccf">OGRGeometryCollection</a>.</p>

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

</div>
</div>
<a class="anchor" id="a30561a301d44b1f90393ea4a78a5b0a5"></a><!-- doxytag: member="OGRGeometry::importFromWkt" ref="a30561a301d44b1f90393ea4a78a5b0a5" args="(char **ppszInput)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRErr OGRGeometry::importFromWkt </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>ppszInput</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a46cd8cdb216be9538d22b5aae9b9be1c">OGRPoint</a>, <a class="el" href="classOGRLineString.html#ada0f0873c302eee9e1c763e06ff9d788">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a84d3b6e0ee2b098528a537bb874b4856">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#a72381b58185cf0851db54067e3f3f2df">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#a23b4a553c2b3ccde257359c78782eaf8">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#a283b992718022f5e400e455efe835360">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#a1a71908c13cbe25e4c7b8e2d9cc99af3">OGRMultiLineString</a>.</p>

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

</div>
</div>
<a class="anchor" id="a202ad4c29487ca046c4a2b055042cb6a"></a><!-- doxytag: member="OGRGeometry::Intersection" ref="a202ad4c29487ca046c4a2b055042cb6a" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::Intersection </td>
          <td>(</td>
          <td class="paramtype">const <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>Compute intersection.</p>
<p>Generates a new geometry which is the region of intersection of the two geometries operated on. The Intersect() method can be used to test if two geometries intersect.</p>
<p>This method is the same as the C function OGR_G_Intersection().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 intersected with "this" geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new geometry representing the intersection or NULL if there is no intersection or an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="a0829528c9ca29059f86399da954fc8ae"></a><!-- doxytag: member="OGRGeometry::Intersects" ref="a0829528c9ca29059f86399da954fc8ae" 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> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Do these features intersect?</p>
<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>
<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>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#acaed6926b75cd33a42b284c10def6e87">OGR_G_Intersects()</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>poOtherGeom</em>&nbsp;</td><td>the other geometry to test against.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the geometries intersect, otherwise FALSE. </dd></dl>

<p>References <a class="el" href="classOGRGeometry.html#aa3d42b06ae6f7bbef6d1a2886da8d398">getEnvelope()</a>.</p>

</div>
</div>
<a class="anchor" id="ac8653ba97e53f3e3b041946ca2acc111"></a><!-- doxytag: member="OGRGeometry::IsEmpty" ref="ac8653ba97e53f3e3b041946ca2acc111" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::IsEmpty </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a3d25537f07a1e7dd51868f82ad7df52f">OGRPoint</a>, <a class="el" href="classOGRLineString.html#aae5521135ad94d8ea523b9d4d614ffee">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a1e14ee632878f6af3a4c93d7bf82a433">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#ae7f7a6da1812c2d8aaf71966468d6c37">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="ad15ffdcae4351112b3106d4f87b2a3bf"></a><!-- doxytag: member="OGRGeometry::IsRing" ref="ad15ffdcae4351112b3106d4f87b2a3bf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::IsRing </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Test if the geometry is a ring</p>
<p>This method is the same as the C function OGR_G_IsRing().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return FALSE.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the geometry has no points, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="ab72b0c5c673d8b1cf6f870fabbeffe26"></a><!-- doxytag: member="OGRGeometry::IsSimple" ref="ab72b0c5c673d8b1cf6f870fabbeffe26" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::IsSimple </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Test if the geometry is simple</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a3cb66472d7e302d16aacf0d66c01ac73">OGR_G_IsSimple()</a>.</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return FALSE.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the geometry has no points, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="a7bbb194937466a6127b5436ac2ae99d9"></a><!-- doxytag: member="OGRGeometry::IsValid" ref="a7bbb194937466a6127b5436ac2ae99d9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::IsValid </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Test if the geometry is valid</p>
<p>This method is the same as the C function OGR_G_IsValid().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return FALSE.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the geometry has no points, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="afc672c524568f3ee6ee5257b250d2b12"></a><!-- doxytag: member="OGRGeometry::Overlaps" ref="afc672c524568f3ee6ee5257b250d2b12" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Overlaps </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for overlap.</p>
<p>Tests if this geometry and the other passed into the method overlap, that is their intersection has a non-zero area.</p>
<p>This method is the same as the C function OGR_G_Overlaps().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if they are overlapping, otherwise FALSE. </dd></dl>

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

</div>
</div>
<a class="anchor" id="a91685bd7c0bdd67cd073a8b4da3c06a5"></a><!-- doxytag: member="OGRGeometry::segmentize" ref="a91685bd7c0bdd67cd073a8b4da3c06a5" args="(double dfMaxLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OGRGeometry::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 in <a class="el" href="classOGRLineString.html#aee1a3d911818f745cf22e30d53ed160d">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#a51fa8080389d47784fdb6a8ae097b5fa">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a9dd126d6cbe87f34eef6de9b9748874b">OGRGeometryCollection</a>.</p>

</div>
</div>
<a class="anchor" id="a79f84a2b948d511f28c47c47577dea49"></a><!-- doxytag: member="OGRGeometry::setCoordinateDimension" ref="a79f84a2b948d511f28c47c47577dea49" 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><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 in <a class="el" href="classOGRPoint.html#ab1bdccd2a5fe4886a07f345d9af94b28">OGRPoint</a>, <a class="el" href="classOGRLineString.html#aed2edaf7e5af02f2724ec073f0957ee0">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#aae4be814a04641d5ad9f8c79e00b3c35">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a815199fda3d141eb52e7237dafade6fe">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00777">OGRGeometryCollection::setCoordinateDimension()</a>.</p>

</div>
</div>
<a class="anchor" id="a977693916ba1b7e19c2b390f04fde293"></a><!-- doxytag: member="OGRGeometry::SymmetricDifference" ref="a977693916ba1b7e19c2b390f04fde293" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::SymmetricDifference </td>
          <td>(</td>
          <td class="paramtype">const <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>Compute symmetric difference.</p>
<p>Generates a new geometry which is the symmetric difference of this geometry and the second geometry passed into the method.</p>
<p>This method is the same as the C function OGR_G_SymmetricDifference().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new geometry representing the symmetric difference or NULL if the difference is empty or an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="a5d3e23c20b51ceb5a56d397f812a81a2"></a><!-- doxytag: member="OGRGeometry::Touches" ref="a5d3e23c20b51ceb5a56d397f812a81a2" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Touches </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for touching.</p>
<p>Tests if this geometry and the other passed into the method are touching.</p>
<p>This method is the same as the C function OGR_G_Touches().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if they are touching, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="aa9e8bfb3c2129f25cf622660f734e1ba"></a><!-- doxytag: member="OGRGeometry::transform" ref="aa9e8bfb3c2129f25cf622660f734e1ba" 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><code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a351482d4852285a214ac1d55ec046356">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a75675b1f158fd1d5d35cc431227ed000">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#aa974efb0dd2bdc7b62fa23dfdc4f8c72">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#a39e5d3d2fbfbfccd7cdf5275f0373816">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00726">OGRGeometryCollection::transform()</a>, and <a class="el" href="ogrgeometry_8cpp_source.html#l00409">transformTo()</a>.</p>

</div>
</div>
<a class="anchor" id="ae3f0b441fbf2f66ce3ef3571268ab10f"></a><!-- doxytag: member="OGRGeometry::transformTo" ref="ae3f0b441fbf2f66ce3ef3571268ab10f" 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></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Transform geometry to new spatial reference system.</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>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>
<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#aa9e8bfb3c2129f25cf622660f734e1ba">transform()</a> with that transformation. This method exists primarily for convenience when only transforming a single geometry.</p>
<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a43af4c2127cea0a5059692a62c0feb63">OGR_G_TransformTo()</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>poSR</em>&nbsp;</td><td>spatial reference system to transform to.</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>References <a class="el" href="ogr__geometry_8h_source.html#l00116">getSpatialReference()</a>, <a class="el" href="ogrct_8cpp_source.html#l00290">OGRCreateCoordinateTransformation()</a>, and <a class="el" href="classOGRGeometry.html#aa9e8bfb3c2129f25cf622660f734e1ba">transform()</a>.</p>

</div>
</div>
<a class="anchor" id="a15fb98d101f5887f7c3af40b6da5a3c4"></a><!-- doxytag: member="OGRGeometry::Union" ref="a15fb98d101f5887f7c3af40b6da5a3c4" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::Union </td>
          <td>(</td>
          <td class="paramtype">const <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>Compute union.</p>
<p>Generates a new geometry which is the region of union of the two geometries operated on.</p>
<p>This method is the same as the C function OGR_G_Union().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 unioned with "this" geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new geometry representing the union or NULL if an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="abb4bb4687de9b6f23e61b686177b2856"></a><!-- doxytag: member="OGRGeometry::Within" ref="abb4bb4687de9b6f23e61b686177b2856" args="(const OGRGeometry *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OGRBoolean OGRGeometry::Within </td>
          <td>(</td>
          <td class="paramtype">const <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>Test for containment.</p>
<p>Tests if actual geometry object is within the passed geometry.</p>
<p>This method is the same as the C function OGR_G_Within().</p>
<p>This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</p>
<dl><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 geometry to compare to this geometry.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if poOtherGeom is within this geometry, otherwise FALSE. </dd></dl>

</div>
</div>
<a class="anchor" id="acd1a8164dae2e44e50990756ed6b8b4a"></a><!-- doxytag: member="OGRGeometry::WkbSize" ref="acd1a8164dae2e44e50990756ed6b8b4a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OGRGeometry::WkbSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#a52c7e9871c785d5bb0952d3f9f176cbd">OGRPoint</a>, <a class="el" href="classOGRLineString.html#a1aabd7032d6579f4fa17fc3849c6a353">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#a87b3bfc9b96b5d86e3cc6df4cc5e98ab">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#ad8193c4d42032c4106bdccb907bc66ab">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#abbd3a441c99163025c72cb6b8642d44d">OGRGeometryCollection</a>.</p>

<p>Referenced by <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00454">OGRGeometryCollection::exportToWkb()</a>, <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00361">OGRGeometryCollection::importFromWkb()</a>, and <a class="el" href="ogrgeometrycollection_8cpp_source.html#l00341">OGRGeometryCollection::WkbSize()</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>ogrgeometry.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>