<!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::simplify::DouglasPeuckerLineSimplifier 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><b>simplify</b> </li> <li><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier.html">geos::simplify::DouglasPeuckerLineSimplifier</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::simplify::DouglasPeuckerLineSimplifier Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::simplify::DouglasPeuckerLineSimplifier" --> <p>Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="DouglasPeuckerLineSimplifier_8h_source.html">DouglasPeuckerLineSimplifier.h</a>></code></p> <p><a href="classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab9953bd464fb44c20e6717f1218c0bb6"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::BoolVect" ref="ab9953bd464fb44c20e6717f1218c0bb6" args="" --> typedef std::vector< short int > </td><td class="memItemRight" valign="bottom"><b>BoolVect</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a258fb765d2e45ba07da7bd5225a1f253"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::BoolVectAutoPtr" ref="a258fb765d2e45ba07da7bd5225a1f253" args="" --> typedef std::auto_ptr< BoolVect > </td><td class="memItemRight" valign="bottom"><b>BoolVectAutoPtr</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fd791bd65aa85331ab15ad8f7e6141f"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::CoordsVect" ref="a0fd791bd65aa85331ab15ad8f7e6141f" args="" --> typedef std::vector<br class="typebreak"/> < <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> > </td><td class="memItemRight" valign="bottom"><b>CoordsVect</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1c4441c36f7c937344b8c90314902be"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::CoordsVectAutoPtr" ref="ae1c4441c36f7c937344b8c90314902be" args="" --> typedef std::auto_ptr< CoordsVect > </td><td class="memItemRight" valign="bottom"><b>CoordsVectAutoPtr</b></td></tr> <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="a85f6ae3d1c6e34ac30d448313815d50a"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::DouglasPeuckerLineSimplifier" ref="a85f6ae3d1c6e34ac30d448313815d50a" args="(const CoordsVect &nPts)" --> </td><td class="memItemRight" valign="bottom"><b>DouglasPeuckerLineSimplifier</b> (const CoordsVect &nPts)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier.html#a722e8afe0527f2403655c7c7034d63e6">setDistanceTolerance</a> (double nDistanceTolerance)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the distance tolerance for the simplification. <a href="#a722e8afe0527f2403655c7c7034d63e6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7708c5a1d2cdca4a84853667d1fff907"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::simplify" ref="a7708c5a1d2cdca4a84853667d1fff907" args="()" --> CoordsVectAutoPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier.html#a7708c5a1d2cdca4a84853667d1fff907">simplify</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a newly allocated Coordinate vector, wrapped into an auto_ptr. <br/></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"><a class="anchor" id="a2350c9e531d607496a861c5470b8a763"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::simplify" ref="a2350c9e531d607496a861c5470b8a763" args="(const CoordsVect &nPts, double distanceTolerance)" --> static CoordsVectAutoPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier.html#a2350c9e531d607496a861c5470b8a763">simplify</a> (const CoordsVect &nPts, double distanceTolerance)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a newly allocated Coordinate vector, wrapped into an auto_ptr. <br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a722e8afe0527f2403655c7c7034d63e6"></a><!-- doxytag: member="geos::simplify::DouglasPeuckerLineSimplifier::setDistanceTolerance" ref="a722e8afe0527f2403655c7c7034d63e6" args="(double nDistanceTolerance)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::simplify::DouglasPeuckerLineSimplifier::setDistanceTolerance </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>nDistanceTolerance</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the distance tolerance for the simplification. </p> <p>All vertices in the simplified linestring will be within this distance of the original linestring.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>nDistanceTolerance</em> </td><td>the approximation tolerance to use </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="DouglasPeuckerLineSimplifier_8h_source.html">DouglasPeuckerLineSimplifier.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>