EVOLUTION-MANAGER
Edit File: LocationIndexedLine_8h_source.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.5"/> <title>GEOS: LocationIndexedLine.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 style="padding-left: 0.5em;"> <div id="projectname">GEOS  <span id="projectnumber">3.8.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" 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><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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_c7abe0914a0ee2b00cd766c552eb2d19.html">include</a></li><li class="navelem"><a class="el" href="dir_165a26498f94b7fe2ccb32b9bb9b3ac5.html">geos</a></li><li class="navelem"><a class="el" href="dir_00319612f9e97a378ff9a2d84d6d49ca.html">linearref</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">LocationIndexedLine.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**********************************************************************</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * GEOS - Geometry Engine Open Source</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * http://geos.osgeo.org</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Copyright (C) 2011 Sandro Santilli <strk@kbt.io></span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * by the Free Software Foundation.</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * See the COPYING file for more information.</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> **********************************************************************</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Last port: linearref/LocationIndexedLine.java r466</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> **********************************************************************/</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef GEOS_LINEARREF_LOCATIONINDEXEDLINE_H</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"></span><span class="preprocessor">#define GEOS_LINEARREF_LOCATIONINDEXEDLINE_H</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <geos/export.h></span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <geos/geom/Coordinate.h></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <geos/geom/Geometry.h></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <geos/linearref/LinearLocation.h></span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <geos/linearref/LocationIndexOfPoint.h></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <geos/linearref/LocationIndexOfLine.h></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <geos/util/IllegalArgumentException.h></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>geos {</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span>linearref { <span class="comment">// geos::linearref</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html"> 39</a></span> <span class="keyword">class </span>GEOS_DLL <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html">LocationIndexedLine</a> {</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom;</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  checkGeometryType()</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">if</span>(!linearGeom->isLineal()) {</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">throw</span> <a class="code" href="classgeos_1_1util_1_1IllegalArgumentException.html">util::IllegalArgumentException</a>(<span class="stringliteral">"Input geometry must be linear"</span>);</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#aafb7b2747c28e27780f7e89aa71fe528"> 60</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#aafb7b2747c28e27780f7e89aa71fe528">LocationIndexedLine</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* p_linearGeom)</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  : linearGeom(p_linearGeom)</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  checkGeometryType();</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a></div> <div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a697807a0d1851ca60707991fdf343499"> 80</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a697807a0d1851ca60707991fdf343499">extractPoint</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& index)<span class="keyword"> const</span></div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a50df7142413e9e0f71c08a17e44fb53a">getCoordinate</a>(linearGeom);</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a></div> <div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#abbb5af4008a39c36cde036accf71bb2d"> 105</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#abbb5af4008a39c36cde036accf71bb2d">extractPoint</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& index,</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">double</span> offsetDistance)<span class="keyword"> const</span></div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> ret;</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#af3303b29a06005f9aec33f98f13ba06a">getSegment</a>(linearGeom)->pointAlongOffset(</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">getSegmentFraction</a>(), offsetDistance, ret</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  );</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> ret;</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  std::unique_ptr<geom::Geometry></div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a1d5406c9af8e126396052603af1eed30"> 128</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a1d5406c9af8e126396052603af1eed30">extractLine</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& startIndex,</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& endIndex)<span class="keyword"> const</span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#a3b7be088b267db30899dbdf4696407ca">ExtractLineByLocation::extract</a>(linearGeom, startIndex, endIndex);</div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af36058eb4bf3b9a9dd17df4165666f7e"> 151</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af36058eb4bf3b9a9dd17df4165666f7e">indexOf</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& pt)<span class="keyword"> const</span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOf(linearGeom, pt);</div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a99e001504849e601400a5bac60697fe5"> 181</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a99e001504849e601400a5bac60697fe5">indexOfAfter</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& pt,</div> <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& minIndex)<span class="keyword"> const</span></div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOfAfter(linearGeom, pt, &minIndex);</div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  }</div> <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>*</div> <div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a90296472f4dc4a9b6f0d8178b7cb4632"> 199</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a90296472f4dc4a9b6f0d8178b7cb4632">indicesOf</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* subLine)<span class="keyword"> const</span></div> <div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexOfLine.html#a38bd354832f0cc07c37e805526b11384">LocationIndexOfLine::indicesOf</a>(linearGeom, subLine);</div> <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  }</div> <div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a8250d38dfdcdd4d2d1c9864e8971ffb5"> 217</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a8250d38dfdcdd4d2d1c9864e8971ffb5">project</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& pt)<span class="keyword"> const</span></div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOf(linearGeom, pt);</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af358d7a08139a04628707228ca3c3765"> 229</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af358d7a08139a04628707228ca3c3765">getStartIndex</a>()<span class="keyword"> const</span></div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>();</div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ab84bfb78f1dcec952c2feb44032b8819"> 241</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ab84bfb78f1dcec952c2feb44032b8819">getEndIndex</a>()<span class="keyword"> const</span></div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a017a305a4c32502bb87ab61cd569fbc7">LinearLocation::getEndLocation</a>(linearGeom);</div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  }</div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span> </div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5daedcb95e0f28750959b63995919896"> 254</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5daedcb95e0f28750959b63995919896">isValidIndex</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& index)<span class="keyword"> const</span></div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">return</span> index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a0a7f6a53225266e50cd5e9f74aacd975">isValid</a>(linearGeom);</div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a></div> <div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5766846f815b9af53875048ee95b65a2"> 268</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5766846f815b9af53875048ee95b65a2">clampIndex</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& index)<span class="keyword"> const</span></div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> loc = index;</div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  loc.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">clamp</a>(linearGeom);</div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">return</span> loc;</div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> };</div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> } <span class="comment">// geos::linearref</span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> } <span class="comment">// geos</span></div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="preprocessor">#endif</span></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexOfLine_html_a38bd354832f0cc07c37e805526b11384"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexOfLine.html#a38bd354832f0cc07c37e805526b11384">geos::linearref::LocationIndexOfLine::indicesOf</a></div><div class="ttdeci">static LinearLocation * indicesOf(const geom::Geometry *linearGeom, const geom::Geometry *subLine)</div><div class="ttdoc">Determines the location of a subline along a linear Geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_af36058eb4bf3b9a9dd17df4165666f7e"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af36058eb4bf3b9a9dd17df4165666f7e">geos::linearref::LocationIndexedLine::indexOf</a></div><div class="ttdeci">LinearLocation indexOf(const geom::Coordinate &pt) const </div><div class="ttdoc">Computes the index for a given point on the line. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:151</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a99e001504849e601400a5bac60697fe5"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a99e001504849e601400a5bac60697fe5">geos::linearref::LocationIndexedLine::indexOfAfter</a></div><div class="ttdeci">LinearLocation indexOfAfter(const geom::Coordinate &pt, const LinearLocation &minIndex) const </div><div class="ttdoc">Finds the index for a point on the line which is greater than the given index. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:181</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> Coordinate.h:60</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_af358d7a08139a04628707228ca3c3765"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af358d7a08139a04628707228ca3c3765">geos::linearref::LocationIndexedLine::getStartIndex</a></div><div class="ttdeci">LinearLocation getStartIndex() const </div><div class="ttdoc">Returns the index of the start of the line. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:229</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_1ExtractLineByLocation_html_a3b7be088b267db30899dbdf4696407ca"><div class="ttname"><a href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#a3b7be088b267db30899dbdf4696407ca">geos::linearref::ExtractLineByLocation::extract</a></div><div class="ttdeci">static std::unique_ptr< geom::Geometry > extract(const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end)</div><div class="ttdoc">Computes the subline of a LineString between two LinearLocations on the line. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a90296472f4dc4a9b6f0d8178b7cb4632"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a90296472f4dc4a9b6f0d8178b7cb4632">geos::linearref::LocationIndexedLine::indicesOf</a></div><div class="ttdeci">LinearLocation * indicesOf(const geom::Geometry *subLine) const </div><div class="ttdoc">Computes the indices for a subline of the line. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:199</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> Geometry.h:188</div></div> <div class="ttc" id="classgeos_1_1util_1_1IllegalArgumentException_html"><div class="ttname"><a href="classgeos_1_1util_1_1IllegalArgumentException.html">geos::util::IllegalArgumentException</a></div><div class="ttdoc">Indicates one or more illegal arguments. </div><div class="ttdef"><b>Definition:</b> IllegalArgumentException.h:34</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> LinearLocation.h:44</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< geom::LineSegment > 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="classgeos_1_1linearref_1_1LocationIndexedLine_html_a5daedcb95e0f28750959b63995919896"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5daedcb95e0f28750959b63995919896">geos::linearref::LocationIndexedLine::isValidIndex</a></div><div class="ttdeci">bool isValidIndex(const LinearLocation &index) const </div><div class="ttdoc">Tests whether an index is in the valid index range for the line. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:254</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a1d5406c9af8e126396052603af1eed30"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a1d5406c9af8e126396052603af1eed30">geos::linearref::LocationIndexedLine::extractLine</a></div><div class="ttdeci">std::unique_ptr< geom::Geometry > extractLine(const LinearLocation &startIndex, const LinearLocation &endIndex) const </div><div class="ttdoc">Computes the LineString for the interval on the line between the given indices. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:128</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_abbb5af4008a39c36cde036accf71bb2d"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#abbb5af4008a39c36cde036accf71bb2d">geos::linearref::LocationIndexedLine::extractPoint</a></div><div class="ttdeci">geom::Coordinate extractPoint(const LinearLocation &index, double offsetDistance) const </div><div class="ttdoc">Computes the Coordinate for the point on the line at the given index, offset by the given distance...</div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:105</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a697807a0d1851ca60707991fdf343499"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a697807a0d1851ca60707991fdf343499">geos::linearref::LocationIndexedLine::extractPoint</a></div><div class="ttdeci">geom::Coordinate extractPoint(const LinearLocation &index) const </div><div class="ttdoc">Computes the Coordinate for the point on the line at the given index. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:80</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a5766846f815b9af53875048ee95b65a2"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5766846f815b9af53875048ee95b65a2">geos::linearref::LocationIndexedLine::clampIndex</a></div><div class="ttdeci">LinearLocation clampIndex(const LinearLocation &index) const </div><div class="ttdoc">Computes a valid index for this line by clamping the given index to the valid range of index values...</div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:268</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_aafb7b2747c28e27780f7e89aa71fe528"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#aafb7b2747c28e27780f7e89aa71fe528">geos::linearref::LocationIndexedLine::LocationIndexedLine</a></div><div class="ttdeci">LocationIndexedLine(const geom::Geometry *p_linearGeom)</div><div class="ttdoc">Constructs an object which allows linear referencing along a given linear Geometry. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:60</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="classgeos_1_1linearref_1_1LocationIndexedLine_html_ab84bfb78f1dcec952c2feb44032b8819"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ab84bfb78f1dcec952c2feb44032b8819">geos::linearref::LocationIndexedLine::getEndIndex</a></div><div class="ttdeci">LinearLocation getEndIndex() const </div><div class="ttdoc">Returns the index of the end of the line. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:241</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a8250d38dfdcdd4d2d1c9864e8971ffb5"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a8250d38dfdcdd4d2d1c9864e8971ffb5">geos::linearref::LocationIndexedLine::project</a></div><div class="ttdeci">LinearLocation project(const geom::Coordinate &pt) const </div><div class="ttdoc">Computes the index for the closest point on the line to the given point. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:217</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html">geos::linearref::LocationIndexedLine</a></div><div class="ttdoc">Supports linear referencing along a linear Geometry using LinearLocations as the index. </div><div class="ttdef"><b>Definition:</b> LocationIndexedLine.h:39</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>