EVOLUTION-MANAGER
Edit File: gdaltransform.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>My Project: gdaltransform</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">My Project </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">gdaltransform </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><p>transforms coordinates</p> <h1><a class="anchor" id="gdaltransform_synopsis"></a> SYNOPSIS</h1> <pre class="fragment">gdaltransform [--help-general] [-i] [-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"] [-order n] [-tps] [-rpc] [-geoloc] [-gcp pixel line easting northing [elevation]]* [srcfile [dstfile]] </pre><h1><a class="anchor" id="gdaltransform_description"></a> DESCRIPTION</h1> <p>The gdaltransform utility reprojects a list of coordinates into any supported projection,including GCP-based transformations.</p> <dl> <dt><b>-s_srs</b> <em>srs def</em>:</dt> <dd>source spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. </dd> <dt><b>-t_srs</b> <em>srs_def</em>:</dt> <dd>target spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. </dd> <dt><b>-to</b> <em>NAME=VALUE</em>:</dt> <dd>set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2(). </dd> <dt><b>-order</b> <em>n</em>:</dt> <dd>order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs. </dd> <dt><b>-tps</b>:</dt> <dd>Force use of thin plate spline transformer based on available GCPs. </dd> <dt><b>-rpc</b>: </dt> <dd>Force use of RPCs. </dd> <dt><b>-geoloc</b>:</dt> <dd>Force use of Geolocation Arrays. </dd> <dt><b>-i</b></dt> <dd>Inverse transformation: from destination to source. </dd> <dt><b>-gcp</b><em>pixel line easting northing [elevation]</em>: </dt> <dd>Provide a GCP to be used for transformation (generally three or more are required) </dd> <dt><em>srcfile</em>:</dt> <dd>File with source projection definition or GCP's. If not given, source projection is read from the command-line -s_srs or -gcp parameters </dd> <dt><em>dstfile</em>:</dt> <dd>File with destination projection definition. </dd> </dl> <p>Coordinates are read as pairs (or triples) of numbers per line from standard input, transformed, and written out to standard output in the same way. All transformations offered by gdalwarp are handled, including gcp-based ones.</p> <p>Note that input and output must always be in decimal form. There is currently no support for DMS input or output.</p> <p>If an input image file is provided, input is in pixel/line coordinates on that image. If an output file is provided, output is in pixel/line coordinates on that image.</p> <h1><a class="anchor" id="gdaltransform_example"></a> Image RPC Example</h1> <p>Simple reprojection from one projected coordinate system to another:</p> <pre class="fragment">gdaltransform -s_srs EPSG:28992 -t_srs EPSG:31370 177502 311865 </pre><p>Produces the following output in meters in the "Belge 1972 / Belgian Lambert 72" projection:</p> <pre class="fragment">244510.77404604 166154.532871342 -1046.79270555763 </pre><h1><a class="anchor" id="gdaltransform_example"></a> Image RPC Example</h1> <p>The following command requests an RPC based transformation using the RPC model associated with the named file. Because the -i (inverse) flag is used, the transformation is from output georeferenced (WGS84) coordinates back to image coordinates.</p> <pre class="fragment">gdaltransform -i -rpc 06OCT20025052-P2AS-005553965230_01_P001.TIF 125.67206 39.85307 50 </pre><p>Produces this output measured in pixels and lines on the image: </p> <pre class="fragment">3499.49282422381 2910.83892848414 50 </pre> </div></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>