geos_390_docs/LocationIndexedLine_8h_sour...

103 lines
42 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: 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 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">LocationIndexedLine.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="LocationIndexedLine_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"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> **********************************************************************</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"> * Last port: linearref/LocationIndexedLine.java r466</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"> **********************************************************************/</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GEOS_LINEARREF_LOCATIONINDEXEDLINE_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GEOS_LINEARREF_LOCATIONINDEXEDLINE_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="export_8h.html">geos/export.h</a>&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</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="l00024"></a><span class="lineno"> 24</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="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LinearLocation_8h.html">geos/linearref/LinearLocation.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LocationIndexOfPoint_8h.html">geos/linearref/LocationIndexOfPoint.h</a>&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="LocationIndexOfLine_8h.html">geos/linearref/LocationIndexOfLine.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="IllegalArgumentException_8h.html">geos/util/IllegalArgumentException.h</a>&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<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>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html"> 39</a></span>&#160;<span class="keyword">class </span><a class="code" href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a> <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>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ae2469af7617ee8ce2cb57fd8156a830c"> 41</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ae2469af7617ee8ce2cb57fd8156a830c">linearGeom</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ad73c0acee7fe10fc70edc8f500b4f474"> 44</a></span>&#160; <a class="code" href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ad73c0acee7fe10fc70edc8f500b4f474">checkGeometryType</a>()</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">if</span>(!linearGeom-&gt;<a class="code" href="classgeos_1_1geom_1_1Geometry.html#a2663a8eb5273bd53a3048d594ee8dfa3">isLineal</a>()) {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classgeos_1_1util_1_1IllegalArgumentException.html">util::IllegalArgumentException</a>(<span class="stringliteral">&quot;Input geometry must be linear&quot;</span>);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</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>&#160; <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>&#160; : linearGeom(p_linearGeom)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; checkGeometryType();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <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>&#160; <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>&amp; index)<span class="keyword"> const</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <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>&#160; }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <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>&#160; <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>&amp; index,</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">double</span> offsetDistance)<span class="keyword"> const</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <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>&#160; index.<a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#af3303b29a06005f9aec33f98f13ba06a">getSegment</a>(linearGeom)-&gt;pointAlongOffset(</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; 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>&#160; );</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; std::unique_ptr&lt;geom::Geometry&gt;</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>&#160; <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>&amp; startIndex,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>&amp; endIndex)<span class="keyword"> const</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <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>&#160; }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <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>&#160; <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>&amp; pt)<span class="keyword"> const</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexOfPoint.html#a02a74fcef91895e29a08ba509950e95f">LocationIndexOfPoint::indexOf</a>(linearGeom, pt);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <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>&#160; <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>&amp; pt,</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>&amp; minIndex)<span class="keyword"> const</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexOfPoint.html#ad6a5f8fbb298ead569b3befa6d99c159">LocationIndexOfPoint::indexOfAfter</a>(linearGeom, pt, &amp;minIndex);</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; }</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <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>&#160; <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>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <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>&#160; }</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <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>&#160; <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>&amp; pt)<span class="keyword"> const</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classgeos_1_1linearref_1_1LocationIndexOfPoint.html#a02a74fcef91895e29a08ba509950e95f">LocationIndexOfPoint::indexOf</a>(linearGeom, pt);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; }</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <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>&#160; <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>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <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>&#160; }</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <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>&#160; <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>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; <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>&#160; }</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <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>&#160; <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>&amp; index)<span class="keyword"> const</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <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>&#160; }</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <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>&#160; <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>&amp; index)<span class="keyword"> const</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; <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>&#160; 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>&#160; <span class="keywordflow">return</span> loc;</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; }</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160;};</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160;} <span class="comment">// geos::linearref</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;} <span class="comment">// geos</span></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="LocationIndexOfPoint_8h_html"><div class="ttname"><a href="LocationIndexOfPoint_8h.html">LocationIndexOfPoint.h</a></div></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 &amp;pt) const </div><div class="ttdoc">Computes the index for a given point on the line. </div><div class="ttdef"><b>Definition:</b> <a href="LocationIndexedLine_8h_source.html#l00151">LocationIndexedLine.h:151</a></div></div>
<div class="ttc" id="export_8h_html_ae36df939090171f6e9a28a8cb6254fea"><div class="ttname"><a href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a></div><div class="ttdeci">#define GEOS_DLL</div><div class="ttdef"><b>Definition:</b> <a href="export_8h_source.html#l00028">export.h:28</a></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 &amp;pt, const LinearLocation &amp;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> <a href="LocationIndexedLine_8h_source.html#l00181">LocationIndexedLine.h:181</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="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></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> <a href="LocationIndexedLine_8h_source.html#l00229">LocationIndexedLine.h:229</a></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_1LocationIndexedLine_html_ae2469af7617ee8ce2cb57fd8156a830c"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ae2469af7617ee8ce2cb57fd8156a830c">geos::linearref::LocationIndexedLine::linearGeom</a></div><div class="ttdeci">const geom::Geometry * linearGeom</div><div class="ttdef"><b>Definition:</b> <a href="LocationIndexedLine_8h_source.html#l00041">LocationIndexedLine.h:41</a></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&lt; geom::Geometry &gt; extract(const geom::Geometry *line, const LinearLocation &amp;start, const LinearLocation &amp;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> <a href="LocationIndexedLine_8h_source.html#l00199">LocationIndexedLine.h:199</a></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="LocationIndexOfLine_8h_html"><div class="ttname"><a href="LocationIndexOfLine_8h.html">LocationIndexOfLine.h</a></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> <a href="IllegalArgumentException_8h_source.html#l00034">IllegalArgumentException.h:34</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Geometry_html_a2663a8eb5273bd53a3048d594ee8dfa3"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html#a2663a8eb5273bd53a3048d594ee8dfa3">geos::geom::Geometry::isLineal</a></div><div class="ttdeci">bool isLineal() const </div><div class="ttdef"><b>Definition:</b> <a href="Geometry_8h_source.html#l00356">Geometry.h:356</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexOfPoint_html_a02a74fcef91895e29a08ba509950e95f"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexOfPoint.html#a02a74fcef91895e29a08ba509950e95f">geos::linearref::LocationIndexOfPoint::indexOf</a></div><div class="ttdeci">static LinearLocation indexOf(const geom::Geometry *linearGeom, const geom::Coordinate &amp;inputPt)</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="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 &amp;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> <a href="LocationIndexedLine_8h_source.html#l00254">LocationIndexedLine.h:254</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexOfPoint_html_ad6a5f8fbb298ead569b3befa6d99c159"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexOfPoint.html#ad6a5f8fbb298ead569b3befa6d99c159">geos::linearref::LocationIndexOfPoint::indexOfAfter</a></div><div class="ttdeci">static LinearLocation indexOfAfter(const geom::Geometry *linearGeom, const geom::Coordinate &amp;inputPt, const LinearLocation *minIndex)</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&lt; geom::Geometry &gt; extractLine(const LinearLocation &amp;startIndex, const LinearLocation &amp;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> <a href="LocationIndexedLine_8h_source.html#l00128">LocationIndexedLine.h:128</a></div></div>
<div class="ttc" id="IllegalArgumentException_8h_html"><div class="ttname"><a href="IllegalArgumentException_8h.html">IllegalArgumentException.h</a></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 &amp;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> <a href="LocationIndexedLine_8h_source.html#l00105">LocationIndexedLine.h:105</a></div></div>
<div class="ttc" id="classgeos_1_1linearref_1_1LocationIndexedLine_html_ad73c0acee7fe10fc70edc8f500b4f474"><div class="ttname"><a href="classgeos_1_1linearref_1_1LocationIndexedLine.html#ad73c0acee7fe10fc70edc8f500b4f474">geos::linearref::LocationIndexedLine::checkGeometryType</a></div><div class="ttdeci">void checkGeometryType()</div><div class="ttdef"><b>Definition:</b> <a href="LocationIndexedLine_8h_source.html#l00044">LocationIndexedLine.h:44</a></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 &amp;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> <a href="LocationIndexedLine_8h_source.html#l00080">LocationIndexedLine.h:80</a></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 &amp;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> <a href="LocationIndexedLine_8h_source.html#l00268">LocationIndexedLine.h:268</a></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_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> <a href="LocationIndexedLine_8h_source.html#l00060">LocationIndexedLine.h:60</a></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_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> <a href="LocationIndexedLine_8h_source.html#l00241">LocationIndexedLine.h:241</a></div></div>
<div class="ttc" id="LinearLocation_8h_html"><div class="ttname"><a href="LinearLocation_8h.html">LinearLocation.h</a></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 &amp;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> <a href="LocationIndexedLine_8h_source.html#l00217">LocationIndexedLine.h:217</a></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> <a href="LocationIndexedLine_8h_source.html#l00039">LocationIndexedLine.h:39</a></div></div>
<div class="ttc" id="Geometry_8h_html"><div class="ttname"><a href="Geometry_8h.html">Geometry.h</a></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>