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

📄 classogrlinestring.html

📁 gdal库的学习文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
          <td class="paramname"> <em>padfY</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double *&nbsp;</td>          <td class="paramname"> <em>padfZ</em> = <code>NULL</code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Assign all points in a line string.<p>This method clear any existing points assigned to this line string, and assigns a whole new set.<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>nPointsIn</em>&nbsp;</td><td>number of points being passed in padfX and padfY. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>padfX</em>&nbsp;</td><td>list of X coordinates of points being assigned. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>padfY</em>&nbsp;</td><td>list of Y coordinates of points being assigned. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>padfZ</em>&nbsp;</td><td>list of Z coordinates of points being assigned (defaults to NULL for 2D objects). </td></tr>  </table></dl></div></div><p><a class="anchor" name="eadb4c3f26162e12eadc311d8ec8ef9f"></a><!-- doxytag: member="OGRLineString::addPoint" ref="eadb4c3f26162e12eadc311d8ec8ef9f" args="(OGRPoint *)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::addPoint           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRPoint.html">OGRPoint</a> *&nbsp;</td>          <td class="paramname"> <em>poPoint</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Add a point to a line string.<p>The vertex count of the line string is increased by one, and assigned from the passed location value.<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>poPoint</em>&nbsp;</td><td>the point to assign to the new vertex. </td></tr>  </table></dl></div></div><p><a class="anchor" name="8bee5999f1ffe9f4debb452d552c46d5"></a><!-- doxytag: member="OGRLineString::addPoint" ref="8bee5999f1ffe9f4debb452d552c46d5" args="(double, double, double)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::addPoint           </td>          <td>(</td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>x</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>y</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>z</em></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Add a point to a line string.<p>The vertex count of the line string is increased by one, and assigned from the passed location value.<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>x</em>&nbsp;</td><td>the X coordinate to assign to the new point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the Y coordinate to assign to the new point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>z</em>&nbsp;</td><td>the Z coordinate to assign to the new point (defaults to zero). </td></tr>  </table></dl></div></div><p><a class="anchor" name="3cf1133f3f80193a74cb89daafa69021"></a><!-- doxytag: member="OGRLineString::getPoints" ref="3cf1133f3f80193a74cb89daafa69021" args="(OGRRawPoint *, double *=NULL) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::getPoints           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRRawPoint.html">OGRRawPoint</a> *&nbsp;</td>          <td class="paramname"> <em>paoPointsOut</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double *&nbsp;</td>          <td class="paramname"> <em>padfZ</em> = <code>NULL</code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"> const</td>        </tr>      </table></div><div class="memdoc"><p>Returns all points of line string.<p>This method copies all points into user list. This list must be at least sizeof(OGRRawPoint) * OGRGeometry::getNumPoints() byte in size. It also copies all Z coordinates.<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>paoPointsOut</em>&nbsp;</td><td>a buffer into which the points is written. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>padfZ</em>&nbsp;</td><td>the Z values that go with the points (optional, may be NULL). </td></tr>  </table></dl></div></div><p><a class="anchor" name="e43246dc54357517eeca68c7112ae0f5"></a><!-- doxytag: member="OGRLineString::addSubLineString" ref="e43246dc54357517eeca68c7112ae0f5" args="(const OGRLineString *, int nStartVertex=0, int nEndVertex=-1)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::addSubLineString           </td>          <td>(</td>          <td class="paramtype">const <a class="el" href="classOGRLineString.html">OGRLineString</a> *&nbsp;</td>          <td class="paramname"> <em>poOtherLine</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nStartVertex</em> = <code>0</code>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nEndVertex</em> = <code>-1</code></td><td>&nbsp;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Add a segment of another linestring to this one.<p>Adds the request range of vertices to the end of this line string in an efficient manner. If the nStartVertex is larger than the nEndVertex then the vertices will be reversed as they are copied.<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>poOtherLine</em>&nbsp;</td><td>the other <a class="el" href="classOGRLineString.html">OGRLineString</a>. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>nStartVertex</em>&nbsp;</td><td>the first vertex to copy, defaults to 0 to start with the first vertex in the other linestring. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>nEndVertex</em>&nbsp;</td><td>the last vertex to copy, defaults to -1 indicating the last vertex of the other line string. </td></tr>  </table></dl></div></div><p><a class="anchor" name="160e7f8cbf4c6daf5dd4dde3719c4a2a"></a><!-- doxytag: member="OGRLineString::getGeometryType" ref="160e7f8cbf4c6daf5dd4dde3719c4a2a" args="() const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRwkbGeometryType OGRLineString::getGeometryType           </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>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>Implements <a class="el" href="classOGRGeometry.html#26fef0fc5e95c9e8e526922476c778bd">OGRGeometry</a>.</div></div><p><a class="anchor" name="5954c255e94fca6a3c002c00517cd0ef"></a><!-- doxytag: member="OGRLineString::getGeometryName" ref="5954c255e94fca6a3c002c00517cd0ef" args="() const" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">const char * OGRLineString::getGeometryName           </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>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>Implements <a class="el" href="classOGRGeometry.html#b9c97ddc4876f1aa563cc4c075bfb251">OGRGeometry</a>.<p>Reimplemented in <a class="el" href="classOGRLinearRing.html#4151980d064c7278112d3813583be6e7">OGRLinearRing</a>.</div></div><p><a class="anchor" name="75675b1f158fd1d5d35cc431227ed000"></a><!-- doxytag: member="OGRLineString::transform" ref="75675b1f158fd1d5d35cc431227ed000" args="(OGRCoordinateTransformation *poCT)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRErr OGRLineString::transform           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> *&nbsp;</td>          <td class="paramname"> <em>poCT</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Apply arbitrary coordinate transformation to geometry.<p>This method will transform the coordinates of a geometry from their current spatial reference system to a new target spatial reference system. Normally this means reprojecting the vectors, but it could include datum shifts, and changes of units.<p>Note that this method does not require that the geometry already have a spatial reference system. It will be assumed that they can be treated as having the source spatial reference system of the <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> object, and the actual SRS of the geometry will be ignored. On successful completion the output <a class="el" href="classOGRSpatialReference.html">OGRSpatialReference</a> of the <a class="el" href="classOGRCoordinateTransformation.html">OGRCoordinateTransformation</a> will be assigned to the geometry.<p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#59a5b3f954b11cfbf6e78807c28d6090">OGR_G_Transform()</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>poCT</em>&nbsp;</td><td>the transformation to apply.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>OGRERR_NONE on success or an error code. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#a9e8bfb3c2129f25cf622660f734e1ba">OGRGeometry</a>.</div></div><p><a class="anchor" name="79882a4aba981daf0f2af80d1fbb9b21"></a><!-- doxytag: member="OGRLineString::flattenTo2D" ref="79882a4aba981daf0f2af80d1fbb9b21" args="()" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::flattenTo2D           </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>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>Implements <a class="el" href="classOGRGeometry.html#aae1a2ced937a5900b2bfeb717bad6c9">OGRGeometry</a>.</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>ogrlinestring.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 + -