geos_390_docs/classgeos_1_1operation_1_1I...

626 lines
35 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: geos::operation::IsSimpleOp Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1operation.html">operation</a></li><li class="navelem"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html">IsSimpleOp</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgeos_1_1operation_1_1IsSimpleOp-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::operation::IsSimpleOp Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Tests whether a Geometry is simple.
<a href="classgeos_1_1operation_1_1IsSimpleOp.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::operation::IsSimpleOp:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1IsSimpleOp__coll__graph.svg" width="100%" height="431"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6b536b02b8473e8f5bcc2d872b56a04e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a6b536b02b8473e8f5bcc2d872b56a04e">IsSimpleOp</a> ()</td></tr>
<tr class="memdesc:a6b536b02b8473e8f5bcc2d872b56a04e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule. <a href="#a6b536b02b8473e8f5bcc2d872b56a04e">More...</a><br /></td></tr>
<tr class="separator:a6b536b02b8473e8f5bcc2d872b56a04e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ade8a6be5d538afa52852748ea2e81c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a2ade8a6be5d538afa52852748ea2e81c">IsSimpleOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="memdesc:a2ade8a6be5d538afa52852748ea2e81c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule. <a href="#a2ade8a6be5d538afa52852748ea2e81c">More...</a><br /></td></tr>
<tr class="separator:a2ade8a6be5d538afa52852748ea2e81c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77a7bb4cd4a7cc5a3800e888ee01772b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a77a7bb4cd4a7cc5a3800e888ee01772b">IsSimpleOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>, const <a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html">algorithm::BoundaryNodeRule</a> &amp;boundaryNodeRule)</td></tr>
<tr class="memdesc:a77a7bb4cd4a7cc5a3800e888ee01772b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a simplicity checker using a given <a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html" title="An interface for rules which determine whether node points which are in boundaries of lineal geometry...">algorithm::BoundaryNodeRule</a>. <a href="#a77a7bb4cd4a7cc5a3800e888ee01772b">More...</a><br /></td></tr>
<tr class="separator:a77a7bb4cd4a7cc5a3800e888ee01772b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a933b80539f97ba6c16cdfa2b1c4b8ac0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a933b80539f97ba6c16cdfa2b1c4b8ac0">isSimple</a> ()</td></tr>
<tr class="memdesc:a933b80539f97ba6c16cdfa2b1c4b8ac0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the geometry is simple. <a href="#a933b80539f97ba6c16cdfa2b1c4b8ac0">More...</a><br /></td></tr>
<tr class="separator:a933b80539f97ba6c16cdfa2b1c4b8ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f13e6c9d4501fd372366332e1f434f6"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a6f13e6c9d4501fd372366332e1f434f6">getNonSimpleLocation</a> () const </td></tr>
<tr class="memdesc:a6f13e6c9d4501fd372366332e1f434f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a coordinate for the location where the geometry fails to be simple (i.e. where it has a non-boundary self-intersection). <a href="#a6f13e6c9d4501fd372366332e1f434f6">More...</a><br /></td></tr>
<tr class="separator:a6f13e6c9d4501fd372366332e1f434f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebe2085a626547b0a4e41d8f4337cba4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#aebe2085a626547b0a4e41d8f4337cba4">isSimple</a> (const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="memdesc:aebe2085a626547b0a4e41d8f4337cba4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether a <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> is simple. <a href="#aebe2085a626547b0a4e41d8f4337cba4">More...</a><br /></td></tr>
<tr class="separator:aebe2085a626547b0a4e41d8f4337cba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b0ca866d4112b9f0461f7958563ba3c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a3b0ca866d4112b9f0461f7958563ba3c">isSimple</a> (const <a class="el" href="classgeos_1_1geom_1_1MultiLineString.html">geom::MultiLineString</a> *<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="memdesc:a3b0ca866d4112b9f0461f7958563ba3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether a <a class="el" href="classgeos_1_1geom_1_1MultiLineString.html" title="Models a collection of LineStrings. ">geom::MultiLineString</a> is simple. <a href="#a3b0ca866d4112b9f0461f7958563ba3c">More...</a><br /></td></tr>
<tr class="separator:a3b0ca866d4112b9f0461f7958563ba3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf1f574450e3f9d09b9305ab459005c0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#aaf1f574450e3f9d09b9305ab459005c0">isSimple</a> (const <a class="el" href="classgeos_1_1geom_1_1MultiPoint.html">geom::MultiPoint</a> *mp)</td></tr>
<tr class="memdesc:aaf1f574450e3f9d09b9305ab459005c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">A MultiPoint is simple iff it has no repeated points. <a href="#aaf1f574450e3f9d09b9305ab459005c0">More...</a><br /></td></tr>
<tr class="separator:aaf1f574450e3f9d09b9305ab459005c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99f8948403d5d3fb167e895f008c4d5c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a99f8948403d5d3fb167e895f008c4d5c">isSimpleLinearGeometry</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="separator:a99f8948403d5d3fb167e895f008c4d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a65f4e2ee1356a622ee706f789a78c142"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a65f4e2ee1356a622ee706f789a78c142">hasNonEndpointIntersection</a> (<a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;graph)</td></tr>
<tr class="separator:a65f4e2ee1356a622ee706f789a78c142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b818b01e68f22838e2e5ce5c84ca9b1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a5b818b01e68f22838e2e5ce5c84ca9b1">hasClosedEndpointIntersection</a> (<a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;graph)</td></tr>
<tr class="separator:a5b818b01e68f22838e2e5ce5c84ca9b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0a3097e53a1f4b6b3fe308753d7ae68"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ab0a3097e53a1f4b6b3fe308753d7ae68">computeSimple</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="separator:ab0a3097e53a1f4b6b3fe308753d7ae68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cc2d429bd5013cc6ca28c85c3228a91"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a7cc2d429bd5013cc6ca28c85c3228a91">isSimplePolygonal</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *<a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a>)</td></tr>
<tr class="separator:a7cc2d429bd5013cc6ca28c85c3228a91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08965422afba132c5a6be1864ce706a0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a08965422afba132c5a6be1864ce706a0">isSimpleGeometryCollection</a> (const <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html">geom::GeometryCollection</a> *col)</td></tr>
<tr class="separator:a08965422afba132c5a6be1864ce706a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3af18345c20e2b28feeba5e7d6cfc899"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a3af18345c20e2b28feeba5e7d6cfc899">addEndpoint</a> (std::map&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *, EndpointInfo *, <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html">geom::CoordinateLessThen</a> &gt; &amp;endPoints, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *p, bool isClosed)</td></tr>
<tr class="separator:a3af18345c20e2b28feeba5e7d6cfc899"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7425b7a4fc2f6a637a5bcaf9b1aecfb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#aa7425b7a4fc2f6a637a5bcaf9b1aecfb">isSimpleMultiPoint</a> (const <a class="el" href="classgeos_1_1geom_1_1MultiPoint.html">geom::MultiPoint</a> &amp;mp)</td></tr>
<tr class="separator:aa7425b7a4fc2f6a637a5bcaf9b1aecfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a431023ec8ffc51754003bf0e63a9a650"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a431023ec8ffc51754003bf0e63a9a650">isClosedEndpointsInInterior</a></td></tr>
<tr class="separator:a431023ec8ffc51754003bf0e63a9a650"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8927a266554e8645d11af7a5acbda49"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#ae8927a266554e8645d11af7a5acbda49">geom</a></td></tr>
<tr class="separator:ae8927a266554e8645d11af7a5acbda49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45c0c4f541f5c1a40c34495b4a70508d"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a45c0c4f541f5c1a40c34495b4a70508d">nonSimpleLocation</a></td></tr>
<tr class="separator:a45c0c4f541f5c1a40c34495b4a70508d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tests whether a Geometry is simple. </p>
<p>In general, the SFS specification of simplicity follows the rule:</p>
<ul>
<li>A Geometry is simple if and only if the only self-intersections are at boundary points.</li>
</ul>
<p>This definition relies on the definition of boundary points. The SFS uses the Mod-2 rule to determine which points are on the boundary of lineal geometries, but this class supports using other <a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html">BoundaryNodeRules</a> as well.</p>
<p>Simplicity is defined for each <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> subclass as follows:</p>
<ul>
<li>Valid polygonal geometries are simple by definition, so <code>isSimple</code> trivially returns true. (Hint: in order to check if a polygonal geometry has self-intersections, use <a class="el" href="classgeos_1_1geom_1_1Geometry.html#a1f408a97170af8f26c5e6121e720fc8a" title="Tests the validity of this Geometry. ">geom::Geometry::isValid()</a>).</li>
<li>Linear geometries are simple iff they do not self-intersect at points other than boundary points. (Using the Mod-2 rule, this means that closed linestrings cannot be touched at their endpoints, since these are interior points, not boundary points).</li>
<li>Zero-dimensional geometries (points) are simple iff they have no repeated points.</li>
<li>Empty <code>Geometry</code>s are always simple</li>
</ul>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html" title="An interface for rules which determine whether node points which are in boundaries of lineal geometry...">algorithm::BoundaryNodeRule</a> </dd></dl>
<p>Definition at line <a class="el" href="IsSimpleOp_8h_source.html#l00096">96</a> of file <a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a6b536b02b8473e8f5bcc2d872b56a04e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::operation::IsSimpleOp::IsSimpleOp </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>use IsSimpleOp(Geometry) </dd></dl>
</div>
</div>
<a class="anchor" id="a2ade8a6be5d538afa52852748ea2e81c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::operation::IsSimpleOp::IsSimpleOp </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geom</td><td>The geometry to test. Will store a reference: keep it alive. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a77a7bb4cd4a7cc5a3800e888ee01772b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">geos::operation::IsSimpleOp::IsSimpleOp </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &amp;&#160;</td>
<td class="paramname"><em>geom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html">algorithm::BoundaryNodeRule</a> &amp;&#160;</td>
<td class="paramname"><em>boundaryNodeRule</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a simplicity checker using a given <a class="el" href="classgeos_1_1algorithm_1_1BoundaryNodeRule.html" title="An interface for rules which determine whether node points which are in boundaries of lineal geometry...">algorithm::BoundaryNodeRule</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geom</td><td>the geometry to test </td></tr>
<tr><td class="paramname">boundaryNodeRule</td><td>the rule to use. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3af18345c20e2b28feeba5e7d6cfc899"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void geos::operation::IsSimpleOp::addEndpoint </td>
<td>(</td>
<td class="paramtype">std::map&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *, EndpointInfo *, <a class="el" href="structgeos_1_1geom_1_1CoordinateLessThen.html">geom::CoordinateLessThen</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>endPoints</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> *&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>isClosed</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an endpoint to the map, creating an entry for it if none exists </p>
</div>
</div>
<a class="anchor" id="ab0a3097e53a1f4b6b3fe308753d7ae68"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::computeSimple </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a6f13e6c9d4501fd372366332e1f434f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>* geos::operation::IsSimpleOp::getNonSimpleLocation </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets a coordinate for the location where the geometry fails to be simple (i.e. where it has a non-boundary self-intersection). </p>
<p><a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a933b80539f97ba6c16cdfa2b1c4b8ac0">isSimple</a> must be called before this method is called.</p>
<dl class="section return"><dt>Returns</dt><dd>a coordinate for the location of the non-boundary self-intersection. Ownership retained. </dd>
<dd>
the null coordinate if the geometry is simple </dd></dl>
<p>Definition at line <a class="el" href="IsSimpleOp_8h_source.html#l00145">145</a> of file <a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5b818b01e68f22838e2e5ce5c84ca9b1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::hasClosedEndpointIntersection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Tests that no edge intersection is the endpoint of a closed line. This ensures that closed lines are not touched at their endpoint, which is an interior point according to the Mod-2 rule To check this we compute the degree of each endpoint. The degree of endpoints of closed lines must be exactly 2. </p>
</div>
</div>
<a class="anchor" id="a65f4e2ee1356a622ee706f789a78c142"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::hasNonEndpointIntersection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classgeos_1_1geomgraph_1_1GeometryGraph.html">geomgraph::GeometryGraph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>For all edges, check if there are any intersections which are NOT at an endpoint. The Geometry is not simple if there are intersections not at endpoints. </p>
</div>
</div>
<a class="anchor" id="a933b80539f97ba6c16cdfa2b1c4b8ac0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimple </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Tests whether the geometry is simple. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the geometry is simple </dd></dl>
</div>
</div>
<a class="anchor" id="aebe2085a626547b0a4e41d8f4337cba4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimple </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reports whether a <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> is simple. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geom</td><td>the lineal geometry to test </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the geometry is simple</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>use <a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a933b80539f97ba6c16cdfa2b1c4b8ac0" title="Tests whether the geometry is simple. ">isSimple()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a3b0ca866d4112b9f0461f7958563ba3c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimple </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1MultiLineString.html">geom::MultiLineString</a> *&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reports whether a <a class="el" href="classgeos_1_1geom_1_1MultiLineString.html" title="Models a collection of LineStrings. ">geom::MultiLineString</a> is simple. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">geom</td><td>the lineal geometry to test </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the geometry is simple</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>use <a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a933b80539f97ba6c16cdfa2b1c4b8ac0" title="Tests whether the geometry is simple. ">isSimple()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aaf1f574450e3f9d09b9305ab459005c0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimple </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1MultiPoint.html">geom::MultiPoint</a> *&#160;</td>
<td class="paramname"><em>mp</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A MultiPoint is simple iff it has no repeated points. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>use <a class="el" href="classgeos_1_1operation_1_1IsSimpleOp.html#a933b80539f97ba6c16cdfa2b1c4b8ac0" title="Tests whether the geometry is simple. ">isSimple()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a08965422afba132c5a6be1864ce706a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimpleGeometryCollection </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html">geom::GeometryCollection</a> *&#160;</td>
<td class="paramname"><em>col</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a99f8948403d5d3fb167e895f008c4d5c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimpleLinearGeometry </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aa7425b7a4fc2f6a637a5bcaf9b1aecfb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimpleMultiPoint </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1MultiPoint.html">geom::MultiPoint</a> &amp;&#160;</td>
<td class="paramname"><em>mp</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a7cc2d429bd5013cc6ca28c85c3228a91"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isSimplePolygonal </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *&#160;</td>
<td class="paramname"><em>geom</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae8927a266554e8645d11af7a5acbda49"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::operation::IsSimpleOp::geom</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="IsSimpleOp_8h_source.html#l00214">214</a> of file <a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="a431023ec8ffc51754003bf0e63a9a650"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::operation::IsSimpleOp::isClosedEndpointsInInterior</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="IsSimpleOp_8h_source.html#l00210">210</a> of file <a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>.</p>
</div>
</div>
<a class="anchor" id="a45c0c4f541f5c1a40c34495b4a70508d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt;<a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&gt; geos::operation::IsSimpleOp::nonSimpleLocation</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="IsSimpleOp_8h_source.html#l00216">216</a> of file <a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="IsSimpleOp_8h_source.html">IsSimpleOp.h</a></li>
</ul>
</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>