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.5.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> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_78009f08da3e03d86b70776dcc463e92.html">include</a></li><li class="navelem"><a class="el" href="dir_40c9e98f0599f998dfc16f8b0ec4bf37.html">geos</a></li><li class="navelem"><a class="el" href="dir_33ab82ab366d28e0c899d5be4fdea085.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@keybit.net></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/geom/Lineal.h></span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <geos/linearref/LinearLocation.h></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <geos/linearref/LocationIndexOfPoint.h></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <geos/linearref/LocationIndexOfLine.h></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <geos/util/IllegalArgumentException.h></span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span>geos {</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <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> </div> <div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html"> 40</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="l00041"></a><span class="lineno"> 41</span> {</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</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="l00044"></a><span class="lineno"> 44</span> </div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> checkGeometryType()</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> ( ! dynamic_cast<const geom::Lineal*>(linearGeom) )</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</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="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#a5682b961049108bfa337f4ae7b373e9a"> 60</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5682b961049108bfa337f4ae7b373e9a">LocationIndexedLine</a>(<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="l00061"></a><span class="lineno"> 61</span>  : linearGeom(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"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a697807a0d1851ca60707991fdf343499"> 79</a></span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <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="l00080"></a><span class="lineno"> 80</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</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="l00082"></a><span class="lineno"> 82</span>  }</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="l00103"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#abbb5af4008a39c36cde036accf71bb2d"> 103</a></span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <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="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">double</span> offsetDistance)<span class="keyword"> const</span></div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> ret;</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a0a4580505787da9f9e6a89eea69590cd">getSegment</a>(linearGeom)->pointAlongOffset(</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">getSegmentFraction</a>(), offsetDistance, ret</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  );</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> 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> </div> <div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a794cf0b6425b50119045cfa45f118d11"> 125</a></span>  <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *<a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a794cf0b6425b50119045cfa45f118d11">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="l00126"></a><span class="lineno"> 126</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="l00127"></a><span class="lineno"> 127</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#af8bbaf811f548ce670eef27e512142cc">ExtractLineByLocation::extract</a>(linearGeom, startIndex, endIndex);</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div> <div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af36058eb4bf3b9a9dd17df4165666f7e"> 147</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <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="l00148"></a><span class="lineno"> 148</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOf(linearGeom, pt);</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  }</div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div> <div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a99e001504849e601400a5bac60697fe5"> 176</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <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="l00177"></a><span class="lineno"> 177</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="l00178"></a><span class="lineno"> 178</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOfAfter(linearGeom, pt, &minIndex);</div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div> <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div> <div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a90296472f4dc4a9b6f0d8178b7cb4632"> 193</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>* <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="l00194"></a><span class="lineno"> 194</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</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="l00196"></a><span class="lineno"> 196</span>  }</div> <div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div> <div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a8250d38dfdcdd4d2d1c9864e8971ffb5"> 210</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <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="l00211"></a><span class="lineno"> 211</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> LocationIndexOfPoint::indexOf(linearGeom, pt);</div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div> <div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af358d7a08139a04628707228ca3c3765"> 221</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#af358d7a08139a04628707228ca3c3765">getStartIndex</a>()<span class="keyword"> const</span></div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>();</div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  }</div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div> <div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ab84bfb78f1dcec952c2feb44032b8819"> 232</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ab84bfb78f1dcec952c2feb44032b8819">getEndIndex</a>()<span class="keyword"> const</span></div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00234"></a><span class="lineno"> 234</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="l00235"></a><span class="lineno"> 235</span>  }</div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div> <div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5daedcb95e0f28750959b63995919896"> 244</a></span>  <span class="keywordtype">bool</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="l00245"></a><span class="lineno"> 245</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</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="l00247"></a><span class="lineno"> 247</span>  }</div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div> <div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5766846f815b9af53875048ee95b65a2"> 257</a></span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <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="l00258"></a><span class="lineno"> 258</span> <span class="keyword"> </span>{</div> <div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> loc = index;</div> <div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  loc.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">clamp</a>(linearGeom);</div> <div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">return</span> loc;</div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span> };</div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span> } <span class="comment">// geos::linearref</span></div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> } <span class="comment">// geos</span></div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</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:147</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:176</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_1ExtractLineByLocation_html_af8bbaf811f548ce670eef27e512142cc"><div class="ttname"><a href="classgeos_1_1linearref_1_1ExtractLineByLocation.html#af8bbaf811f548ce670eef27e512142cc">geos::linearref::ExtractLineByLocation::extract</a></div><div class="ttdeci">static geom::Geometry * extract(const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end)</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:221</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> <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> <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:193</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> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a5682b961049108bfa337f4ae7b373e9a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a5682b961049108bfa337f4ae7b373e9a">geos::linearref::LocationIndexedLine::LocationIndexedLine</a></div><div class="ttdeci">LocationIndexedLine(const geom::Geometry *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_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:167</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:43</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a0a4580505787da9f9e6a89eea69590cd"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a0a4580505787da9f9e6a89eea69590cd">geos::linearref::LinearLocation::getSegment</a></div><div class="ttdeci">std::auto_ptr< geom::LineSegment > getSegment(const geom::Geometry *linearGeom) const </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:244</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_a794cf0b6425b50119045cfa45f118d11"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#a794cf0b6425b50119045cfa45f118d11">geos::linearref::LocationIndexedLine::extractLine</a></div><div class="ttdeci">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:125</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:103</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:79</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:257</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> <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> <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:232</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:210</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:40</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>