Thanks, -a_ullr option works great in that case but, when I open the image (tif + .aux.xml) in ArcMap, there is a small rotation.  <div><br></div><div>Is it possible to reuse the georeferenced points (in pixel) and their equivalent in real coordinate so the geotiff would keep the rotation?</div>
<div><div>Extract from .aux.xml</div><div><SourceGCPs xsi:type="typens:ArrayOfDouble"></div><div>        <Double>4.8908512645451037</Double></div><div>        <Double>25.730248842109091</Double></div>
<div>        <Double>16.685287664469797</Double></div><div>        <Double>25.294638277962804</Double></div><div>        <Double>4.6809492973132762</Double></div><div>        <Double>6.0210986253641749</Double></div>
<div>        <Double>17.233821111329988</Double></div><div>        <Double>6.366754659536582</Double></div><div>      </SourceGCPs></div><div>      <TargetGCPs xsi:type="typens:ArrayOfDouble"></div>
<div>        <Double>330000</Double></div><div>        <Double>5178000</Double></div><div>        <Double>345000</Double></div><div>        <Double>5177000</Double></div><div>
        <Double>329000</Double></div><div>        <Double>5153000</Double></div><div>        <Double>345000</Double></div><div>        <Double>5153000</Double></div><div>      </TargetGCPs></div>
</div><div><br></div><div>cheers,</div><div><br></div><div><div>MartinO</div><div><br><div class="gmail_quote">On Sat, Jun 16, 2012 at 10:13 AM, Kyle Shannon <span dir="ltr"><<a href="mailto:kyle@pobox.com" target="_blank">kyle@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><font><font face="courier new,monospace">Martin, see the -a_ullr option here:<br></font></font></div><div><font><font face="courier new,monospace"><br>
</font></font></div><div><font><font face="courier new,monospace"><a href="http://gdal.org/gdal_translate.html" target="_blank">http://gdal.org/gdal_translate.html</a><br>

</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">(or gdal_translate --help).  The option allows you to set the upper left and lower right corners.  You probably want to set the spatial reference as well with -a_srs:</font></font><font><font face="courier new,monospace"><br>


</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">gdal_translate -a_ullr -117.0 45.0 -116.0 44.0 -a_srs epsg:4326 in.tif out.tif<br></font></font></div>


<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">kss<br></font></font></div><br><div class="gmail_quote"><div class="im">On Sat, Jun 16, 2012 at 1:46 AM, Florent JITIAUX <span dir="ltr"><<a href="mailto:fjitiaux@gmail.com" target="_blank">fjitiaux@gmail.com</a>></span> wrote:<br>


</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Martin,<br><br>if you georeference your images manually you can use gdalwarp to do it or set coordinates of images with gdal_translate.<br>


<br>Florent<br><br><div class="gmail_quote">2012/6/15 Martin Ouellet <span dir="ltr"><<a href="mailto:geomartino@gmail.com" target="_blank">geomartino@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Hi,</div><div><br></div><div>I manually georeferenced some images in ArcGIS and at the end, I got a .tfwx file and a aux.xml.</div>



<div><br></div><div>I wish to convert them into geotiff with the georeferenced info in the header:</div>
<div><br></div><div>1) I've renamed the .tfwx into .tfw and run a gdal_translate.  The command didn't failed but the resulting image is not georeferenced at all</div><div><br></div><div>Is it possible to do that perhaps using the info in the .aux.xml file?</div>




<div><br></div><div>Thanks,</div><div><br></div><div>MartinO</div>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div></div></div><br>
</blockquote></div><br></div></div>