Sophie

Sophie

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

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::CoordinateArraySequence 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="classgeos_1_1geom_1_1CoordinateArraySequence.html">geos::geom::CoordinateArraySequence</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>geos::geom::CoordinateArraySequence Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="geos::geom::CoordinateArraySequence" --><!-- doxytag: inherits="geos::geom::CoordinateSequence" -->
<p>The default implementation of <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a>.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="CoordinateArraySequence_8h_source.html">CoordinateArraySequence.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for geos::geom::CoordinateArraySequence:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classgeos_1_1geom_1_1CoordinateArraySequence.png" usemap="#geos::geom::CoordinateArraySequence_map" alt=""/>
  <map id="geos::geom::CoordinateArraySequence_map" name="geos::geom::CoordinateArraySequence_map">
<area href="classgeos_1_1geom_1_1CoordinateSequence.html" alt="geos::geom::CoordinateSequence" shape="rect" coords="0,0,232,24"/>
</map>
</div>

<p><a href="classgeos_1_1geom_1_1CoordinateArraySequence-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"><a class="anchor" id="af052cd60e7d5938696f2f52dfa954586"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::CoordinateArraySequence" ref="af052cd60e7d5938696f2f52dfa954586" args="(const CoordinateArraySequence &amp;cl)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>CoordinateArraySequence</b> (const <a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html">CoordinateArraySequence</a> &amp;cl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a912f0fa8b4d281e44dff85570a837c"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::clone" ref="a3a912f0fa8b4d281e44dff85570a837c" args="() const " -->
<a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a3a912f0fa8b4d281e44dff85570a837c">clone</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a deep copy of this collection. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a64bb37ea512388db8d5f94a5fd4dcf38">getAt</a> (size_t pos) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a read-only reference to <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position i.  <a href="#a64bb37ea512388db8d5f94a5fd4dcf38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcaacc43007ed5450e4c25f29d11ab3b"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::getAt" ref="afcaacc43007ed5450e4c25f29d11ab3b" args="(size_t i, Coordinate &amp;c) const " -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#afcaacc43007ed5450e4c25f29d11ab3b">getAt</a> (size_t i, <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;c) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position i to <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> c. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e723561f76295c8d1185e5a5dbab192"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::getSize" ref="a9e723561f76295c8d1185e5a5dbab192" args="() const " -->
size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a9e723561f76295c8d1185e5a5dbab192">getSize</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of Coordinates (actual or otherwise, as this implementation may not store its data in <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> objects). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt; *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#abe8ac05bfc05af30865e9034e7731fa9">toVector</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a read-only vector with the Coordinates in this collection.  <a href="#abe8ac05bfc05af30865e9034e7731fa9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#acda213d07c0e9cea38b2e60b0e43906f">toVector</a> (std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt; &amp;) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pushes all Coordinates of this sequence onto the provided vector.  <a href="#acda213d07c0e9cea38b2e60b0e43906f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab11cf5baec1c4f7425b4f48787cd66a2"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::CoordinateArraySequence" ref="ab11cf5baec1c4f7425b4f48787cd66a2" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ab11cf5baec1c4f7425b4f48787cd66a2">CoordinateArraySequence</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an empty sequence. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac338d34cbe2620f4522fb2a23c316d47"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::CoordinateArraySequence" ref="ac338d34cbe2620f4522fb2a23c316d47" args="(std::vector&lt; Coordinate &gt; *coords)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ac338d34cbe2620f4522fb2a23c316d47">CoordinateArraySequence</a> (std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt; *coords)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct sequence taking ownership of given <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaddbc365f1597576895213824b98eb62"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::CoordinateArraySequence" ref="aaddbc365f1597576895213824b98eb62" args="(size_t n)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#aaddbc365f1597576895213824b98eb62">CoordinateArraySequence</a> (size_t n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct sequence allocating space for n coordinates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0299c85b69e207bbf837fc32d245a16"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::isEmpty" ref="ad0299c85b69e207bbf837fc32d245a16" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ad0299c85b69e207bbf837fc32d245a16">isEmpty</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns <code>true</code> it list contains no coordinates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1409aea562c360eace0034ead757454"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::add" ref="ae1409aea562c360eace0034ead757454" args="(const Coordinate &amp;c)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ae1409aea562c360eace0034ead757454">add</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;c)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> to the list. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a28dd44b0ccb53b51a681b1ec380f1686">add</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;c, bool allowRepeated)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a coordinate.  <a href="#a28dd44b0ccb53b51a681b1ec380f1686"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a69ebf75749814060476653d44c951d2b">add</a> (size_t i, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;coord, bool allowRepeated)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts the specified coordinate at the specified position in this list.  <a href="#a69ebf75749814060476653d44c951d2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a36beaed573f4d792dc18b839235b7daa">setAt</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;c, size_t pos)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a reference to <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position pos.  <a href="#a36beaed573f4d792dc18b839235b7daa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a466a4ea5d60cf547b6c7efc87d696d37"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::deleteAt" ref="a466a4ea5d60cf547b6c7efc87d696d37" args="(size_t pos)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a466a4ea5d60cf547b6c7efc87d696d37">deleteAt</a> (size_t pos)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position pos (list will shrink). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a69d37d53ed3ce596662f8f12ad18a576"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::toString" ref="a69d37d53ed3ce596662f8f12ad18a576" args="() const " -->
std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a69d37d53ed3ce596662f8f12ad18a576">toString</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a string rapresentation of <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a064c7e6f9e486edffd489f473b7069e9"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::setPoints" ref="a064c7e6f9e486edffd489f473b7069e9" args="(const std::vector&lt; Coordinate &gt; &amp;v)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a064c7e6f9e486edffd489f473b7069e9">setPoints</a> (const std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt; &amp;v)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Substitute <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> list with a copy of the given vector. <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_1geom_1_1CoordinateArraySequence.html#a6c805eb8b6680afa9217c5389fb43c2f">getOrdinate</a> (size_t index, size_t ordinateIndex) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a748c68a0c89fe95facf515d5d4f740d1">setOrdinate</a> (size_t index, size_t ordinateIndex, double value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#a5441e87f44f69cdada5ff3bf906484b9">expandEnvelope</a> (<a class="el" href="classgeos_1_1geom_1_1Envelope.html">Envelope</a> &amp;env) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ae501df51c37e5662470eb6b92c1f849f">getDimension</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a604f4d9b659ca369e19a4fd804ce5003"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::apply_rw" ref="a604f4d9b659ca369e19a4fd804ce5003" args="(const CoordinateFilter *filter)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>apply_rw</b> (const <a class="el" href="classgeos_1_1geom_1_1CoordinateFilter.html">CoordinateFilter</a> *filter)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d5db2de38c0da0edb2364a08729783d"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::apply_ro" ref="a6d5db2de38c0da0edb2364a08729783d" args="(CoordinateFilter *filter) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>apply_ro</b> (<a class="el" href="classgeos_1_1geom_1_1CoordinateFilter.html">CoordinateFilter</a> *filter) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1CoordinateArraySequence.html#ab58fd13bed938a60bb9c1425341faa3d">removeRepeatedPoints</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove consecutive equal Coordinates from the sequence.  <a href="#ab58fd13bed938a60bb9c1425341faa3d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The default implementation of <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html" title="The internal representation of a list of coordinates inside a Geometry.">CoordinateSequence</a>. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a28dd44b0ccb53b51a681b1ec380f1686"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::add" ref="a28dd44b0ccb53b51a681b1ec380f1686" args="(const Coordinate &amp;c, bool allowRepeated)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void geos::geom::CoordinateArraySequence::add </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>allowRepeated</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a coordinate. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>The coordinate to add </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>allowRepeated</em>&nbsp;</td><td>if set to false, repeated coordinates are collapsed </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true (as by general collection contract) </dd></dl>

<p>Reimplemented from <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#ae3d029f6e372293089b3c9171d7e479c">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a69ebf75749814060476653d44c951d2b"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::add" ref="a69ebf75749814060476653d44c951d2b" args="(size_t i, const Coordinate &amp;coord, bool allowRepeated)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void geos::geom::CoordinateArraySequence::add </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>coord</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>allowRepeated</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts the specified coordinate at the specified position in this list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>the position at which to insert </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>coord</em>&nbsp;</td><td>the coordinate to insert </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>allowRepeated</em>&nbsp;</td><td>if set to false, repeated coordinates are collapsed</td></tr>
  </table>
  </dd>
</dl>
<p>NOTE: this is a <a class="el" href="classgeos_1_1geom_1_1CoordinateList.html">CoordinateList</a> interface in JTS </p>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#a194f4989ac4e6171f83facec4ee08ec9">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a5441e87f44f69cdada5ff3bf906484b9"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::expandEnvelope" ref="a5441e87f44f69cdada5ff3bf906484b9" args="(Envelope &amp;env) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geos::geom::CoordinateArraySequence::expandEnvelope </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1Envelope.html">Envelope</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>env</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Expands the given <a class="el" href="classgeos_1_1geom_1_1Envelope.html" title="An Envelope defines a rectangulare region of the 2D coordinate plane.">Envelope</a> to include the coordinates in the sequence. Allows implementing classes to optimize access to coordinate values.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>env</em>&nbsp;</td><td>the envelope to expand </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#ac07da62532a8b03ea7e6fbad2809b0ba">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a64bb37ea512388db8d5f94a5fd4dcf38"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::getAt" ref="a64bb37ea512388db8d5f94a5fd4dcf38" args="(size_t pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>&amp; geos::geom::CoordinateArraySequence::getAt </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a read-only reference to <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position i. </p>
<p>Whether or not the <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> returned is the actual underlying <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> or merely a copy depends on the implementation. </p>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#abd13683c365c0eef322e72ecae3fffa9">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="ae501df51c37e5662470eb6b92c1f849f"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::getDimension" ref="ae501df51c37e5662470eb6b92c1f849f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t geos::geom::CoordinateArraySequence::getDimension </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the dimension (number of ordinates in each coordinate) for this sequence.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the dimension of the sequence. </dd></dl>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#a3c49271fdab8e9b2b4b7511948939652">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a6c805eb8b6680afa9217c5389fb43c2f"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::getOrdinate" ref="a6c805eb8b6680afa9217c5389fb43c2f" args="(size_t index, size_t ordinateIndex) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double geos::geom::CoordinateArraySequence::getOrdinate </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>ordinateIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the ordinate of a coordinate in this sequence. Ordinate indices 0 and 1 are assumed to be X and Y. Ordinates indices greater than 1 have user-defined semantics (for instance, they may contain other dimensions or measure values).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>the coordinate index in the sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ordinateIndex</em>&nbsp;</td><td>the ordinate index in the coordinate (in range [0, dimension-1]) </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#a60768ecf8861abc0d4511f3ff142ae4a">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="ab58fd13bed938a60bb9c1425341faa3d"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::removeRepeatedPoints" ref="ab58fd13bed938a60bb9c1425341faa3d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a>&amp; geos::geom::CoordinateArraySequence::removeRepeatedPoints </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove consecutive equal Coordinates from the sequence. </p>
<p>Equality test is 2D based. Returns a reference to self. </p>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#a7589a0b6d792201f16d764094909805f">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a36beaed573f4d792dc18b839235b7daa"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::setAt" ref="a36beaed573f4d792dc18b839235b7daa" args="(const Coordinate &amp;c, size_t pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geos::geom::CoordinateArraySequence::setAt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a reference to <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> at position pos. </p>
<p>Copy <a class="el" href="classgeos_1_1geom_1_1Coordinate.html" title="Coordinate is the lightweight class used to store coordinates.">Coordinate</a> c to position pos </p>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#ac3090a9fbf6ba8758343212a318a5f89">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="a748c68a0c89fe95facf515d5d4f740d1"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::setOrdinate" ref="a748c68a0c89fe95facf515d5d4f740d1" args="(size_t index, size_t ordinateIndex, double value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geos::geom::CoordinateArraySequence::setOrdinate </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>ordinateIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the value for a given ordinate of a coordinate in this sequence.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>the coordinate index in the sequence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ordinateIndex</em>&nbsp;</td><td>the ordinate index in the coordinate (in range [0, dimension-1]) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>the new ordinate value </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#aeeb0dade88f226128beb31d149b14c9e">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="acda213d07c0e9cea38b2e60b0e43906f"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::toVector" ref="acda213d07c0e9cea38b2e60b0e43906f" args="(std::vector&lt; Coordinate &gt; &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geos::geom::CoordinateArraySequence::toVector </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>coords</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pushes all Coordinates of this sequence onto the provided vector. </p>
<p>This method is a port of the toCoordinateArray() method of JTS. </p>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#aa9338282a924b596db9c923aa4eef188">geos::geom::CoordinateSequence</a>.</p>

</div>
</div>
<a class="anchor" id="abe8ac05bfc05af30865e9034e7731fa9"></a><!-- doxytag: member="geos::geom::CoordinateArraySequence::toVector" ref="abe8ac05bfc05af30865e9034e7731fa9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a>&gt;* geos::geom::CoordinateArraySequence::toVector </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a read-only vector with the Coordinates in this collection. </p>
<p>Whether or not the Coordinates returned are the actual underlying Coordinates or merely copies depends on the implementation. Note that if this implementation does not store its data as an array of Coordinates, this method will incur a performance penalty because the array needs to be built from scratch.</p>
<p>This method is a port of the toCoordinateArray() method of JTS. It is not much used as memory management requires us to know wheter we should or not delete the returned object in a consistent way. Our options are: use shared_ptr&lt;Coordinate&gt; or always keep ownerhips of an eventual newly created vector. We opted for the second, so the returned object is a const, to also ensure that returning an internal pointer doesn't make the object mutable.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>use toVector(std::vector&lt;Coordinate&gt;&amp;) instead </dd></dl>

<p>Implements <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html#a209e02161c3752d04ff436b8a813cb20">geos::geom::CoordinateSequence</a>.</p>

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