<!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::geom::Polygon 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_1geom.html">geom</a> </li> <li><a class="el" href="classgeos_1_1geom_1_1Polygon.html">geos::geom::Polygon</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::geom::Polygon Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::Polygon" --><!-- doxytag: inherits="geos::geom::Geometry" --> <p>Represents a linear polygon, which may include holes. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="geom_8h_source.html">geos.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::geom::Polygon:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1geom_1_1Polygon.png" usemap="#geos::geom::Polygon_map" alt=""/> <map id="geos::geom::Polygon_map" name="geos::geom::Polygon_map"> <area href="classgeos_1_1geom_1_1Geometry.html" alt="geos::geom::Geometry" shape="rect" coords="0,0,135,24"/> </map> </div> <p><a href="classgeos_1_1geom_1_1Polygon-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad881c16345a233417e419b11fe2ba0c0"></a><!-- doxytag: member="geos::geom::Polygon::ConstVect" ref="ad881c16345a233417e419b11fe2ba0c0" args="" --> typedef std::vector< const <br class="typebreak"/> <a class="el" href="classgeos_1_1geom_1_1Polygon.html">Polygon</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#ad881c16345a233417e419b11fe2ba0c0">ConstVect</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A vector of const <a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a> pointers. <br/></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a9006611b6008c662abd95bff18fbf55a">clone</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a747771d1e59d75d749627a4720ba7716"></a><!-- doxytag: member="geos::geom::Polygon::getCoordinates" ref="a747771d1e59d75d749627a4720ba7716" args="() const " --> <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">CoordinateSequence</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a747771d1e59d75d749627a4720ba7716">getCoordinates</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> vertices. Caller takes ownership of the returned object. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b71a790424a580866cdadd0ab5f3c24"></a><!-- doxytag: member="geos::geom::Polygon::getNumPoints" ref="a0b71a790424a580866cdadd0ab5f3c24" args="() const " --> size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a0b71a790424a580866cdadd0ab5f3c24">getNumPoints</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the count of this Geometrys vertices. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa31b9e13643e5995bb34e0196fa85236"></a><!-- doxytag: member="geos::geom::Polygon::getDimension" ref="aa31b9e13643e5995bb34e0196fa85236" args="() const " --> <a class="el" href="classgeos_1_1geom_1_1Dimension.html#af46f1c0c325eb685fcf32987748d04cf">Dimension::DimensionType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#aa31b9e13643e5995bb34e0196fa85236">getDimension</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns surface dimension (2). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c23f4124d70c15a4ee856332d99a251"></a><!-- doxytag: member="geos::geom::Polygon::getBoundaryDimension" ref="a0c23f4124d70c15a4ee856332d99a251" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a0c23f4124d70c15a4ee856332d99a251">getBoundaryDimension</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns 1 (<a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a> boundary is a <a class="el" href="classgeos_1_1geom_1_1MultiLineString.html" title="Basic implementation of MultiLineString objects.">MultiLineString</a>). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#aa81fc5b245f2b3af930e044573a378f3">getBoundary</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Computes the boundary of this geometry. <a href="#aa81fc5b245f2b3af930e044573a378f3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a872c96636c83d6a26394a5f4ed7ab272"></a><!-- doxytag: member="geos::geom::Polygon::isEmpty" ref="a872c96636c83d6a26394a5f4ed7ab272" args="() const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a872c96636c83d6a26394a5f4ed7ab272">isEmpty</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether or not the set of points in this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> is empty. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#adc2a71140b719ba8525a0ef0c5eb3178">isSimple</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Tests if a valid polygon is simple. This method always returns true, since a valid polygon is always simple. <a href="#adc2a71140b719ba8525a0ef0c5eb3178"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6126262f9d31de69e4e2f72087f41b0"></a><!-- doxytag: member="geos::geom::Polygon::getExteriorRing" ref="ab6126262f9d31de69e4e2f72087f41b0" args="() const " --> const <a class="el" href="classgeos_1_1geom_1_1LineString.html">LineString</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#ab6126262f9d31de69e4e2f72087f41b0">getExteriorRing</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the exterior ring (shell). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71ea82545c1bc66b41efaf9df736de5d"></a><!-- doxytag: member="geos::geom::Polygon::getNumInteriorRing" ref="a71ea82545c1bc66b41efaf9df736de5d" args="() const " --> size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a71ea82545c1bc66b41efaf9df736de5d">getNumInteriorRing</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns number of interior rings (hole). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb775343ff5482ed3582e63b21501569"></a><!-- doxytag: member="geos::geom::Polygon::getInteriorRingN" ref="abb775343ff5482ed3582e63b21501569" args="(size_t n) const " --> const <a class="el" href="classgeos_1_1geom_1_1LineString.html">LineString</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#abb775343ff5482ed3582e63b21501569">getInteriorRingN</a> (size_t n) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get nth interior ring (hole). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a338ca32ff50edc5ba79f25be54cc0a2b"></a><!-- doxytag: member="geos::geom::Polygon::getGeometryType" ref="a338ca32ff50edc5ba79f25be54cc0a2b" args="() const " --> std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a338ca32ff50edc5ba79f25be54cc0a2b">getGeometryType</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a string representation of this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> type. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3741241623e63a58d9a0443db3cad85e"></a><!-- doxytag: member="geos::geom::Polygon::getGeometryTypeId" ref="a3741241623e63a58d9a0443db3cad85e" args="() const " --> virtual <a class="el" href="namespacegeos_1_1geom.html#a98c5b0e81001a7c3fdc7a058960356d8">GeometryTypeId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a3741241623e63a58d9a0443db3cad85e">getGeometryTypeId</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return an integer representation of this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> type. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b72a72a90901b427226e6f1b11bb24d"></a><!-- doxytag: member="geos::geom::Polygon::equalsExact" ref="a1b72a72a90901b427226e6f1b11bb24d" args="(const Geometry *other, double tolerance=0) const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a1b72a72a90901b427226e6f1b11bb24d">equalsExact</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *other, double tolerance=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the two Geometrys are exactly equal, up to a specified tolerance. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac41b96cb83ed1bd9965e0b046eaaadc3"></a><!-- doxytag: member="geos::geom::Polygon::apply_rw" ref="ac41b96cb83ed1bd9965e0b046eaaadc3" args="(const CoordinateFilter *filter)" --> void </td><td class="memItemRight" valign="bottom"><b>apply_rw</b> (const <a class="el" href="classgeos_1_1geom_1_1CoordinateFilter.html">CoordinateFilter</a> *filter)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a999d06a87566e19028a07b3eb4c9a448"></a><!-- doxytag: member="geos::geom::Polygon::apply_ro" ref="a999d06a87566e19028a07b3eb4c9a448" args="(CoordinateFilter *filter) const " --> void </td><td class="memItemRight" valign="bottom"><b>apply_ro</b> (<a class="el" href="classgeos_1_1geom_1_1CoordinateFilter.html">CoordinateFilter</a> *filter) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07cb63b584cb04540671e73e54feead1"></a><!-- doxytag: member="geos::geom::Polygon::apply_rw" ref="a07cb63b584cb04540671e73e54feead1" args="(GeometryFilter *filter)" --> void </td><td class="memItemRight" valign="bottom"><b>apply_rw</b> (<a class="el" href="classgeos_1_1geom_1_1GeometryFilter.html">GeometryFilter</a> *filter)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95cbf8d6e397cef9b557aafda7c1f5bf"></a><!-- doxytag: member="geos::geom::Polygon::apply_ro" ref="a95cbf8d6e397cef9b557aafda7c1f5bf" args="(GeometryFilter *filter) const " --> void </td><td class="memItemRight" valign="bottom"><b>apply_ro</b> (<a class="el" href="classgeos_1_1geom_1_1GeometryFilter.html">GeometryFilter</a> *filter) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a8959e4115911f26b719a28b7e02f4d17">apply_rw</a> (<a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFilter.html">CoordinateSequenceFilter</a> &filter)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#ac8304ddfce397e3bebed129205349ee9">apply_ro</a> (<a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFilter.html">CoordinateSequenceFilter</a> &filter) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52d75c61eeef1ec991f1e20c8b4330c0"></a><!-- doxytag: member="geos::geom::Polygon::convexHull" ref="a52d75c61eeef1ec991f1e20c8b4330c0" args="() const " --> <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a52d75c61eeef1ec991f1e20c8b4330c0">convexHull</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the smallest convex <a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a> that contains all the points in the <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a679782249f6d1dabc4ced852c09392cf"></a><!-- doxytag: member="geos::geom::Polygon::normalize" ref="a679782249f6d1dabc4ced852c09392cf" args="()" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a679782249f6d1dabc4ced852c09392cf">normalize</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> to normal form (or canonical form). <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b1f004522cb8d34f5d8c81470aa38b2"></a><!-- doxytag: member="geos::geom::Polygon::compareToSameClass" ref="a3b1f004522cb8d34f5d8c81470aa38b2" args="(const Geometry *p) const " --> int </td><td class="memItemRight" valign="bottom"><b>compareToSameClass</b> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> *p) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7318acb27b4b810d8881e56296ef6693"></a><!-- doxytag: member="geos::geom::Polygon::getCoordinate" ref="a7318acb27b4b810d8881e56296ef6693" args="() const " --> const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">Coordinate</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a7318acb27b4b810d8881e56296ef6693">getCoordinate</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a vertex of this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a>, or NULL if this is the empty geometry. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fdaf9550f08f56340b0ce8350501b66"></a><!-- doxytag: member="geos::geom::Polygon::getArea" ref="a7fdaf9550f08f56340b0ce8350501b66" args="() const " --> double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a7fdaf9550f08f56340b0ce8350501b66">getArea</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the area of this <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a>. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13df829c30987355f46e7d7b4e783de1"></a><!-- doxytag: member="geos::geom::Polygon::getLength" ref="a13df829c30987355f46e7d7b4e783de1" args="() const " --> double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a13df829c30987355f46e7d7b4e783de1">getLength</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the perimeter of this <code><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a></code> <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef1db440942951adc1041495f910fd81"></a><!-- doxytag: member="geos::geom::Polygon::apply_rw" ref="aef1db440942951adc1041495f910fd81" args="(GeometryComponentFilter *filter)" --> void </td><td class="memItemRight" valign="bottom"><b>apply_rw</b> (<a class="el" href="classgeos_1_1geom_1_1GeometryComponentFilter.html">GeometryComponentFilter</a> *filter)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace7cd27800048162d6e4cbaded57ef68"></a><!-- doxytag: member="geos::geom::Polygon::apply_ro" ref="ace7cd27800048162d6e4cbaded57ef68" args="(GeometryComponentFilter *filter) const " --> void </td><td class="memItemRight" valign="bottom"><b>apply_ro</b> (<a class="el" href="classgeos_1_1geom_1_1GeometryComponentFilter.html">GeometryComponentFilter</a> *filter) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ded60ab7b7df31df7ac7ee75cf5893a"></a><!-- doxytag: member="geos::geom::Polygon::isRectangle" ref="a2ded60ab7b7df31df7ac7ee75cf5893a" args="() const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a2ded60ab7b7df31df7ac7ee75cf5893a">isRectangle</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a> overrides to check for actual rectangle. <br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2be61afab33186b13a95bd5b893627d1"></a><!-- doxytag: member="geos::geom::Polygon::Polygon" ref="a2be61afab33186b13a95bd5b893627d1" args="(const Polygon &p)" --> </td><td class="memItemRight" valign="bottom"><b>Polygon</b> (const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">Polygon</a> &p)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1Polygon.html#a1102f0e3e2f4e87235ba4d5031f35f7e">Polygon</a> (<a class="el" href="classgeos_1_1geom_1_1LinearRing.html">LinearRing</a> *newShell, std::vector< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * > *newHoles, const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a> *newFactory)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa16c8484e767fe1bb822d005f9f655e8"></a><!-- doxytag: member="geos::geom::Polygon::computeEnvelopeInternal" ref="aa16c8484e767fe1bb822d005f9f655e8" args="() const " --> Envelope::AutoPtr </td><td class="memItemRight" valign="bottom"><b>computeEnvelopeInternal</b> () const </td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa424923e3df6b96dbc88fefc6017171f"></a><!-- doxytag: member="geos::geom::Polygon::shell" ref="aa424923e3df6b96dbc88fefc6017171f" args="" --> <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">LinearRing</a> * </td><td class="memItemRight" valign="bottom"><b>shell</b></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2222c2fb094f44c40be1e68ff6306f1d"></a><!-- doxytag: member="geos::geom::Polygon::holes" ref="a2222c2fb094f44c40be1e68ff6306f1d" args="" --> std::vector< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * > * </td><td class="memItemRight" valign="bottom"><b>holes</b></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="a639aef3f5d0d27a72053343b0e09b5f3"></a><!-- doxytag: member="geos::geom::Polygon::GeometryFactory" ref="a639aef3f5d0d27a72053343b0e09b5f3" args="" --> class </td><td class="memItemRight" valign="bottom"><b>GeometryFactory</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Represents a linear polygon, which may include holes. </p> <p>The shell and holes of the polygon are represented by <a class="el" href="classgeos_1_1geom_1_1LinearRing.html">LinearRing</a>s. In a valid polygon, holes may touch the shell or other holes at a single point. However, no sequence of touching holes may split the polygon into two pieces. The orientation of the rings in the polygon does not matter. </p> <p>The shell and holes must conform to the assertions specified in the <a href="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features Specification for SQL</a> . </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a1102f0e3e2f4e87235ba4d5031f35f7e"></a><!-- doxytag: member="geos::geom::Polygon::Polygon" ref="a1102f0e3e2f4e87235ba4d5031f35f7e" args="(LinearRing *newShell, std::vector< Geometry * > *newHoles, const GeometryFactory *newFactory)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::geom::Polygon::Polygon </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1LinearRing.html">LinearRing</a> * </td> <td class="paramname"> <em>newShell</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::vector< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * > * </td> <td class="paramname"> <em>newHoles</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a> * </td> <td class="paramname"> <em>newFactory</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a <code><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a></code> with the given exterior and interior boundaries.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>newShell</em> </td><td>the outer boundary of the new <a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a>, or <code>null</code> or an empty <a class="el" href="classgeos_1_1geom_1_1LinearRing.html" title="Models an OGC SFS LinearRing.">LinearRing</a> if the empty geometry is to be created.</td></tr> <tr><td valign="top"></td><td valign="top"><em>newHoles</em> </td><td>the LinearRings defining the inner boundaries of the new <a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a>, or null or empty <a class="el" href="classgeos_1_1geom_1_1LinearRing.html" title="Models an OGC SFS LinearRing.">LinearRing</a> if the empty geometry is to be created.</td></tr> <tr><td valign="top"></td><td valign="top"><em>newFactory</em> </td><td>the <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html" title="Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...">GeometryFactory</a> used to create this geometry</td></tr> </table> </dd> </dl> <p><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a> will take ownership of Shell and Holes LinearRings </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ac8304ddfce397e3bebed129205349ee9"></a><!-- doxytag: member="geos::geom::Polygon::apply_ro" ref="ac8304ddfce397e3bebed129205349ee9" args="(CoordinateSequenceFilter &filter) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::geom::Polygon::apply_ro </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFilter.html">CoordinateSequenceFilter</a> & </td> <td class="paramname"> <em>filter</em></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a read-only operation on the coordinates in this Geometry's CoordinateSequences.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>filter</em> </td><td>the filter to apply </td></tr> </table> </dd> </dl> <p>Implements <a class="el" href="classgeos_1_1geom_1_1Geometry.html#a31aa2b7a73162848ceaffdb25d91a9dc">geos::geom::Geometry</a>.</p> </div> </div> <a class="anchor" id="a8959e4115911f26b719a28b7e02f4d17"></a><!-- doxytag: member="geos::geom::Polygon::apply_rw" ref="a8959e4115911f26b719a28b7e02f4d17" args="(CoordinateSequenceFilter &filter)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void geos::geom::Polygon::apply_rw </td> <td>(</td> <td class="paramtype"><a class="el" href="classgeos_1_1geom_1_1CoordinateSequenceFilter.html">CoordinateSequenceFilter</a> & </td> <td class="paramname"> <em>filter</em></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Performs an operation on the coordinates in this Geometry's CoordinateSequences.s If the filter reports that a coordinate value has been changed, <a class="el" href="">geometryChanged</a> will be called automatically.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>filter</em> </td><td>the filter to apply </td></tr> </table> </dd> </dl> <p>Implements <a class="el" href="classgeos_1_1geom_1_1Geometry.html#a19566f7393929d162eead6ee454fe97f">geos::geom::Geometry</a>.</p> </div> </div> <a class="anchor" id="a9006611b6008c662abd95bff18fbf55a"></a><!-- doxytag: member="geos::geom::Polygon::clone" ref="a9006611b6008c662abd95bff18fbf55a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::Polygon::clone </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates and returns a full copy of this <a class="el" href="classgeos_1_1geom_1_1Polygon.html">Polygon</a> object. (including all coordinates contained by it).</p> <dl class="return"><dt><b>Returns:</b></dt><dd>a clone of this instance </dd></dl> <p>Implements <a class="el" href="classgeos_1_1geom_1_1Geometry.html#a25b5ab073477cee2d5b756a0d163c006">geos::geom::Geometry</a>.</p> </div> </div> <a class="anchor" id="aa81fc5b245f2b3af930e044573a378f3"></a><!-- doxytag: member="geos::geom::Polygon::getBoundary" ref="aa81fc5b245f2b3af930e044573a378f3" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a>* geos::geom::Polygon::getBoundary </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Computes the boundary of this geometry. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>a lineal geometry (which may be empty) </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classgeos_1_1geom_1_1Geometry.html#a7519090aea0e06ee78fadcb1fc4bd2dd" title="Returns the boundary, or an empty geometry of appropriate dimension if this Geometry is empty...">Geometry::getBoundary</a> </dd></dl> <p>Implements <a class="el" href="classgeos_1_1geom_1_1Geometry.html#a7519090aea0e06ee78fadcb1fc4bd2dd">geos::geom::Geometry</a>.</p> </div> </div> <a class="anchor" id="adc2a71140b719ba8525a0ef0c5eb3178"></a><!-- doxytag: member="geos::geom::Polygon::isSimple" ref="adc2a71140b719ba8525a0ef0c5eb3178" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool geos::geom::Polygon::isSimple </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Tests if a valid polygon is simple. This method always returns true, since a valid polygon is always simple. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> </dd></dl> <p>Reimplemented from <a class="el" href="classgeos_1_1geom_1_1Geometry.html#af4b0804bd3903ed656b38b4561e3e577">geos::geom::Geometry</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="Polygon_8h_source.html">Polygon.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>