[gdal-dev] convert .tif/.tfwx/.aux.xml to a geotiff?
Martin Ouellet
geomartino at gmail.com
Mon Jun 18 06:56:45 PDT 2012
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.
Is it possible to reuse the georeferenced points (in pixel) and their
equivalent in real coordinate so the geotiff would keep the rotation?
Extract from .aux.xml
<SourceGCPs xsi:type="typens:ArrayOfDouble">
<Double>4.8908512645451037</Double>
<Double>25.730248842109091</Double>
<Double>16.685287664469797</Double>
<Double>25.294638277962804</Double>
<Double>4.6809492973132762</Double>
<Double>6.0210986253641749</Double>
<Double>17.233821111329988</Double>
<Double>6.366754659536582</Double>
</SourceGCPs>
<TargetGCPs xsi:type="typens:ArrayOfDouble">
<Double>330000</Double>
<Double>5178000</Double>
<Double>345000</Double>
<Double>5177000</Double>
<Double>329000</Double>
<Double>5153000</Double>
<Double>345000</Double>
<Double>5153000</Double>
</TargetGCPs>
cheers,
MartinO
On Sat, Jun 16, 2012 at 10:13 AM, Kyle Shannon <kyle at pobox.com> wrote:
> Martin, see the -a_ullr option here:
>
> http://gdal.org/gdal_translate.html
>
> (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:
>
> gdal_translate -a_ullr -117.0 45.0 -116.0 44.0 -a_srs epsg:4326 in.tif
> out.tif
>
> kss
>
> On Sat, Jun 16, 2012 at 1:46 AM, Florent JITIAUX <fjitiaux at gmail.com>wrote:
>
>> Hi Martin,
>>
>> if you georeference your images manually you can use gdalwarp to do it or
>> set coordinates of images with gdal_translate.
>>
>> Florent
>>
>> 2012/6/15 Martin Ouellet <geomartino at gmail.com>
>>
>>> Hi,
>>>
>>> I manually georeferenced some images in ArcGIS and at the end, I got a
>>> .tfwx file and a aux.xml.
>>>
>>> I wish to convert them into geotiff with the georeferenced info in the
>>> header:
>>>
>>> 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
>>>
>>> Is it possible to do that perhaps using the info in the .aux.xml file?
>>>
>>> Thanks,
>>>
>>> MartinO
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>
>>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120618/1bd76fa4/attachment.html>
More information about the gdal-dev
mailing list