[gdal-dev] Using gdal_translate to convert tiff 2 tiff with georeferencing

Jorge Arévalo jorge.arevalo at deimos-space.com
Fri Oct 14 05:00:53 EDT 2011


Hello,

On Wed, Oct 12, 2011 at 4:43 PM, Jean-Claude Repetto <jrepetto at free.fr> wrote:
> Le 23/07/2011 16:17, Михаил a écrit :
>>
>> Hello, everybody.
>> I have some images in TIFF format created in Photoshop. Also, I have
>> georeferncing for each file in txt.
>> If I'm working with BMP files, then i have no problems - I can use this
>> command line for example
>> gdal_translate -co COMPRESS=LZW -co JPEG_QUALITY=100 -a_srs "+proj=utm
>> +zone=37 +datum=WGS84" "input.bmp" "output.tiff"
>> Also I have created additional input.bpw file
>> 2.00
>> 0.00
>> 0.00
>> -2.00
>> 395276.00
>> 6206467.00
>> I don't know the reason, but gdal_translate doesn't generate
>> georeferencing without this input.bpw file.
>
> Alternatively, you can use the -a_ullr option of gdal_translate.
>
>> But then I've tried to convert tiff without georeferencing 2 tiff with
>> georeferencing using next command line
>> gdal_translate -co COMPRESS=LZW -co JPEG_QUALITY=100 -a_srs "+proj=utm
>> +zone=37 +datum=WGS84" "input.tiff" "output.tiff"
>> Unfortunately, it doesn't work. It looks like gdal_translate is taking
>> reference information from input TIFF and obviously there is nothing,
>> because it was created in Photoshop. If I'm using TIFF created in
>> GlobalMapper with georeferencing, then all works fine. How to solve this
>> poblem?
>
> You can use the -a_ullr option of gdal_translate, or create a .tfw file as
> you did for BMP files.
>
> Jean-Claude
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>

Did you try with -co TFW=YES option?

-- 
Jorge Arévalo
Internet & Mobility Division, DEIMOS
jorge.arevalo at deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g


More information about the gdal-dev mailing list