[Gdal-dev] GDAL 1.2.0 Beta Release - Error
Lorenzo Moretti
lorenzo.moretti at bologna.enea.it
Wed Mar 3 06:42:00 EST 2004
>
>Lorenzo,
>
>Sorry about that ... my error. I have fixed this in CVS, committed
>the fix and replaced the beta tarballs and zip.
Thanx
>>Another problem:
>>
>>I have QUICK BIRD image files:
>>
>>
>>Is it possible to fix this error ??
>
>If you want to reorder the bands it is possible to do so with some tricky
>steps.
>
>Basically, build a .vrt file corresponding to the input file:
>
>gdal_translate -of VRT bgra.tif bgra.vrt
>
>Then edit the .vrt file with a text editor, and change the <SourceBand>
>values around to the order you want. For instance, change the
><SourceBand> for the first VRTRasterBand to 3, the 2nd to 2, and the
>3rd to 1.
>
>Then convert the .vrt file back into a TIFF file and it should be reordered.
>
>gdal_translate bgra.vrt rgba.tif
>
>Good luck,
OK for this tip but I use Grass and r.in.gdal and this method is not
applicable for user. The module r.in.gdal read the band in wrong
mode.
It's difficult for the user to use gdal_translate for creating 4 tiff
files before and after to go to Grass and import these tiff files.
This method must be more simple. Why is it impossible to import bands
in right sequence?
--
________________________________________________________________________
|| Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it
||/|/| ENEA prot Web: http://wwwamb.bologna.enea.it/
|| | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.)
~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131
________________________________________________________________________
More information about the Gdal-dev
mailing list