<!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::operation::valid::IsValidOp 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_1operation.html">operation</a> </li> <li><a class="el" href="namespacegeos_1_1operation_1_1valid.html">valid</a> </li> <li><a class="el" href="classgeos_1_1operation_1_1valid_1_1IsValidOp.html">geos::operation::valid::IsValidOp</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::operation::valid::IsValidOp Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::operation::valid::IsValidOp" --> <p>Implements the algorithsm required to compute the <code>isValid()</code> method for <a class="el" href="">Geometry</a>s. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="IsValidOp_8h_source.html">IsValidOp.h</a>></code></p> <p><a href="classgeos_1_1operation_1_1valid_1_1IsValidOp-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dd91844a9a08a6a0b5ce79b7b02de4b"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::IsValidOp" ref="a4dd91844a9a08a6a0b5ce79b7b02de4b" args="(const geom::Geometry *geom)" --> </td><td class="memItemRight" valign="bottom"><b>IsValidOp</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *geom)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa6150988bc54ea11db100e7065ee3d6f"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::~IsValidOp" ref="aa6150988bc54ea11db100e7065ee3d6f" args="()" --> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IsValidOp.html#aa6150988bc54ea11db100e7065ee3d6f">~IsValidOp</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">TODO: validErr can't be a pointer! <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f76c0c74ec6b6cf33d9aece1fe12f67"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::isValid" ref="a0f76c0c74ec6b6cf33d9aece1fe12f67" args="()" --> bool </td><td class="memItemRight" valign="bottom"><b>isValid</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2711f49e9008c84ab86fa3a8ead0696"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::getValidationError" ref="aa2711f49e9008c84ab86fa3a8ead0696" args="()" --> <a class="el" href="classgeos_1_1operation_1_1valid_1_1TopologyValidationError.html">TopologyValidationError</a> * </td><td class="memItemRight" valign="bottom"><b>getValidationError</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IsValidOp.html#a402a7a6cedd2e50c83977d8fe2afc39e">setSelfTouchingRingFormingHoleValid</a> (bool isValid)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether polygons using <b>Self-Touching Rings</b> to form holes are reported as valid. <a href="#a402a7a6cedd2e50c83977d8fe2afc39e"></a><br/></td></tr> <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 const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IsValidOp.html#a84c02500847fd55a5812acdb0331c320">findPtNotNode</a> (const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> *testCoords, const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> *searchRing, geomgraph::GeometryGraph *graph)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1valid_1_1IsValidOp.html#a185d2168bb2ed1fd15f4ef8c399928a7">isValid</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &coord)</td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b1ba7d458aabe9d7563c45d93f67f67"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::Unload" ref="a3b1ba7d458aabe9d7563c45d93f67f67" args="" --> class </td><td class="memItemRight" valign="bottom"><b>Unload</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Implements the algorithsm required to compute the <code>isValid()</code> method for <a class="el" href="">Geometry</a>s. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a84c02500847fd55a5812acdb0331c320"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::findPtNotNode" ref="a84c02500847fd55a5812acdb0331c320" args="(const geom::CoordinateSequence *testCoords, const geom::LinearRing *searchRing, geomgraph::GeometryGraph *graph)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>* geos::operation::valid::IsValidOp::findPtNotNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> * </td> <td class="paramname"> <em>testCoords</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">geom::LinearRing</a> * </td> <td class="paramname"> <em>searchRing</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">geomgraph::GeometryGraph * </td> <td class="paramname"> <em>graph</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Find a point from the list of testCoords that is NOT a node in the edge for the list of searchCoords</p> <dl class="return"><dt><b>Returns:</b></dt><dd>the point found, or NULL if none found </dd></dl> </div> </div> <a class="anchor" id="a185d2168bb2ed1fd15f4ef8c399928a7"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::isValid" ref="a185d2168bb2ed1fd15f4ef8c399928a7" args="(const geom::Coordinate &coord)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool geos::operation::valid::IsValidOp::isValid </td> <td>(</td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td> <td class="paramname"> <em>coord</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Checks whether a coordinate is valid for processing. Coordinates are valid iff their x and y coordinates are in the range of the floating point representation.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>coord</em> </td><td>the coordinate to validate </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the coordinate is valid </dd></dl> </div> </div> <a class="anchor" id="a402a7a6cedd2e50c83977d8fe2afc39e"></a><!-- doxytag: member="geos::operation::valid::IsValidOp::setSelfTouchingRingFormingHoleValid" ref="a402a7a6cedd2e50c83977d8fe2afc39e" args="(bool isValid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::operation::valid::IsValidOp::setSelfTouchingRingFormingHoleValid </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>isValid</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether polygons using <b>Self-Touching Rings</b> to form holes are reported as valid. </p> <p>If this flag is set, the following Self-Touching conditions are treated as being valid: </p> <ul> <li> the shell ring self-touches to create a hole touching the shell </li> <li> a hole ring self-touches to create two holes touching at a point </li> </ul> <p>The default (following the OGC SFS standard) is that this condition is <b>not</b> valid (<code>false</code>). </p> <p>This does not affect whether Self-Touching Rings disconnecting the polygon interior are considered valid (these are considered to be <b>invalid</b> under the SFS, and many other spatial models as well). This includes "bow-tie" shells, which self-touch at a single point causing the interior to be disconnected, and "C-shaped" holes which self-touch at a single point causing an island to be formed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>isValid</em> </td><td>states whether geometry with this condition is valid </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="IsValidOp_8h_source.html">IsValidOp.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>