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

📄 classogrlinestring.html

📁 gdal库的学习文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
Returns the X value at the indicated vertex. If iVertex is out of range a crash may occur, no internal range checking is performed.<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>iVertex</em>&nbsp;</td><td>the vertex to return, between 0 and <a class="el" href="classOGRLineString.html#d2f41c1c69feaea512d561cf16a0e4a3">getNumPoints()</a>-1.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>X value. </dd></dl></div></div><p><a class="anchor" name="be55ebb3fc3c9491eb937d2c5c240771"></a><!-- doxytag: member="OGRLineString::getY" ref="be55ebb3fc3c9491eb937d2c5c240771" args="(int i) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">double OGRLineString::getY           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>iVertex</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [inline]</code></td>        </tr>      </table></div><div class="memdoc"><p>Get Y at vertex.<p>Returns the Y value at the indicated vertex. If iVertex is out of range a crash may occur, no internal range checking is performed.<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>iVertex</em>&nbsp;</td><td>the vertex to return, between 0 and <a class="el" href="classOGRLineString.html#d2f41c1c69feaea512d561cf16a0e4a3">getNumPoints()</a>-1.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>X value. </dd></dl></div></div><p><a class="anchor" name="9bf6ed6cc59d36b79d0f358f50b3b47a"></a><!-- doxytag: member="OGRLineString::getZ" ref="9bf6ed6cc59d36b79d0f358f50b3b47a" args="(int i) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">double OGRLineString::getZ           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>iVertex</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const</td>        </tr>      </table></div><div class="memdoc"><p>Get Z at vertex.<p>Returns the Z (elevation) value at the indicated vertex. If no Z value is available, 0.0 is returned. If iVertex is out of range a crash may occur, no internal range checking is performed.<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>iVertex</em>&nbsp;</td><td>the vertex to return, between 0 and <a class="el" href="classOGRLineString.html#d2f41c1c69feaea512d561cf16a0e4a3">getNumPoints()</a>-1.</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Z value. </dd></dl></div></div><p><a class="anchor" name="8568a09caf084295b39df28c31586c01"></a><!-- doxytag: member="OGRLineString::Equals" ref="8568a09caf084295b39df28c31586c01" args="(OGRGeometry *) const " --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">OGRBoolean OGRLineString::Equals           </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classOGRGeometry.html">OGRGeometry</a> *&nbsp;</td>          <td class="paramname"> <em>poOther</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"> const<code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Returns two if two geometries are equivalent.<p>This method is the same as the C function OGR_G_Equal().<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if equivalent or FALSE otherwise. </dd></dl><p>Implements <a class="el" href="classOGRGeometry.html#e751513a46c7e7b154796bfe494faf16">OGRGeometry</a>.</div></div><p><a class="anchor" name="ed2edaf7e5af02f2724ec073f0957ee0"></a><!-- doxytag: member="OGRLineString::setCoordinateDimension" ref="ed2edaf7e5af02f2724ec073f0957ee0" args="(int nDimension)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setCoordinateDimension           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nDimension</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"><code> [virtual]</code></td>        </tr>      </table></div><div class="memdoc"><p>Set the coordinate dimension.<p>This method sets the explicit coordinate dimension. Setting the coordinate dimension of a geometry to 2 should zero out any existing Z values. Setting the dimension of a geometry collection will not necessarily affect the children geometries.<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>nNewDimension</em>&nbsp;</td><td>New coordinate dimension value, either 2 or 3. </td></tr>  </table></dl><p>Reimplemented from <a class="el" href="classOGRGeometry.html#79f84a2b948d511f28c47c47577dea49">OGRGeometry</a>.</div></div><p><a class="anchor" name="077c4f0d64be332411e50430ffb628bd"></a><!-- doxytag: member="OGRLineString::setNumPoints" ref="077c4f0d64be332411e50430ffb628bd" args="(int)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setNumPoints           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nNewPointCount</em>          </td>          <td>&nbsp;)&nbsp;</td>          <td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Set number of points in geometry.<p>This method primary exists to preset the number of points in a linestring geometry before <a class="el" href="classOGRLineString.html#68fe89e30ccbfaf76c481349c13968c4">setPoint()</a> is used to assign them to avoid reallocating the array larger with each call to <a class="el" href="classOGRLineString.html#eadb4c3f26162e12eadc311d8ec8ef9f">addPoint()</a>.<p>This method has no SFCOM analog.<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>nNewPointCount</em>&nbsp;</td><td>the new number of points for geometry. </td></tr>  </table></dl></div></div><p><a class="anchor" name="68fe89e30ccbfaf76c481349c13968c4"></a><!-- doxytag: member="OGRLineString::setPoint" ref="68fe89e30ccbfaf76c481349c13968c4" args="(int, OGRPoint *)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setPoint           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>iPoint</em>, </td>        </tr>        <tr>          <td class="paramkey"></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;</td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td><td width="100%"></td>        </tr>      </table></div><div class="memdoc"><p>Set the location of a vertex in line string.<p>If iPoint is larger than the number of necessary the number of existing points in the line string, the point count will be increased to accomodate the request.<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>iPoint</em>&nbsp;</td><td>the index of the vertex to assign (zero based). </td></tr>    <tr><td valign="top"></td><td valign="top"><em>poPoint</em>&nbsp;</td><td>the value to assign to the vertex. </td></tr>  </table></dl></div></div><p><a class="anchor" name="7f4e168b7c4533613e53a5e24eeb63ab"></a><!-- doxytag: member="OGRLineString::setPoint" ref="7f4e168b7c4533613e53a5e24eeb63ab" args="(int, double, double, double)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setPoint           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>iPoint</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>xIn</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>yIn</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double&nbsp;</td>          <td class="paramname"> <em>zIn</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>Set the location of a vertex in line string.<p>If iPoint is larger than the number of necessary the number of existing points in the line string, the point count will be increased to accomodate the request.<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>iPoint</em>&nbsp;</td><td>the index of the vertex to assign (zero based). </td></tr>    <tr><td valign="top"></td><td valign="top"><em>xIn</em>&nbsp;</td><td>input X coordinate to assign. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>yIn</em>&nbsp;</td><td>input Y coordinate to assign. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>zIn</em>&nbsp;</td><td>input Z coordinate to assign (defaults to zero). </td></tr>  </table></dl></div></div><p><a class="anchor" name="49a2c161f48b2bd5ad6c7e2832c0cf15"></a><!-- doxytag: member="OGRLineString::setPoints" ref="49a2c161f48b2bd5ad6c7e2832c0cf15" args="(int, OGRRawPoint *, double *=NULL)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setPoints           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nPointsIn</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype"><a class="el" href="classOGRRawPoint.html">OGRRawPoint</a> *&nbsp;</td>          <td class="paramname"> <em>paoPointsIn</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 clears any existing points assigned to this line string, and assigns a whole new set. It is the most efficient way of assigning the value of a line string.<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 paoPointsIn </td></tr>    <tr><td valign="top"></td><td valign="top"><em>paoPointsIn</em>&nbsp;</td><td>list of points being assigned. </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="1806abce9d10d92c3b1de838796811f1"></a><!-- doxytag: member="OGRLineString::setPoints" ref="1806abce9d10d92c3b1de838796811f1" args="(int, double *padfX, double *padfY, double *padfZ=NULL)" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">void OGRLineString::setPoints           </td>          <td>(</td>          <td class="paramtype">int&nbsp;</td>          <td class="paramname"> <em>nPointsIn</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double *&nbsp;</td>          <td class="paramname"> <em>padfX</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">double *&nbsp;</td>

⌨️ 快捷键说明

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