<!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"/> <title>GEOS: geos::noding::SegmentStringUtil Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div 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 class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1noding.html">noding</a> </li> <li><a class="el" href="classgeos_1_1noding_1_1SegmentStringUtil.html">geos::noding::SegmentStringUtil</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::noding::SegmentStringUtil Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::noding::SegmentStringUtil" --> <p>Utility methods for processing <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="SegmentStringUtil_8h_source.html">SegmentStringUtil.h</a>></code></p> <p><a href="classgeos_1_1noding_1_1SegmentStringUtil-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1noding_1_1SegmentStringUtil.html#ae1d7039ca7a1f3b3620bf33f90fa4a59">extractSegmentStrings</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g, SegmentString::ConstVect &segStr)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Extracts all linear components from a given <a class="el" href="">Geometry</a> to <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. <a href="#ae1d7039ca7a1f3b3620bf33f90fa4a59"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Utility methods for processing <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. </p> <dl class="author"><dt><b>Author:</b></dt><dd>Martin Davis </dd></dl> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ae1d7039ca7a1f3b3620bf33f90fa4a59"></a><!-- doxytag: member="geos::noding::SegmentStringUtil::extractSegmentStrings" ref="ae1d7039ca7a1f3b3620bf33f90fa4a59" args="(const geom::Geometry *g, SegmentString::ConstVect &segStr)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void geos::noding::SegmentStringUtil::extractSegmentStrings </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td> <td class="paramname"> <em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">SegmentString::ConstVect & </td> <td class="paramname"> <em>segStr</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Extracts all linear components from a given <a class="el" href="">Geometry</a> to <a class="el" href="classgeos_1_1noding_1_1SegmentString.html">SegmentString</a>s. </p> <p>The <a class="el" href="classgeos_1_1noding_1_1SegmentString.html" title="An interface for classes which represent a sequence of contiguous line segments.">SegmentString</a> data item is set to be the source Geometry.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>geom</em> </td><td>the geometry to extract from </td></tr> <tr><td valign="top"></td><td valign="top"><em>segStr</em> </td><td>a List of SegmentStrings (output parameter). Ownership of elements pushed to the vector is transferred to caller. Note that the CoordinateSequence associated with the returned <a class="el" href="classgeos_1_1noding_1_1SegmentString.html" title="An interface for classes which represent a sequence of contiguous line segments.">SegmentString</a> elements are allocated by this function, so must also be destroyed by caller. TODO: check if this can be optimized by leaving ownership of actual CoordinateSequence to the passed Geometry. </td></tr> </table> </dd> </dl> <p>References <a class="el" href="classgeos_1_1geom_1_1LineString.html#aec9aa8117c882d5896a97c1e927559d9">geos::geom::LineString::getCoordinates()</a>, and <a class="el" href="classgeos_1_1geom_1_1util_1_1LinearComponentExtracter.html#a3b88d71fbbb980e558ee0311f743c4cf">geos::geom::util::LinearComponentExtracter::getLines()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="SegmentStringUtil_8h_source.html">SegmentStringUtil.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>