<!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::LengthLocationMap 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_1LengthLocationMap.html">geos::linearref::LengthLocationMap</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::LengthLocationMap Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::linearref::LengthLocationMap" --> <p><code>#include <<a class="el" href="LengthLocationMap_8h_source.html">LengthLocationMap.h</a>></code></p> <p><a href="classgeos_1_1linearref_1_1LengthLocationMap-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="aec43907d90023a6dc760b9c8df2ea40a"></a><!-- doxytag: member="geos::linearref::LengthLocationMap::LengthLocationMap" ref="aec43907d90023a6dc760b9c8df2ea40a" args="(const geom::Geometry *linearGeom)" --> </td><td class="memItemRight" valign="bottom"><b>LengthLocationMap</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linearGeom)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1linearref_1_1LengthLocationMap.html#a81f667d697bb3e44cf7f3cdf3c8d78d6">getLocation</a> (double length) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa6ec4ee9d1d1b665b39c885a68d11efe"></a><!-- doxytag: member="geos::linearref::LengthLocationMap::getLength" ref="aa6ec4ee9d1d1b665b39c885a68d11efe" args="(const LinearLocation &loc) const " --> double </td><td class="memItemRight" valign="bottom"><b>getLength</b> (const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &loc) const </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_1linearref_1_1LinearLocation.html">LinearLocation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1linearref_1_1LengthLocationMap.html#ad1d7efe751b46d58b3882520493a191a">getLocation</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linearGeom, double length)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1linearref_1_1LengthLocationMap.html#a84c50d3b08e0c48c16feb1af0ba77434">getLength</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *linearGeom, const <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> &loc)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Computes the <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> for a given length along a linear <a class="el" href="">Geometry</a>. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a84c50d3b08e0c48c16feb1af0ba77434"></a><!-- doxytag: member="geos::linearref::LengthLocationMap::getLength" ref="a84c50d3b08e0c48c16feb1af0ba77434" args="(const geom::Geometry *linearGeom, const LinearLocation &loc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static double geos::linearref::LengthLocationMap::getLength </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>linearGeom</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>loc</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 length for a given <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> on a linear <a class="el" href="">Geometry</a>.</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 linear geometry to use </td></tr> <tr><td valign="top"></td><td valign="top"><em>loc</em> </td><td>the <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> index of the location </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the length for the <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> </dd></dl> </div> </div> <a class="anchor" id="a81f667d697bb3e44cf7f3cdf3c8d78d6"></a><!-- doxytag: member="geos::linearref::LengthLocationMap::getLocation" ref="a81f667d697bb3e44cf7f3cdf3c8d78d6" args="(double length) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> geos::linearref::LengthLocationMap::getLocation </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>length</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Compute the <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> corresponding to a length. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>the length index </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the corresponding <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html" title="Represents a location along a LineString or MultiLineString.">LinearLocation</a> </dd></dl> </div> </div> <a class="anchor" id="ad1d7efe751b46d58b3882520493a191a"></a><!-- doxytag: member="geos::linearref::LengthLocationMap::getLocation" ref="ad1d7efe751b46d58b3882520493a191a" args="(const geom::Geometry *linearGeom, double length)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> geos::linearref::LengthLocationMap::getLocation </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>linearGeom</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>length</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 <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> for a given length along a linear <a class="el" href="">Geometry</a>.</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 linear geometry to use </td></tr> <tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>the length index of the location </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the <a class="el" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> for the length </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="LengthLocationMap_8h_source.html">LengthLocationMap.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>