⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classogrgeometry.html

📁 gdal库的学习文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
          <td class="paramtype">char **&nbsp;</td>          <td class="paramname"> <em>ppszInput</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [pure 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>&nbsp;</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>Implemented in <a class="el" href="classOGRPoint.html#46cd8cdb216be9538d22b5aae9b9be1c">OGRPoint</a>, <a class="el" href="classOGRLineString.html#da0f0873c302eee9e1c763e06ff9d788">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#84d3b6e0ee2b098528a537bb874b4856">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#72381b58185cf0851db54067e3f3f2df">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#23b4a553c2b3ccde257359c78782eaf8">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#283b992718022f5e400e455efe835360">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#1a71908c13cbe25e4c7b8e2d9cc99af3">OGRMultiLineString</a>.</div></div><p><a class="anchor" name="71184265101d21cffa5c50ee79afdd61"></a><!-- doxytag: member="OGRGeometry::exportToWkt" ref="71184265101d21cffa5c50ee79afdd61" args="(char **ppszDstText) const=0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRErr OGRGeometry::exportToWkt           </td>          <td>(</td>          <td class="paramtype">char **&nbsp;</td>          <td class="paramname"> <em>ppszDstText</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [pure 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>&nbsp;</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>Implemented in <a class="el" href="classOGRPoint.html#95d5d32b27fc3954bde2adec9183fac1">OGRPoint</a>, <a class="el" href="classOGRLineString.html#7de6674f35c497344e6c7cf497dc061e">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#08dfe388ceeaa3e88aa7f8fa28b00b95">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#038ea304e58110b7e61ea72166774558">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#21f4a8e2e947c55e9e83b563240bf63e">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#d8ece50b6411e915bf53d8f31de041ff">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#d26a712732139dbec7d827a65e273d68">OGRMultiLineString</a>.</div></div><p><a class="anchor" name="26fef0fc5e95c9e8e526922476c778bd"></a><!-- doxytag: member="OGRGeometry::getGeometryType" ref="26fef0fc5e95c9e8e526922476c778bd" args="() const=0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRwkbGeometryType OGRGeometry::getGeometryType           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#678940f393575777a8e629e46b1292ab">OGRPoint</a>, <a class="el" href="classOGRLineString.html#160e7f8cbf4c6daf5dd4dde3719c4a2a">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#f51633d81800688871a7fc6fa8d0c5c7">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#15b662cc9386bb8554fa74d4428d7e9f">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#9930f2ab34ed9a33cc5557b4ad390916">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#2c20185f2e6c0c8ecf40e8692db315a7">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#222bbc4cb2eddd7715ea4bea4031baf5">OGRMultiLineString</a>.</div></div><p><a class="anchor" name="b9c97ddc4876f1aa563cc4c075bfb251"></a><!-- doxytag: member="OGRGeometry::getGeometryName" ref="b9c97ddc4876f1aa563cc4c075bfb251" args="() const=0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">const char * OGRGeometry::getGeometryName           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [pure 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>Implemented in <a class="el" href="classOGRPoint.html#0091bfd6873ac20e5f163a15d52d2a98">OGRPoint</a>, <a class="el" href="classOGRLineString.html#5954c255e94fca6a3c002c00517cd0ef">OGRLineString</a>, <a class="el" href="classOGRLinearRing.html#4151980d064c7278112d3813583be6e7">OGRLinearRing</a>, <a class="el" href="classOGRPolygon.html#3bb54536aa9bc7564dac68d0c74089ab">OGRPolygon</a>, <a class="el" href="classOGRGeometryCollection.html#f40a832716c7c6eac30bfc59b419b112">OGRGeometryCollection</a>, <a class="el" href="classOGRMultiPolygon.html#7a444b319bd4ba785029161aa4c0aad7">OGRMultiPolygon</a>, <a class="el" href="classOGRMultiPoint.html#9caf341833a11ed7386c818dbb52a25e">OGRMultiPoint</a>, and <a class="el" href="classOGRMultiLineString.html#0a5a37617968af122e84f267ba9fc952">OGRMultiLineString</a>.</div></div><p><a class="anchor" name="4510d7dc576a150a2fe596e0012f2c48"></a><!-- doxytag: member="OGRGeometry::dumpReadable" ref="4510d7dc576a150a2fe596e0012f2c48" args="(FILE *, const char *=NULL) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRGeometry::dumpReadable           </td>          <td>(</td>          <td class="paramtype">FILE *&nbsp;</td>          <td class="paramname"> <em>fp</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const char *&nbsp;</td>          <td class="paramname"> <em>pszPrefix</em> = <code>NULL</code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Dump geometry in well known text format to indicated output file.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#3a99330bd108940f8a33036c0f83119f">OGR_G_DumpReadable()</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>fp</em>&nbsp;</td><td>the text file to write the geometry to. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pszPrefix</em>&nbsp;</td><td>the prefix to put on each line of output. </td></tr>  </table></dl></div></div><p><a class="anchor" name="aae1a2ced937a5900b2bfeb717bad6c9"></a><!-- doxytag: member="OGRGeometry::flattenTo2D" ref="aae1a2ced937a5900b2bfeb717bad6c9" args="()=0" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRGeometry::flattenTo2D           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [pure virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#fdb7354b55c7448b60b44cd9e36073b8">OGR_G_FlattenTo2D()</a>. <p>Implemented in <a class="el" href="classOGRPoint.html#efb1c9e09c101735d8617f30109b3685">OGRPoint</a>, <a class="el" href="classOGRLineString.html#79882a4aba981daf0f2af80d1fbb9b21">OGRLineString</a>, <a class="el" href="classOGRPolygon.html#3b8a81f9742e981c242668d2d4d4a69d">OGRPolygon</a>, and <a class="el" href="classOGRGeometryCollection.html#954d008774d80ad0637bc25088746eea">OGRGeometryCollection</a>.</div></div><p><a class="anchor" name="f647d574bebd5a55b15bdd0141a90769"></a><!-- doxytag: member="OGRGeometry::exportToGML" ref="f647d574bebd5a55b15bdd0141a90769" args="() const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">char * OGRGeometry::exportToGML           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Convert a geometry into GML format.<p>The GML geometry is expressed directly in terms of GML basic data types assuming the this is available in the gml namespace. The returned string should be freed with CPLFree() when no longer required.<p>This method is the same as the C function OGR_G_ExportToGML().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>A GML fragment or NULL in case of error. </dd></dl></div></div><p><a class="anchor" name="eb6cf249316b3046e0d4f77ec400e844"></a><!-- doxytag: member="OGRGeometry::closeRings" ref="eb6cf249316b3046e0d4f77ec400e844" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRGeometry::closeRings           </td>          <td>(</td>          <td class="paramname">          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Force rings to be closed.<p>If this geometry, or any contained geometries has polygon rings that are not closed, they will be closed by adding the starting point at the end. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -