📄 classogrmultipolygon.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>OGR: OGRMultiPolygon Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <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><h1>OGRMultiPolygon Class Reference</h1><!-- doxytag: class="OGRMultiPolygon" --><!-- doxytag: inherits="OGRGeometryCollection" --><code>#include <<a class="el" href="ogr__geometry_8h-source.html">ogr_geometry.h</a>></code><p><p>Inheritance diagram for OGRMultiPolygon:<p><center><img src="classOGRMultiPolygon.png" usemap="#OGRMultiPolygon_map" border="0" alt=""></center><map name="OGRMultiPolygon_map"><area href="classOGRGeometryCollection.html" alt="OGRGeometryCollection" shape="rect" coords="0,56,149,80"><area href="classOGRGeometry.html" alt="OGRGeometry" shape="rect" coords="0,0,149,24"></map><a href="classOGRMultiPolygon-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#7a444b319bd4ba785029161aa4c0aad7">getGeometryName</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual OGRwkbGeometryType </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#9930f2ab34ed9a33cc5557b4ad390916">getGeometryType</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#cd2ac7a716062f16642ac6040afcc7e9">clone</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#23b4a553c2b3ccde257359c78782eaf8">importFromWkt</a> (char **)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#21f4a8e2e947c55e9e83b563240bf63e">exportToWkt</a> (char **) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual OGRErr </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#246ff65cee942960a98f64539ebbf7ad">addGeometryDirectly</a> (<a class="el" href="classOGRGeometry.html">OGRGeometry</a> *)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRMultiPolygon.html#a5fcc775419620f231ee47dac7324a48">get_Area</a> () const</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A collection of non-overlapping OGRPolygons.<p>Note that the IMultiSurface class hasn't been modelled, nor have any of it's methods. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="7a444b319bd4ba785029161aa4c0aad7"></a><!-- doxytag: member="OGRMultiPolygon::getGeometryName" ref="7a444b319bd4ba785029161aa4c0aad7" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRMultiPolygon::getGeometryName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch WKT name for geometry type.<p>There is no SFCOM analog to this method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#18121f835b2fb724a0c1a87beb1a437a">OGR_G_GetGeometryName()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>name used for this geometry type in well known text format. The returned pointer is to a static internal string and should not be modified or freed. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#f40a832716c7c6eac30bfc59b419b112">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="9930f2ab34ed9a33cc5557b4ad390916"></a><!-- doxytag: member="OGRMultiPolygon::getGeometryType" ref="9930f2ab34ed9a33cc5557b4ad390916" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRwkbGeometryType OGRMultiPolygon::getGeometryType </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Fetch geometry type.<p>Note that the geometry type may include the 2.5D flag. To get a 2D flattened version of the geometry type apply the wkbFlatten() macro to the return result.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#8fae58102f5c4a4cf2526e5ca8369a76">OGR_G_GetGeometryType()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>the geometry type code. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#15b662cc9386bb8554fa74d4428d7e9f">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="cd2ac7a716062f16642ac6040afcc7e9"></a><!-- doxytag: member="OGRMultiPolygon::clone" ref="cd2ac7a716062f16642ac6040afcc7e9" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRMultiPolygon::clone </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Make a copy of this object.<p>This method relates to the SFCOM IGeometry::clone() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#1725918932da7d59f9ee72829ac171fa">OGR_G_Clone()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>a new object instance with the same geometry, and spatial reference system as the original. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#cdb672a3c99f6f4136f28b4f53dd1855">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="23b4a553c2b3ccde257359c78782eaf8"></a><!-- doxytag: member="OGRMultiPolygon::importFromWkt" ref="23b4a553c2b3ccde257359c78782eaf8" args="(char **)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRMultiPolygon::importFromWkt </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszInput</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Assign geometry from well known text data.<p>The object must have already been instantiated as the correct derived type of geometry object to match the text type. This method is used by the <a class="el" href="classOGRGeometryFactory.html">OGRGeometryFactory</a> class, but not normally called by application code.<p>This method relates to the SFCOM IWks::ImportFromWKT() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#4286ba243fb05a831a49f52aabcbc6f8">OGR_G_ImportFromWkt()</a>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ppszInput</em> </td><td>pointer to a pointer to the source text. The pointer is updated to pointer after the consumed text.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE if all goes well, otherwise any of OGRERR_NOT_ENOUGH_DATA, OGRERR_UNSUPPORTED_GEOMETRY_TYPE, or OGRERR_CORRUPT_DATA may be returned. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#72381b58185cf0851db54067e3f3f2df">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="21f4a8e2e947c55e9e83b563240bf63e"></a><!-- doxytag: member="OGRMultiPolygon::exportToWkt" ref="21f4a8e2e947c55e9e83b563240bf63e" args="(char **) const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRMultiPolygon::exportToWkt </td> <td>(</td> <td class="paramtype">char ** </td> <td class="paramname"> <em>ppszDstText</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Convert a geometry into well known text format.<p>This method relates to the SFCOM IWks::ExportToWKT() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#3bc9310302e2dbfaab1690de9e2fd2fb">OGR_G_ExportToWkt()</a>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ppszDstText</em> </td><td>a text buffer is allocated by the program, and assigned to the passed pointer.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Currently OGRERR_NONE is always returned. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#038ea304e58110b7e61ea72166774558">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="246ff65cee942960a98f64539ebbf7ad"></a><!-- doxytag: member="OGRMultiPolygon::addGeometryDirectly" ref="246ff65cee942960a98f64539ebbf7ad" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRMultiPolygon::addGeometryDirectly </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poNewGeom</em> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Add a geometry directly to the container.<p>Some subclasses of <a class="el" href="classOGRGeometryCollection.html">OGRGeometryCollection</a> restrict the types of geometry that can be added, and may return an error. Ownership of the passed geometry is taken by the container rather than cloning as <a class="el" href="classOGRGeometryCollection.html#3da519655d14346e591d22a547562b0c">addGeometry()</a> does.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ff56cae8305396a9c5b690d8356e39c9">OGR_G_AddGeometryDirectly()</a>.<p>There is no SFCOM analog to this method.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>poNewGeom</em> </td><td>geometry to add to the container.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE if successful, or OGRERR_UNSUPPORTED_GEOMETRY_TYPE if the geometry type is illegal for the type of geometry container. </dd></dl><p>Reimplemented from <a class="el" href="classOGRGeometryCollection.html#8422907a01d088ec5ef916382bea8eb3">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="a5fcc775419620f231ee47dac7324a48"></a><!-- doxytag: member="OGRMultiPolygon::get_Area" ref="a5fcc775419620f231ee47dac7324a48" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">double OGRMultiPolygon::get_Area </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table></div><div class="memdoc"><p>Compute area of multipolygon.<p>The area is computed as the sum of the areas of all polygon members in this collection.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>computed area. </dd></dl></div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="ogr__geometry_8h-source.html">ogr_geometry.h</a><li>ogrmultipolygon.cpp</ul><hr>Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1.</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -