geos_390_docs/LinearLocation_8h_source.html

94 lines
32 KiB
HTML

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GEOS: LinearLocation.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_557b1f226c2ae37e53b1ff2907cf4831.html">linearref</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">LinearLocation.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="LinearLocation_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Copyright (C) 2011 Sandro Santilli &lt;strk@kbt.io&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> **********************************************************************</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * Last port: linearref/LinearLocation.java r463</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#ifndef GEOS_LINEARREF_LINEARLOCATION_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#define GEOS_LINEARREF_LINEARLOCATION_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span> <span class="comment">// for std::unique_ptr</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Coordinate_8h.html">geos/geom/Coordinate.h</a>&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Geometry_8h.html">geos/geom/Geometry.h</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LineSegment_8h.html">geos/geom/LineSegment.h</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span>linearref { <span class="comment">// geos::linearref</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearLocation.html"> 44</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearLocation.html#a3b269d2f5e864d6b3c3a5f3258d001fc"> 46</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a3b269d2f5e864d6b3c3a5f3258d001fc">componentIndex</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearLocation.html#aa3529e2f1b4aa3d97a8862f99c1f13d0"> 47</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aa3529e2f1b4aa3d97a8862f99c1f13d0">segmentIndex</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearLocation.html#ac3c3cc8aa4a461abf7e125bf8af21012"> 48</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ac3c3cc8aa4a461abf7e125bf8af21012">segmentFraction</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ad34e67ca38de697d11dc3e255224b920">normalize</a>();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">static</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a017a305a4c32502bb87ab61cd569fbc7">getEndLocation</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">static</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ae9137b3ee11b144d01d928a2ad85ac14">pointAlongSegmentByFraction</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp; p0, <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp; p1,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">double</span> frac);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">LinearLocation</a>(<span class="keywordtype">size_t</span> segmentIndex = 0, <span class="keywordtype">double</span> segmentFraction = 0.0);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">LinearLocation</a>(<span class="keywordtype">size_t</span> componentIndex, <span class="keywordtype">size_t</span> segmentIndex, <span class="keywordtype">double</span> segmentFraction);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">clamp</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#abe73a6c5d10b6bc8f2dbfa5bd25ddc82">snapToVertex</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom, <span class="keywordtype">double</span> minDistance);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ad85594096af5010d17cfa365b90c5fc6">getSegmentLength</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a9480d64cb462dc9ae0aacb9489f2d71a">setToEnd</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a3cf29e0da01a96313ae63759835cba57">getComponentIndex</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a801f6db68967f91b51aa0a426cc6b438">getSegmentIndex</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">getSegmentFraction</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aa8492cc339a966a44c2db8a0446110fb">isVertex</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a50df7142413e9e0f71c08a17e44fb53a">getCoordinate</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; std::unique_ptr&lt;geom::LineSegment&gt; <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#af3303b29a06005f9aec33f98f13ba06a">getSegment</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a0a7f6a53225266e50cd5e9f74aacd975">isValid</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aeb879ed9f26e208b409a5911bbd181fc">compareTo</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">compareLocationValues</a>(<span class="keywordtype">size_t</span> componentIndex1, <span class="keywordtype">size_t</span> segmentIndex1, <span class="keywordtype">double</span> segmentFraction1) <span class="keyword">const</span>;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">compareLocationValues</a>(</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordtype">size_t</span> componentIndex0, <span class="keywordtype">size_t</span> segmentIndex0, <span class="keywordtype">double</span> segmentFraction0,</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordtype">size_t</span> componentIndex1, <span class="keywordtype">size_t</span> segmentIndex1, <span class="keywordtype">double</span> segmentFraction1);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aa2afb586307fce0af72b060354f1c78c">isOnSameSegment</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>&amp; loc) <span class="keyword">const</span>;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a92e789161df73b41357125289d9b767a">isEndpoint</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; linearGeom) <span class="keyword">const</span>;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a52969730714ff3945d04707c6d045179">operator&lt;&lt; </a>(std::ostream&amp; out, <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>&amp; obj);</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;};</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;} <span class="comment">// namespace geos.linearref</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;} <span class="comment">// namespace geos</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_aa3529e2f1b4aa3d97a8862f99c1f13d0"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aa3529e2f1b4aa3d97a8862f99c1f13d0">geos::linearref::LinearLocation::segmentIndex</a></div><div class="ttdeci">size_t segmentIndex</div><div class="ttdef"><b>Definition:</b> <a href="LinearLocation_8h_source.html#l00047">LinearLocation.h:47</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a3b269d2f5e864d6b3c3a5f3258d001fc"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a3b269d2f5e864d6b3c3a5f3258d001fc">geos::linearref::LinearLocation::componentIndex</a></div><div class="ttdeci">size_t componentIndex</div><div class="ttdef"><b>Definition:</b> <a href="LinearLocation_8h_source.html#l00046">LinearLocation.h:46</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Coordinate_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Coordinate.html">geos::geom::Coordinate</a></div><div class="ttdoc">Coordinate is the lightweight class used to store coordinates. </div><div class="ttdef"><b>Definition:</b> <a href="Coordinate_8h_source.html#l00060">Coordinate.h:60</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_aa8492cc339a966a44c2db8a0446110fb"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aa8492cc339a966a44c2db8a0446110fb">geos::linearref::LinearLocation::isVertex</a></div><div class="ttdeci">bool isVertex() const </div><div class="ttdoc">Tests whether this location refers to a vertex. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ab2ecfec59697bdd38274173e5fb847e4"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">geos::linearref::LinearLocation::getSegmentFraction</a></div><div class="ttdeci">double getSegmentFraction() const </div><div class="ttdoc">Gets the segment fraction for this location. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a50df7142413e9e0f71c08a17e44fb53a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a50df7142413e9e0f71c08a17e44fb53a">geos::linearref::LinearLocation::getCoordinate</a></div><div class="ttdeci">geom::Coordinate getCoordinate(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Gets the Coordinate along the given linear Geometry which is referenced by this location. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ac1de5d7e436b7249e57c2227c566eafa"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">geos::linearref::LinearLocation::clamp</a></div><div class="ttdeci">void clamp(const geom::Geometry *linear)</div><div class="ttdoc">Ensures the indexes are valid for a given linear Geometry. </div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Geometry_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html">geos::geom::Geometry</a></div><div class="ttdoc">Basic implementation of Geometry, constructed and destructed by GeometryFactory. </div><div class="ttdef"><b>Definition:</b> <a href="Geometry_8h_source.html#l00188">Geometry.h:188</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ad85594096af5010d17cfa365b90c5fc6"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ad85594096af5010d17cfa365b90c5fc6">geos::linearref::LinearLocation::getSegmentLength</a></div><div class="ttdeci">double getSegmentLength(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Gets the length of the segment in the given Geometry containing this location. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a52969730714ff3945d04707c6d045179"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a52969730714ff3945d04707c6d045179">geos::linearref::LinearLocation::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const LinearLocation &amp;obj)</div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a79d7e63643fc4608a15bc5217c092dc0"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">geos::linearref::LinearLocation::compareLocationValues</a></div><div class="ttdeci">int compareLocationValues(size_t componentIndex1, size_t segmentIndex1, double segmentFraction1) const </div><div class="ttdoc">Compares this object with the specified index values for order. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a801f6db68967f91b51aa0a426cc6b438"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a801f6db68967f91b51aa0a426cc6b438">geos::linearref::LinearLocation::getSegmentIndex</a></div><div class="ttdeci">size_t getSegmentIndex() const </div><div class="ttdoc">Gets the segment index for this location. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ac3c3cc8aa4a461abf7e125bf8af21012"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ac3c3cc8aa4a461abf7e125bf8af21012">geos::linearref::LinearLocation::segmentFraction</a></div><div class="ttdeci">double segmentFraction</div><div class="ttdef"><b>Definition:</b> <a href="LinearLocation_8h_source.html#l00048">LinearLocation.h:48</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html">geos::linearref::LinearLocation</a></div><div class="ttdoc">Represents a location along a LineString or MultiLineString. </div><div class="ttdef"><b>Definition:</b> <a href="LinearLocation_8h_source.html#l00044">LinearLocation.h:44</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_af3303b29a06005f9aec33f98f13ba06a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#af3303b29a06005f9aec33f98f13ba06a">geos::linearref::LinearLocation::getSegment</a></div><div class="ttdeci">std::unique_ptr&lt; geom::LineSegment &gt; getSegment(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Gets a LineSegment representing the segment of the given linear Geometry which contains this location...</div></div>
<div class="ttc" id="LineSegment_8h_html"><div class="ttname"><a href="LineSegment_8h.html">LineSegment.h</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_aa2afb586307fce0af72b060354f1c78c"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aa2afb586307fce0af72b060354f1c78c">geos::linearref::LinearLocation::isOnSameSegment</a></div><div class="ttdeci">bool isOnSameSegment(const LinearLocation &amp;loc) const </div><div class="ttdoc">Tests whether two locations are on the same segment in the parent Geometry. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ad34e67ca38de697d11dc3e255224b920"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ad34e67ca38de697d11dc3e255224b920">geos::linearref::LinearLocation::normalize</a></div><div class="ttdeci">void normalize()</div><div class="ttdoc">Ensures the individual values are locally valid. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a92e789161df73b41357125289d9b767a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a92e789161df73b41357125289d9b767a">geos::linearref::LinearLocation::isEndpoint</a></div><div class="ttdeci">bool isEndpoint(const geom::Geometry &amp;linearGeom) const </div><div class="ttdoc">Tests whether this location is an endpoint of the linear component it refers to. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ae9137b3ee11b144d01d928a2ad85ac14"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ae9137b3ee11b144d01d928a2ad85ac14">geos::linearref::LinearLocation::pointAlongSegmentByFraction</a></div><div class="ttdeci">static geom::Coordinate pointAlongSegmentByFraction(const geom::Coordinate &amp;p0, const geom::Coordinate &amp;p1, double frac)</div><div class="ttdoc">Computes the Coordinate of a point a given fraction along the line segment (p0, p1). </div></div>
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_adbc2d0094055a020468c11fd14c504b1"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">geos::linearref::LinearLocation::LinearLocation</a></div><div class="ttdeci">LinearLocation(size_t segmentIndex=0, double segmentFraction=0.0)</div><div class="ttdoc">Creates a location referring to the start of a linear geometry. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a0a7f6a53225266e50cd5e9f74aacd975"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a0a7f6a53225266e50cd5e9f74aacd975">geos::linearref::LinearLocation::isValid</a></div><div class="ttdeci">bool isValid(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Tests whether this location refers to a valid location on the given linear Geometry. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a017a305a4c32502bb87ab61cd569fbc7"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a017a305a4c32502bb87ab61cd569fbc7">geos::linearref::LinearLocation::getEndLocation</a></div><div class="ttdeci">static LinearLocation getEndLocation(const geom::Geometry *linear)</div><div class="ttdoc">Gets a location which refers to the end of a linear Geometry. </div></div>
<div class="ttc" id="Coordinate_8h_html"><div class="ttname"><a href="Coordinate_8h.html">Coordinate.h</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a9480d64cb462dc9ae0aacb9489f2d71a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a9480d64cb462dc9ae0aacb9489f2d71a">geos::linearref::LinearLocation::setToEnd</a></div><div class="ttdeci">void setToEnd(const geom::Geometry *linear)</div><div class="ttdoc">Sets the value of this location to refer the end of a linear geometry. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_abe73a6c5d10b6bc8f2dbfa5bd25ddc82"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#abe73a6c5d10b6bc8f2dbfa5bd25ddc82">geos::linearref::LinearLocation::snapToVertex</a></div><div class="ttdeci">void snapToVertex(const geom::Geometry *linearGeom, double minDistance)</div><div class="ttdoc">Snaps the value of this location to the nearest vertex on the given linear Geometry, if the vertex is closer than minDistance. </div></div>
<div class="ttc" id="Geometry_8h_html"><div class="ttname"><a href="Geometry_8h.html">Geometry.h</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_aeb879ed9f26e208b409a5911bbd181fc"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aeb879ed9f26e208b409a5911bbd181fc">geos::linearref::LinearLocation::compareTo</a></div><div class="ttdeci">int compareTo(const LinearLocation &amp;other) const </div><div class="ttdoc">Compares this object with the specified object for order. </div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a3cf29e0da01a96313ae63759835cba57"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a3cf29e0da01a96313ae63759835cba57">geos::linearref::LinearLocation::getComponentIndex</a></div><div class="ttdeci">size_t getComponentIndex() const </div><div class="ttdoc">Gets the component index for this location. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>