<!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::MultiPolygon 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_1MultiPolygon.html">geos::geom::MultiPolygon</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>geos::geom::MultiPolygon Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::geom::MultiPolygon" --><!-- doxytag: inherits="geos::geom::GeometryCollection" --> <p>Basic implementation of <code><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a></code>. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="MultiPolygon_8h_source.html">MultiPolygon.h</a>></code></p> <div class="dynheader"> Inheritance diagram for geos::geom::MultiPolygon:</div> <div class="dyncontent"> <div class="center"> <img src="classgeos_1_1geom_1_1MultiPolygon.png" usemap="#geos::geom::MultiPolygon_map" alt=""/> <map id="geos::geom::MultiPolygon_map" name="geos::geom::MultiPolygon_map"> <area href="classgeos_1_1geom_1_1GeometryCollection.html" alt="geos::geom::GeometryCollection" shape="rect" coords="0,56,191,80"/> <area href="classgeos_1_1geom_1_1Geometry.html" alt="geos::geom::Geometry" shape="rect" coords="0,0,191,24"/> </map> </div> <p><a href="classgeos_1_1geom_1_1MultiPolygon-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="aded41b5e6d415ecc07f61bcc7fe2a332"></a><!-- doxytag: member="geos::geom::MultiPolygon::getDimension" ref="aded41b5e6d415ecc07f61bcc7fe2a332" 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_1MultiPolygon.html#aded41b5e6d415ecc07f61bcc7fe2a332">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="ac6400293ecd26cee1c6d6248e1fa1aaf"></a><!-- doxytag: member="geos::geom::MultiPolygon::getBoundaryDimension" ref="ac6400293ecd26cee1c6d6248e1fa1aaf" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#ac6400293ecd26cee1c6d6248e1fa1aaf">getBoundaryDimension</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns 1 (<a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a> boundary is <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_1MultiPolygon.html#ad1b6aac0a17ed1ea52d26825bb9a0d73">getBoundary</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Computes the boundary of this geometry. <a href="#ad1b6aac0a17ed1ea52d26825bb9a0d73"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae23adfe3f2c3b45c5d11ddc2cb6da0db"></a><!-- doxytag: member="geos::geom::MultiPolygon::getGeometryType" ref="ae23adfe3f2c3b45c5d11ddc2cb6da0db" args="() const " --> std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#ae23adfe3f2c3b45c5d11ddc2cb6da0db">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="aa8169b471233c57f5a698de49854eebb"></a><!-- doxytag: member="geos::geom::MultiPolygon::getGeometryTypeId" ref="aa8169b471233c57f5a698de49854eebb" 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_1MultiPolygon.html#aa8169b471233c57f5a698de49854eebb">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="af8629109493801209bd2c1b002add747"></a><!-- doxytag: member="geos::geom::MultiPolygon::isSimple" ref="af8629109493801209bd2c1b002add747" args="() const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#af8629109493801209bd2c1b002add747">isSimple</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns false if the <a class="el" href="classgeos_1_1geom_1_1Geometry.html" title="Basic implementation of Geometry, constructed and destructed by GeometryFactory.">Geometry</a> not simple. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22ae6ef8ec3c0579b067f391cccf1da6"></a><!-- doxytag: member="geos::geom::MultiPolygon::equalsExact" ref="a22ae6ef8ec3c0579b067f391cccf1da6" args="(const Geometry *other, double tolerance=0) const " --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#a22ae6ef8ec3c0579b067f391cccf1da6">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="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#af52232dd3f497ab0d4c5c31a476a79e9">clone</a> () const </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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html#a133b492765cdf06d7839b9c1ef9f7dea">MultiPolygon</a> (std::vector< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">Geometry</a> * > *newPolys, const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">GeometryFactory</a> *newFactory)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a>. <a href="#a133b492765cdf06d7839b9c1ef9f7dea"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8673fc0a6b6cebb4cc1f678b277ffaa5"></a><!-- doxytag: member="geos::geom::MultiPolygon::MultiPolygon" ref="a8673fc0a6b6cebb4cc1f678b277ffaa5" args="(const MultiPolygon &mp)" --> </td><td class="memItemRight" valign="bottom"><b>MultiPolygon</b> (const <a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html">MultiPolygon</a> &mp)</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::MultiPolygon::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>Basic implementation of <code><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a></code>. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a133b492765cdf06d7839b9c1ef9f7dea"></a><!-- doxytag: member="geos::geom::MultiPolygon::MultiPolygon" ref="a133b492765cdf06d7839b9c1ef9f7dea" args="(std::vector< Geometry * > *newPolys, const GeometryFactory *newFactory)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">geos::geom::MultiPolygon::MultiPolygon </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>newPolys</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>Construct a <a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>newPolys</em> </td><td>the <code><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a></code>s for this <code><a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a></code>, or <code>null</code> or an empty array to create the empty geometry. Elements may be empty <code><a class="el" href="classgeos_1_1geom_1_1Polygon.html" title="Represents a linear polygon, which may include holes.">Polygon</a></code>s, but not <code>null</code>s. The polygons must conform to the assertions specified in the <a href="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features Specification for SQL </a>.</td></tr> </table> </dd> </dl> <p>Constructed object will take ownership of the vector and its elements.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <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 Caller must keep the factory alive for the life-time of the constructed <a class="el" href="classgeos_1_1geom_1_1MultiPolygon.html" title="Basic implementation of MultiPolygon.">MultiPolygon</a>. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="af52232dd3f497ab0d4c5c31a476a79e9"></a><!-- doxytag: member="geos::geom::MultiPolygon::clone" ref="af52232dd3f497ab0d4c5c31a476a79e9" 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::MultiPolygon::clone </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [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_1GeometryCollection.html" title="Represents a collection of heterogeneous Geometry objects.">GeometryCollection</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>Reimplemented from <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html#a3b30808a1d17d793bdfb8db9cbacc755">geos::geom::GeometryCollection</a>.</p> </div> </div> <a class="anchor" id="ad1b6aac0a17ed1ea52d26825bb9a0d73"></a><!-- doxytag: member="geos::geom::MultiPolygon::getBoundary" ref="ad1b6aac0a17ed1ea52d26825bb9a0d73" 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::MultiPolygon::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>Reimplemented from <a class="el" href="classgeos_1_1geom_1_1GeometryCollection.html#a12466db79f69e3c7a45d34e758a366e9">geos::geom::GeometryCollection</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="MultiPolygon_8h_source.html">MultiPolygon.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>