[Gdal-dev] Re: gdal_translsate color problem
Frank Warmerdam
warmerdam at pobox.com
Fri Aug 3 11:54:33 EDT 2007
Suray Ph wrote:
> Suray Ph <philippe.suray <at> market-ip.com> writes:
>
>> Frank,
>>
>> Thank you for your help, you can download the files at:
>>
>> http://dev.market-ip.com/B250048_P72_Y2005_S68.tif
>> http://dev.market-ip.com/out.tif
>>
>> I used this command line:
>> gdal_translate -of GTiff -co "TFW=TRUE INTERLEAVE=PIXEL"
>> B250048_P72_Y2005_S68.tif out.tif
>>
>> Hope this can help to point the problem.
>>
>> Regards.
>>
>> Philippe
>>
>
> Frank,
>
> I think i found the problem. I open out.tif with this stupid MS Office Document
> Imaging, if i open this file with OpenEV, everything is right.
>
> Apologize for this question, thank you for your help.
Philippe,
The other problem is that you need a new -co for each creation option.
So your command should be:
gdal_translate -of GTiff -co TFW=TRUE -co INTERLEAVE=PIXEL in.tif out.tif
The INTERLEAVE=PIXEL was having no effect as you had applied it.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list