Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5035839f674c88dea1f7928a86fbdc64 > files > 1079

geos-devel-3.2.1-3.fc14.x86_64.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>GEOS: geos::operation::distance::DistanceOp 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.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <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><a href="namespaces.html"><span>Namespaces</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>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <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 class="navpath">
    <ul>
      <li><a class="el" href="namespacegeos.html">geos</a>      </li>
      <li><a class="el" href="namespacegeos_1_1operation.html">operation</a>      </li>
      <li><a class="el" href="namespacegeos_1_1operation_1_1distance.html">distance</a>      </li>
      <li><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html">geos::operation::distance::DistanceOp</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>geos::operation::distance::DistanceOp Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="geos::operation::distance::DistanceOp" -->
<p>Find two points on two <a class="el" href="">Geometry</a>s which lie within a given distance, or else are the nearest points on the geometries (in which case this also provides the distance between the geometries).  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>&gt;</code></p>

<p><a href="classgeos_1_1operation_1_1distance_1_1DistanceOp-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ae4d61a1c477b4e0cf2a1ebbc3d74d0e6">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#aa4cde507efc8613942d68b0fe59a01f4">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two Geometrys which lie within a given distance, or else are the nearest points on...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries.  <a href="#aa4cde507efc8613942d68b0fe59a01f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#acbad8fb1a46246dca20b39ab97073c90">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1, double terminateDistance)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two Geometrys which lie within a given distance, or else are the nearest points on...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries.  <a href="#acbad8fb1a46246dca20b39ab97073c90"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac5dec6e433a9d07ed80bd34aadc1dda0">distance</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a4801797ff9a77a5f765c783795aa04e5">closestPoints</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac8a617b7ab80f948351ebf3b7f48932f">nearestPoints</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ad3462b8ed28b4cd93e2e462937975655">distance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the distance between the nearest points of two geometries.  <a href="#ad3462b8ed28b4cd93e2e462937975655"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a5203d25c59ea0293059db321e0d82763">distance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a99de46033e82abe54143501af7aa1266">isWithinDistance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;g1, double distance)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test whether two geometries lie within a given distance of each other.  <a href="#a99de46033e82abe54143501af7aa1266"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a33e2c129a201d89c8c5067ca24f0e58d">nearestPoints</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ad898f71d8171b467cb26129cc66f4469">closestPoints</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Find two points on two <a class="el" href="">Geometry</a>s which lie within a given distance, or else are the nearest points on the geometries (in which case this also provides the distance between the geometries). </p>
<p>The distance computation also finds a pair of points in the input geometries which have the minimum distance between them. If a point lies in the interior of a line segment, the coordinate computed is a close approximation to the exact point.</p>
<p>The algorithms used are straightforward O(n^2) comparisons. This worst-case performance could be improved on by using Voronoi techniques or spatial indexes. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae4d61a1c477b4e0cf2a1ebbc3d74d0e6"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::DistanceOp" ref="ae4d61a1c477b4e0cf2a1ebbc3d74d0e6" args="(const geom::Geometry *g0, const geom::Geometry *g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>use the one taking references </dd></dl>

</div>
</div>
<a class="anchor" id="aa4cde507efc8613942d68b0fe59a01f4"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::DistanceOp" ref="aa4cde507efc8613942d68b0fe59a01f4" args="(const geom::Geometry &amp;g0, const geom::Geometry &amp;g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two Geometrys which lie within a given distance, or else are the nearest points on...">DistanceOp</a> that computes the distance and nearest points between the two specified 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>g0</em>&nbsp;</td><td>a Geometry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>a Geometry </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acbad8fb1a46246dca20b39ab97073c90"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::DistanceOp" ref="acbad8fb1a46246dca20b39ab97073c90" args="(const geom::Geometry &amp;g0, const geom::Geometry &amp;g1, double terminateDistance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>terminateDistance</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two Geometrys which lie within a given distance, or else are the nearest points on...">DistanceOp</a> that computes the distance and nearest points between the two specified 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>g0</em>&nbsp;</td><td>a Geometry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>a Geometry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>terminateDistance</em>&nbsp;</td><td>the distance on which to terminate the search </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad898f71d8171b467cb26129cc66f4469"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::closestPoints" ref="ad898f71d8171b467cb26129cc66f4469" args="(const geom::Geometry *g0, const geom::Geometry *g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>* geos::operation::distance::DistanceOp::closestPoints </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compute the the closest points of two geometries.</p>
<p>The points are presented in the same order as the input 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>g0</em>&nbsp;</td><td>a <a class="el" href="">Geometry</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>another <a class="el" href="">Geometry</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the closest points in the geometries, ownership to caller. A NULL return means one of the geometries is empty.</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>renamed to nearestPoints </dd></dl>

</div>
</div>
<a class="anchor" id="a4801797ff9a77a5f765c783795aa04e5"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::closestPoints" ref="a4801797ff9a77a5f765c783795aa04e5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>* geos::operation::distance::DistanceOp::closestPoints </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Report the coordinates of the closest points in the input geometries. The points are presented in the same order as the input Geometries.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pair of <a class="el" href="">Coordinate</a>s of the closest points as a newly allocated object (ownership to caller)</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000014">Deprecated:</a></b></dt><dd>renamed to nearestPoints </dd></dl>

</div>
</div>
<a class="anchor" id="ad3462b8ed28b4cd93e2e462937975655"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::distance" ref="ad3462b8ed28b4cd93e2e462937975655" args="(const geom::Geometry &amp;g0, const geom::Geometry &amp;g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static double geos::operation::distance::DistanceOp::distance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute the distance between the nearest points of two 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>g0</em>&nbsp;</td><td>a <a class="el" href="">Geometry</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>another <a class="el" href="">Geometry</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the distance between the geometries </dd></dl>

</div>
</div>
<a class="anchor" id="a5203d25c59ea0293059db321e0d82763"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::distance" ref="a5203d25c59ea0293059db321e0d82763" args="(const geom::Geometry *g0, const geom::Geometry *g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static double geos::operation::distance::DistanceOp::distance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>, use the version taking references </dd></dl>

</div>
</div>
<a class="anchor" id="ac5dec6e433a9d07ed80bd34aadc1dda0"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::distance" ref="ac5dec6e433a9d07ed80bd34aadc1dda0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double geos::operation::distance::DistanceOp::distance </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Report the distance between the closest points on the input geometries.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the distance between the geometries </dd></dl>

</div>
</div>
<a class="anchor" id="a99de46033e82abe54143501af7aa1266"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::isWithinDistance" ref="a99de46033e82abe54143501af7aa1266" args="(const geom::Geometry &amp;g0, const geom::Geometry &amp;g1, double distance)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool geos::operation::distance::DistanceOp::isWithinDistance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>g1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>distance</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Test whether two geometries lie within a given distance of each other. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>g0</em>&nbsp;</td><td>a <a class="el" href="">Geometry</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>another <a class="el" href="">Geometry</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>distance</em>&nbsp;</td><td>the distance to test </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if g0.distance(g1) &lt;= distance </dd></dl>

</div>
</div>
<a class="anchor" id="ac8a617b7ab80f948351ebf3b7f48932f"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::nearestPoints" ref="ac8a617b7ab80f948351ebf3b7f48932f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>* geos::operation::distance::DistanceOp::nearestPoints </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Report the coordinates of the nearest points in the input geometries. The points are presented in the same order as the input Geometries.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a pair of <a class="el" href="">Coordinate</a>s of the nearest points as a newly allocated object (ownership to caller) </dd></dl>

</div>
</div>
<a class="anchor" id="a33e2c129a201d89c8c5067ca24f0e58d"></a><!-- doxytag: member="geos::operation::distance::DistanceOp::nearestPoints" ref="a33e2c129a201d89c8c5067ca24f0e58d" args="(const geom::Geometry *g0, const geom::Geometry *g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>* geos::operation::distance::DistanceOp::nearestPoints </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g1</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compute the the nearest points of two geometries.</p>
<p>The points are presented in the same order as the input 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>g0</em>&nbsp;</td><td>a <a class="el" href="">Geometry</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>another <a class="el" href="">Geometry</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the nearest points in the geometries, ownership to caller. A NULL return means one of the geometries is empty. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>