EVOLUTION-MANAGER
Edit File: LinearLocation_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: LinearLocation.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td 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">LinearLocation.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"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * by the Free Software Foundation.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the COPYING file for more information.</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"> **********************************************************************</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"> * Last port: linearref/LinearLocation.java r463</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> *</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> **********************************************************************/</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef GEOS_LINEARREF_LINEARLOCATION_H</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span><span class="preprocessor">#define GEOS_LINEARREF_LINEARLOCATION_H</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <string></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for std::unique_ptr</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <geos/geom/Coordinate.h></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <geos/geom/Geometry.h></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <geos/geom/LineSegment.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="l00034"></a><span class="lineno"> 34</span> </div> <div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classgeos_1_1linearref_1_1LinearLocation.html"> 44</a></span> <span class="keyword">class </span><a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> {</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">size_t</span> componentIndex;</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">size_t</span> segmentIndex;</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">double</span> segmentFraction;</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">void</span> normalize();</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">static</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a017a305a4c32502bb87ab61cd569fbc7">getEndLocation</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">static</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ae9137b3ee11b144d01d928a2ad85ac14">pointAlongSegmentByFraction</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& p0, <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>& p1,</div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">double</span> frac);</div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">LinearLocation</a>(<span class="keywordtype">size_t</span> segmentIndex = 0, <span class="keywordtype">double</span> segmentFraction = 0.0);</div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">LinearLocation</a>(<span class="keywordtype">size_t</span> componentIndex, <span class="keywordtype">size_t</span> segmentIndex, <span class="keywordtype">double</span> segmentFraction);</div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">clamp</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#abe73a6c5d10b6bc8f2dbfa5bd25ddc82">snapToVertex</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom, <span class="keywordtype">double</span> minDistance);</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ad85594096af5010d17cfa365b90c5fc6">getSegmentLength</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">void</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a9480d64cb462dc9ae0aacb9489f2d71a">setToEnd</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linear);</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a3cf29e0da01a96313ae63759835cba57">getComponentIndex</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a801f6db68967f91b51aa0a426cc6b438">getSegmentIndex</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">getSegmentFraction</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aa8492cc339a966a44c2db8a0446110fb">isVertex</a>() <span class="keyword">const</span>;</div> <div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a50df7142413e9e0f71c08a17e44fb53a">getCoordinate</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div> <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  std::unique_ptr<geom::LineSegment> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#af3303b29a06005f9aec33f98f13ba06a">getSegment</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div> <div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a0a7f6a53225266e50cd5e9f74aacd975">isValid</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* linearGeom) <span class="keyword">const</span>;</div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aeb879ed9f26e208b409a5911bbd181fc">compareTo</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& other) <span class="keyword">const</span>;</div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">compareLocationValues</a>(<span class="keywordtype">size_t</span> componentIndex1, <span class="keywordtype">size_t</span> segmentIndex1, <span class="keywordtype">double</span> segmentFraction1) <span class="keyword">const</span>;</div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div> <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">compareLocationValues</a>(</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordtype">size_t</span> componentIndex0, <span class="keywordtype">size_t</span> segmentIndex0, <span class="keywordtype">double</span> segmentFraction0,</div> <div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordtype">size_t</span> componentIndex1, <span class="keywordtype">size_t</span> segmentIndex1, <span class="keywordtype">double</span> segmentFraction1);</div> <div class="line"><a name="l00222"></a><span class="lineno"> 222</span> </div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#aa2afb586307fce0af72b060354f1c78c">isOnSameSegment</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& loc) <span class="keyword">const</span>;</div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div> <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html#a92e789161df73b41357125289d9b767a">isEndpoint</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>& linearGeom) <span class="keyword">const</span>;</div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">friend</span> std::ostream& operator<< (std::ostream& out, <span class="keyword">const</span> <a class="code" href="classgeos_1_1linearref_1_1LinearLocation.html">LinearLocation</a>& obj);</div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </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="l00246"></a><span class="lineno"> 246</span> </div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> } <span class="comment">// namespace geos.linearref</span></div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> } <span class="comment">// namespace geos</span></div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="preprocessor">#endif</span></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_1LinearLocation_html_aa8492cc339a966a44c2db8a0446110fb"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aa8492cc339a966a44c2db8a0446110fb">geos::linearref::LinearLocation::isVertex</a></div><div class="ttdeci">bool isVertex() const </div><div class="ttdoc">Tests whether this location refers to a vertex. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ab2ecfec59697bdd38274173e5fb847e4"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ab2ecfec59697bdd38274173e5fb847e4">geos::linearref::LinearLocation::getSegmentFraction</a></div><div class="ttdeci">double getSegmentFraction() const </div><div class="ttdoc">Gets the segment fraction for this location. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a50df7142413e9e0f71c08a17e44fb53a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a50df7142413e9e0f71c08a17e44fb53a">geos::linearref::LinearLocation::getCoordinate</a></div><div class="ttdeci">geom::Coordinate getCoordinate(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Gets the Coordinate along the given linear Geometry which is referenced by this location. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ac1de5d7e436b7249e57c2227c566eafa"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ac1de5d7e436b7249e57c2227c566eafa">geos::linearref::LinearLocation::clamp</a></div><div class="ttdeci">void clamp(const geom::Geometry *linear)</div><div class="ttdoc">Ensures the indexes are valid for a given linear Geometry. </div></div> <div class="ttc" id="classgeos_1_1geom_1_1Geometry_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html">geos::geom::Geometry</a></div><div class="ttdoc">Basic implementation of Geometry, constructed and destructed by GeometryFactory. </div><div class="ttdef"><b>Definition:</b> Geometry.h:188</div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ad85594096af5010d17cfa365b90c5fc6"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ad85594096af5010d17cfa365b90c5fc6">geos::linearref::LinearLocation::getSegmentLength</a></div><div class="ttdeci">double getSegmentLength(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Gets the length of the segment in the given Geometry containing this location. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a79d7e63643fc4608a15bc5217c092dc0"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a79d7e63643fc4608a15bc5217c092dc0">geos::linearref::LinearLocation::compareLocationValues</a></div><div class="ttdeci">int compareLocationValues(size_t componentIndex1, size_t segmentIndex1, double segmentFraction1) const </div><div class="ttdoc">Compares this object with the specified index values for order. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a801f6db68967f91b51aa0a426cc6b438"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a801f6db68967f91b51aa0a426cc6b438">geos::linearref::LinearLocation::getSegmentIndex</a></div><div class="ttdeci">size_t getSegmentIndex() const </div><div class="ttdoc">Gets the segment index for this location. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html"><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_1LinearLocation_html_aa2afb586307fce0af72b060354f1c78c"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aa2afb586307fce0af72b060354f1c78c">geos::linearref::LinearLocation::isOnSameSegment</a></div><div class="ttdeci">bool isOnSameSegment(const LinearLocation &loc) const </div><div class="ttdoc">Tests whether two locations are on the same segment in the parent Geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a92e789161df73b41357125289d9b767a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a92e789161df73b41357125289d9b767a">geos::linearref::LinearLocation::isEndpoint</a></div><div class="ttdeci">bool isEndpoint(const geom::Geometry &linearGeom) const </div><div class="ttdoc">Tests whether this location is an endpoint of the linear component it refers to. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_ae9137b3ee11b144d01d928a2ad85ac14"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#ae9137b3ee11b144d01d928a2ad85ac14">geos::linearref::LinearLocation::pointAlongSegmentByFraction</a></div><div class="ttdeci">static geom::Coordinate pointAlongSegmentByFraction(const geom::Coordinate &p0, const geom::Coordinate &p1, double frac)</div><div class="ttdoc">Computes the Coordinate of a point a given fraction along the line segment (p0, p1). </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_adbc2d0094055a020468c11fd14c504b1"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#adbc2d0094055a020468c11fd14c504b1">geos::linearref::LinearLocation::LinearLocation</a></div><div class="ttdeci">LinearLocation(size_t segmentIndex=0, double segmentFraction=0.0)</div><div class="ttdoc">Creates a location referring to the start of a linear geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a0a7f6a53225266e50cd5e9f74aacd975"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a0a7f6a53225266e50cd5e9f74aacd975">geos::linearref::LinearLocation::isValid</a></div><div class="ttdeci">bool isValid(const geom::Geometry *linearGeom) const </div><div class="ttdoc">Tests whether this location refers to a valid location on the given linear Geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a017a305a4c32502bb87ab61cd569fbc7"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a017a305a4c32502bb87ab61cd569fbc7">geos::linearref::LinearLocation::getEndLocation</a></div><div class="ttdeci">static LinearLocation getEndLocation(const geom::Geometry *linear)</div><div class="ttdoc">Gets a location which refers to the end of a linear Geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a9480d64cb462dc9ae0aacb9489f2d71a"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a9480d64cb462dc9ae0aacb9489f2d71a">geos::linearref::LinearLocation::setToEnd</a></div><div class="ttdeci">void setToEnd(const geom::Geometry *linear)</div><div class="ttdoc">Sets the value of this location to refer the end of a linear geometry. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_abe73a6c5d10b6bc8f2dbfa5bd25ddc82"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#abe73a6c5d10b6bc8f2dbfa5bd25ddc82">geos::linearref::LinearLocation::snapToVertex</a></div><div class="ttdeci">void snapToVertex(const geom::Geometry *linearGeom, double minDistance)</div><div class="ttdoc">Snaps the value of this location to the nearest vertex on the given linear Geometry, if the vertex is closer than minDistance. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_aeb879ed9f26e208b409a5911bbd181fc"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#aeb879ed9f26e208b409a5911bbd181fc">geos::linearref::LinearLocation::compareTo</a></div><div class="ttdeci">int compareTo(const LinearLocation &other) const </div><div class="ttdoc">Compares this object with the specified object for order. </div></div> <div class="ttc" id="classgeos_1_1linearref_1_1LinearLocation_html_a3cf29e0da01a96313ae63759835cba57"><div class="ttname"><a href="classgeos_1_1linearref_1_1LinearLocation.html#a3cf29e0da01a96313ae63759835cba57">geos::linearref::LinearLocation::getComponentIndex</a></div><div class="ttdeci">size_t getComponentIndex() const </div><div class="ttdoc">Gets the component index for this location. </div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>