📄 classgdalwarpoperation.html
字号:
<dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>nDstXOff</em> </td><td>X offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYOff</em> </td><td>Y offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstXSize</em> </td><td>Width of output window on destination file to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYSize</em> </td><td>Height of output window on destination file to be produced.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>CE_None on success or CE_Failure if an error occurs. </dd></dl></div></div><p><a class="anchor" name="f853337e2a939f913ae4de48dc2f577a"></a><!-- doxytag: member="GDALWarpOperation::WarpRegion" ref="f853337e2a939f913ae4de48dc2f577a" args="(int nDstXOff, int nDstYOff, int nDstXSize, int nDstYSize, int nSrcXOff=0, int nSrcYOff=0, int nSrcXSize=0, int nSrcYSize=0)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CPLErr GDALWarpOperation::WarpRegion </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstXOff</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstYOff</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstXSize</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstYSize</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcXOff</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcYOff</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcXSize</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcYSize</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>This method requests the indicated region of the output file be generated.<p>Note that <a class="el" href="classGDALWarpOperation.html#f853337e2a939f913ae4de48dc2f577a">WarpRegion()</a> will produce the requested area in one low level warp operation without verifying that this does not exceed the stated memory limits for the warp operation. Applications should take care not to call <a class="el" href="classGDALWarpOperation.html#f853337e2a939f913ae4de48dc2f577a">WarpRegion()</a> on too large a region! This function is normally called by <a class="el" href="classGDALWarpOperation.html#589a9b74fa370cc9eaf11bdfd9aab2ae">ChunkAndWarpImage()</a>, the normal entry point for applications. Use it instead if staying within memory constraints is desired.<p>Progress is reported from 0.0 to 1.0 for the indicated region.<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>nDstXOff</em> </td><td>X offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYOff</em> </td><td>Y offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstXSize</em> </td><td>Width of output window on destination file to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYSize</em> </td><td>Height of output window on destination file to be produced.</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>CE_None on success or CE_Failure if an error occurs. </dd></dl></div></div><p><a class="anchor" name="8051cf86afc6a24e21663944424a0f45"></a><!-- doxytag: member="GDALWarpOperation::WarpRegionToBuffer" ref="8051cf86afc6a24e21663944424a0f45" args="(int nDstXOff, int nDstYOff, int nDstXSize, int nDstYSize, void *pDataBuf, GDALDataType eBufDataType, int nSrcXOff=0, int nSrcYOff=0, int nSrcXSize=0, int nSrcYSize=0)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CPLErr GDALWarpOperation::WarpRegionToBuffer </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstXOff</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstYOff</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstXSize</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nDstYSize</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>pDataBuf</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="gdal_8h.html#22e22ce0a55036a96f652765793fb7a4">GDALDataType</a> </td> <td class="paramname"> <em>eBufDataType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcXOff</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcYOff</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcXSize</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>nSrcYSize</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>This method requests that a particular window of the output dataset be warped and the result put into the provided data buffer. The output dataset doesn't even really have to exist to use this method as long as the transformation function in the <a class="el" href="structGDALWarpOptions.html">GDALWarpOptions</a> is setup to map to a virtual pixel/line space.<p>This method will do the whole region in one chunk, so be wary of the amount of memory that might be used.<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>nDstXOff</em> </td><td>X offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYOff</em> </td><td>Y offset to window of destination data to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstXSize</em> </td><td>Width of output window on destination file to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nDstYSize</em> </td><td>Height of output window on destination file to be produced. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pDataBuf</em> </td><td>the data buffer to place result in, of type eBufDataType. </td></tr> <tr><td valign="top"></td><td valign="top"><em>eBufDataType</em> </td><td>the type of the output data buffer. For now this must match <a class="el" href="structGDALWarpOptions.html#3675f349217a18eb0d04e687375c189d">GDALWarpOptions::eWorkingDataType</a>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSrcXOff</em> </td><td>source window X offset (computed if window all zero) </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSrcYOff</em> </td><td>source window Y offset (computed if window all zero) </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSrcXSize</em> </td><td>source window X size (computed if window all zero) </td></tr> <tr><td valign="top"></td><td valign="top"><em>nSrcYSize</em> </td><td>source window Y size (computed if window all zero)</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>CE_None on success or CE_Failure if an error occurs. </dd></dl></div></div><p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="gdalwarper_8h-source.html">gdalwarper.h</a><li>gdalwarpoperation.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 + -