📄 classogrgeometryfactory.html
字号:
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a geometry on succes, or NULL on error. </dd></dl></div></div><p><a class="anchor" name="ae001086e26985d95c36ccd255a8c6d5"></a><!-- doxytag: member="OGRGeometryFactory::destroyGeometry" ref="ae001086e26985d95c36ccd255a8c6d5" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRGeometryFactory::destroyGeometry </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poGeom</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Destroy geometry object.<p>Equivalent to invoking delete on a geometry, but it guaranteed to take place within the context of the GDAL/OGR heap.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#c4e665f5f9690c4fa0c190b930fe9492">OGR_G_DestroyGeometry()</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>poGeom</em> </td><td>the geometry to deallocate. </td></tr> </table></dl></div></div><p><a class="anchor" name="e4887e270d5099357f9a19b1eda6027a"></a><!-- doxytag: member="OGRGeometryFactory::createGeometry" ref="e4887e270d5099357f9a19b1eda6027a" args="(OGRwkbGeometryType)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometryFactory::createGeometry </td> <td>(</td> <td class="paramtype">OGRwkbGeometryType </td> <td class="paramname"> <em>eGeometryType</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Create an empty geometry of desired type.<p>This is equivelent to allocating the desired geometry with new, but the allocation is guaranteed to take place in the context of the GDAL/OGR heap.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#4e47710cf70e5bc72216704ddfead0dd">OGR_G_CreateGeometry()</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>eGeometryType</em> </td><td>the type code of the geometry class to be instantiated.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>the newly create geometry or NULL on failure. </dd></dl></div></div><p><a class="anchor" name="fd61936e41ea69831b3196e817658d08"></a><!-- doxytag: member="OGRGeometryFactory::forceToPolygon" ref="fd61936e41ea69831b3196e817658d08" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometryFactory::forceToPolygon </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poGeom</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Convert to polygon.<p>Tries to force the provided geometry to be a polygon. Currently this just effects a change on multipolygons. The passed in geometry is consumed and a new one returned (or potentially the same one).<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>new geometry. </dd></dl></div></div><p><a class="anchor" name="2a40032fa65cc71c028516bf8fc0df3e"></a><!-- doxytag: member="OGRGeometryFactory::forceToMultiPolygon" ref="2a40032fa65cc71c028516bf8fc0df3e" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometryFactory::forceToMultiPolygon </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poGeom</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Convert to multipolygon.<p>Tries to force the provided geometry to be a multipolygon. Currently this just effects a change on polygons. The passed in geometry is consumed and a new one returned (or potentially the same one).<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>new geometry. </dd></dl></div></div><p><a class="anchor" name="a97b7837101f6c56e476520d10a9f3c3"></a><!-- doxytag: member="OGRGeometryFactory::forceToMultiPoint" ref="a97b7837101f6c56e476520d10a9f3c3" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometryFactory::forceToMultiPoint </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poGeom</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Convert to multipoint.<p>Tries to force the provided geometry to be a multipoint. Currently this just effects a change on points. The passed in geometry is consumed and a new one returned (or potentially the same one).<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>new geometry. </dd></dl></div></div><p><a class="anchor" name="1c00a78cec110d71175726d6f26b1b39"></a><!-- doxytag: member="OGRGeometryFactory::forceToMultiLineString" ref="1c00a78cec110d71175726d6f26b1b39" args="(OGRGeometry *)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometryFactory::forceToMultiLineString </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * </td> <td class="paramname"> <em>poGeom</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Convert to multilinestring.<p>Tries to force the provided geometry to be a multilinestring. Currently this just effects a change on linestrings. The passed in geometry is consumed and a new one returned (or potentially the same one).<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>new geometry. </dd></dl></div></div><p><a class="anchor" name="04998dcdbb37aa37871891593c048544"></a><!-- doxytag: member="OGRGeometryFactory::haveGEOS" ref="04998dcdbb37aa37871891593c048544" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRGeometryFactory::haveGEOS </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>Test if GEOS enabled.<p>This static method returns TRUE if GEOS support is built into OGR, otherwise it returns FALSE.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if available, otherwise FALSE. </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>ogrgeometryfactory.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 + -