Re: [gdal-dev] How do I select 3 of 5 bands for output?

2008-11-08 Thread Lucena, Ivan
Steve, I have no experience with "Mr.SID". I don't know the gentleman :). I don't know if that is a bug or a limitation of this driver. Best regards, Ivan > ---Original Message--- > From: Stephen Woodbridge <[EMAIL PROTECTED]> > Subject: Re: [gdal-dev] How do I select 3 of 5 bands f

Re: [gdal-dev] How do I select 3 of 5 bands for output?

2008-11-08 Thread Stephen Woodbridge
Ahh, thank you for the link to the vrttut. This has got me going in the right direction. I actually did try the -of VRT but didn't know it was supposed to be a XML file so discounted it when the file was small. So, my next problem is that when I run gdalwarp on the VRT file I get assertion err

[gdal-dev] JPEG2000 ECW Issue

2008-11-08 Thread Philip Paar
1. JPEG2000 ECW Issue (Philip Paar) The whole command is: gdal_translate -of jp2ecw -ot int16 -co "TARGET=0" -co "LARGE_OK=yes" %1 %1.jp2 -Philip ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] JPEG2000 ECW Issue

2008-11-08 Thread Philip Paar
Hi, I found a pixel depth/ECW issue with gdal_translate and JEPG2000 support (using FWTools 2.2.8. Win) . My input .IMG is 16bit signed while the resulting JP2 file looses 8 bit. >compress_terrain 12_03_1_5_-32768.tif_-12_1588_.img Input file size is 1000, 1000 Warning 1: ECW only supports Byte

Re: [gdal-dev] How do I select 3 of 5 bands for output?

2008-11-08 Thread Lucena, Ivan
Hi Steve, No, VRT files are not Geotiff, see [1], and they should not take more than a bunch of Kbytes. The problem is that in *our* gdal_translate command line *we* forgot "-of vrt" and the default format is Geotiff. system("gdaltranslate -OF VRT $infile -b 1 -b 2 -b 3 tmp.vrt"); Good luck