📄 classogrgeometry.html
字号:
</table></div><div class="memdoc"><p>Returns TRUE if the geometry is simple.<p>Returns TRUE if the geometry has no anomalous geometric points, such as self intersection or self tangency. The description of each instantiable geometric class will include the specific conditions that cause an instance of that class to be classified as not simple.<p>This method relates to the SFCOM IGeometry::IsSimple() method.<p>NOTE: This method is hardcoded to return TRUE at this time.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if object is simple, otherwise FALSE. </dd></dl></div></div><p><a class="anchor" name="1702b5b8142abe761061a6cd44e50b05"></a><!-- doxytag: member="OGRGeometry::empty" ref="1702b5b8142abe761061a6cd44e50b05" args="()=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRGeometry::empty </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Clear geometry information. This restores the geometry to it's initial state after construction, and before assignment of actual geometry.<p>This method relates to the SFCOM IGeometry::Empty() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#90cc83b0a3052b8fbe2ed77a86323bf2">OGR_G_Empty()</a>. <p>Implemented in <a class="el" href="classOGRPoint.html#3f4973eec2851ff655b61c600f8bf2f9">OGRPoint</a>, <a class="el" href="classOGRLineString.html#958cec2e062c6372131139be247aecdb">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#8e8ea1eb8916cf60a69650fd3a9025f9">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#9aead953ce5cc3076d9d4e4a85c6f68d">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="f2fe60f2bde104cb3eef16475f3f3cd8"></a><!-- doxytag: member="OGRGeometry::clone" ref="f2fe60f2bde104cb3eef16475f3f3cd8" args="() const=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> * OGRGeometry::clone </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#f177b24b8fec7b547ded9c0c7636e032">OGRPoint</a>, <a class="el" href="classOGRLineString.html#bda61341d48aff2d374403c1cce69c56">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#33e70d13f0953a438417714ab8ebb299">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#31b267394c89fdd05e2deac7133d8636">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#cdb672a3c99f6f4136f28b4f53dd1855">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#cd2ac7a716062f16642ac6040afcc7e9">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#6be07788501b520e48ebc89cccbbc3d0">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#dff0509cc57d7de29eda76da3ba3c1dc">OGRMultiLineString</a>.</div></div><p><a class="anchor" name="a3d42b06ae6f7bbef6d1a2886da8d398"></a><!-- doxytag: member="OGRGeometry::getEnvelope" ref="a3d42b06ae6f7bbef6d1a2886da8d398" args="(OGREnvelope *psEnvelope) const =0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void OGRGeometry::getEnvelope </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGREnvelope.html">OGREnvelope</a> * </td> <td class="paramname"> <em>psEnvelope</em> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#617a9c9ea85157661619a1d8f0a69cf9">OGR_G_GetEnvelope()</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>psEnvelope</em> </td><td>the structure in which to place the results. </td></tr> </table></dl><p>Implemented in <a class="el" href="classOGRPoint.html#fde5e07207bccc3e1c5a9170fa03421c">OGRPoint</a>, <a class="el" href="classOGRLineString.html#10e1e99078d31aa7de43b1d930f27fc2">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#4e2a4414af5e8a0bf2901b408d29e345">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#bb1251acb05add0bad92b83d1d6906bb">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="68215bd90d675b7627a798b162c54ab1"></a><!-- doxytag: member="OGRGeometry::WkbSize" ref="68215bd90d675b7627a798b162c54ab1" args="() const=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRGeometry::WkbSize </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Returns size of related binary representation.<p>This method returns the exact number of bytes required to hold the well known binary representation of this geometry object. Its computation may be slightly expensive for complex geometries.<p>This method relates to the SFCOM IWks::WkbSize() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#5f7035a933b957a9d453184c154c237c">OGR_G_WkbSize()</a>.<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>size of binary representation in bytes. </dd></dl><p>Implemented in <a class="el" href="classOGRPoint.html#80c0abab7fbc4e871cfdee0617c497aa">OGRPoint</a>, <a class="el" href="classOGRLineString.html#9cd71578349ee3e6fec3d65dc6f17a0e">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#bbcbb21f4655dab76dbdc40e264695a4">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#13e26001d05019fedad787c8e8bc92bc">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#5455f464acd7daa54aa592fb493017a6">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="b2c6583c2b7c3e526dcfe54a61470c1f"></a><!-- doxytag: member="OGRGeometry::importFromWkb" ref="b2c6583c2b7c3e526dcfe54a61470c1f" args="(unsigned char *, int=-1)=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRGeometry::importFromWkb </td> <td>(</td> <td class="paramtype">unsigned char * </td> <td class="paramname"> <em>pabyData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSize</em> = <code>-1</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Assign geometry from well known binary data.<p>The object must have already been instantiated as the correct derived type of geometry object to match the binaries 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::ImportFromWKB() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#fa5a9173aa3b10a4db09ed696a92ba4a">OGR_G_ImportFromWkb()</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>pabyData</em> </td><td>the binary input data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSize</em> </td><td>the size of pabyData in bytes, or zero if not known.</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>Implemented in <a class="el" href="classOGRPoint.html#5c5679f8fcc254562e36a8fce316b646">OGRPoint</a>, <a class="el" href="classOGRLineString.html#e594aeb14deec56cf957ce54a9f299a7">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#80fa5c79e98e92a1b58f30b9904c272c">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#46b833f19bf35fcea113233310a245ce">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#1f06b21c6ec0a0500eb7e3a815283ccf">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="6fe8947602669a35136e107cd45b084d"></a><!-- doxytag: member="OGRGeometry::exportToWkb" ref="6fe8947602669a35136e107cd45b084d" args="(OGRwkbByteOrder, unsigned char *) const =0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRGeometry::exportToWkb </td> <td>(</td> <td class="paramtype">OGRwkbByteOrder </td> <td class="paramname"> <em>eByteOrder</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char * </td> <td class="paramname"> <em>pabyData</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Convert a geometry into well known binary format.<p>This method relates to the SFCOM IWks::ExportToWKB() method.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#d5c94ae76c09774dba8725c24daeefd6">OGR_G_ExportToWkb()</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>eByteOrder</em> </td><td>One of wkbXDR or wkbNDR indicating MSB or LSB byte order respectively. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pabyData</em> </td><td>a buffer into which the binary representation is written. This buffer must be at least <a class="el" href="classOGRGeometry.html#68215bd90d675b7627a798b162c54ab1">OGRGeometry::WkbSize()</a> byte in size.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Currently OGRERR_NONE is always returned. </dd></dl><p>Implemented in <a class="el" href="classOGRPoint.html#f3bd24ac1a7305d9a683e208a9065118">OGRPoint</a>, <a class="el" href="classOGRLineString.html#260edbc73c2bd4bde55d759cbc804040">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#770bb1ca2d82bbba5876923dd2dd3471">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#454605f77cb9e17c290272321cac161f">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#d3f3dfae1da46c4b0bbdb63abb0c8f5f">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="30561a301d44b1f90393ea4a78a5b0a5"></a><!-- doxytag: member="OGRGeometry::importFromWkt" ref="30561a301d44b1f90393ea4a78a5b0a5" args="(char **ppszInput)=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRErr OGRGeometry::importFromWkt </td> <td>(</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -