Sophie

Sophie

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

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::geom::util::GeometryCombiner 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_1geom.html">geom</a>      </li>
      <li><a class="el" href="namespacegeos_1_1geom_1_1util.html">util</a>      </li>
      <li><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html">geos::geom::util::GeometryCombiner</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::geom::util::GeometryCombiner Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="geos::geom::util::GeometryCombiner" -->
<p><code>#include &lt;<a class="el" href="GeometryCombiner_8h_source.html">GeometryCombiner.h</a>&gt;</code></p>

<p><a href="classgeos_1_1geom_1_1util_1_1GeometryCombiner-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_1geom_1_1util_1_1GeometryCombiner.html#a469750e1c06783a209518f1b324ca598">GeometryCombiner</a> (std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;geoms)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html#a4287126af6bd2d2abb3303ae09a2736d">combine</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 <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html#a77ac2865d6a574336ecda71446c90273">combine</a> (std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;geoms)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html#a7617f9cf01e1d419a2dc5cec0841b816">combine</a> (<a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *g0, <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *g1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html#ae616e8abadcf7c1fd55aecc5581979ae">combine</a> (<a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *g0, <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *g1, <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *g2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a> const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1util_1_1GeometryCombiner.html#a8904da2c44b399160f971d3d35523992">extractFactory</a> (std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;geoms)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Combines <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>s to produce a <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html">GeometryCollection</a> of the most appropriate type. Input geometries which are already collections will have their elements extracted first. No validation of the result geometry is performed. (The only case where invalidity is possible is where <a class="el" href="">Polygonal</a> geometries are combined and result in a self-intersection).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html#afb0900faa69e2eb9eb18ed875d91e54b">GeometryFactory::buildGeometry</a> </dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a469750e1c06783a209518f1b324ca598"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::GeometryCombiner" ref="a469750e1c06783a209518f1b324ca598" args="(std::vector&lt; Geometry * &gt; const &amp;geoms)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">geos::geom::util::GeometryCombiner::GeometryCombiner </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;&nbsp;</td>
          <td class="paramname"> <em>geoms</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new combiner for a collection of 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>geoms</em>&nbsp;</td><td>the geometries to combine </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a77ac2865d6a574336ecda71446c90273"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::combine" ref="a77ac2865d6a574336ecda71446c90273" args="(std::vector&lt; Geometry * &gt; const &amp;geoms)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::util::GeometryCombiner::combine </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;&nbsp;</td>
          <td class="paramname"> <em>geoms</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Combines a collection of 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>geoms</em>&nbsp;</td><td>the geometries to combine </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the combined geometry </dd></dl>

</div>
</div>
<a class="anchor" id="a4287126af6bd2d2abb3303ae09a2736d"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::combine" ref="a4287126af6bd2d2abb3303ae09a2736d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::util::GeometryCombiner::combine </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes the combination of the input geometries to produce the most appropriate <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> or <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html">GeometryCollection</a></p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> which is the combination of the inputs </dd></dl>

</div>
</div>
<a class="anchor" id="a7617f9cf01e1d419a2dc5cec0841b816"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::combine" ref="a7617f9cf01e1d419a2dc5cec0841b816" args="(Geometry *g0, Geometry *g1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::util::GeometryCombiner::combine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">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>Combines 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 geometry to combine </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>a geometry to combine </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the combined geometry </dd></dl>

</div>
</div>
<a class="anchor" id="ae616e8abadcf7c1fd55aecc5581979ae"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::combine" ref="ae616e8abadcf7c1fd55aecc5581979ae" args="(Geometry *g0, Geometry *g1, Geometry *g2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::util::GeometryCombiner::combine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *&nbsp;</td>
          <td class="paramname"> <em>g2</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>Combines three 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 to combine </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g1</em>&nbsp;</td><td>a geometry to combine </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>g2</em>&nbsp;</td><td>a geometry to combine </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the combined geometry </dd></dl>

</div>
</div>
<a class="anchor" id="a8904da2c44b399160f971d3d35523992"></a><!-- doxytag: member="geos::geom::util::GeometryCombiner::extractFactory" ref="a8904da2c44b399160f971d3d35523992" args="(std::vector&lt; Geometry * &gt; const &amp;geoms)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a> const* geos::geom::util::GeometryCombiner::extractFactory </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * &gt; const &amp;&nbsp;</td>
          <td class="paramname"> <em>geoms</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Extracts the <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html" title="Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...">GeometryFactory</a> used by the geometries in a collection</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>geoms</em>&nbsp;</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html" title="Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...">GeometryFactory</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="GeometryCombiner_8h_source.html">GeometryCombiner.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>