<!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::linearref::ExtractLineByLocation 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>linearref</b> </li> <li><a class="el" href="classgeos_1_1linearref_1_1ExtractLineByLocation.html">geos::linearref::ExtractLineByLocation</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::linearref::ExtractLineByLocation Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::linearref::ExtractLineByLocation" --> <p><code>#include <<a class="el" href="ExtractLineByLocation_8h_source.html">ExtractLineByLocation.h</a>></code></p> <p><a href="classgeos_1_1linearref_1_1ExtractLineByLocation-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="aac8678e1088b3d8878d3d660bfb699af"></a><!-- doxytag: member="geos::linearref::ExtractLineByLocation::ExtractLineByLocation" ref="aac8678e1088b3d8878d3d660bfb699af" args="(const geom::Geometry *line)" --> </td><td class="memItemRight" valign="bottom"><b>ExtractLineByLocation</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *line)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#a7d042d5d111c8f9992fb9afa28e15cdd">extract</a> (const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &start, const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &end)</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">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#af8bbaf811f548ce670eef27e512142cc">extract</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *line, const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &start, const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &end)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Extracts the subline of a linear <a class="el" href="">Geometry</a> between two <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>s on the line. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="af8bbaf811f548ce670eef27e512142cc"></a><!-- doxytag: member="geos::linearref::ExtractLineByLocation::extract" ref="af8bbaf811f548ce670eef27e512142cc" args="(const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::linearref::ExtractLineByLocation::extract </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>line</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> & </td> <td class="paramname"> <em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> & </td> <td class="paramname"> <em>end</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Computes the subline of a <a class="el" href="">LineString</a> between two <a class="el" href="">LineStringLocation</a>s on the line. If the start location is after the end location, the computed geometry is reversed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>line</em> </td><td>the line to use as the baseline </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>the start location </td></tr> <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>the end location </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the extracted subline </dd></dl> </div> </div> <a class="anchor" id="a7d042d5d111c8f9992fb9afa28e15cdd"></a><!-- doxytag: member="geos::linearref::ExtractLineByLocation::extract" ref="a7d042d5d111c8f9992fb9afa28e15cdd" args="(const LinearLocation &start, const LinearLocation &end)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::linearref::ExtractLineByLocation::extract </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> & </td> <td class="paramname"> <em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> & </td> <td class="paramname"> <em>end</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Extracts a subline of the input. If <code>end < start</code> the linear geometry computed will be reversed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>the start location </td></tr> <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>the end location </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>a linear geometry </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="ExtractLineByLocation_8h_source.html">ExtractLineByLocation.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>