[gdal-dev] buildvrt not working

yuta sato yutaxsato at gmail.com
Mon Feb 2 00:54:26 PST 2015


thank you Even Rouault.

On Mon, Feb 2, 2015 at 5:43 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le lundi 02 février 2015 04:29:33, yuta sato a écrit :
> > Sorry, the outfile name I tried is outfile.vrt, but not  outfile.tif.
> > However, I used gdaltranslate to convert .vrt into .tif
>
> currently gdalbuildvrt -separate only operates on the first band of each
> inputfile. So you have to preliminary steps before to isolate each band
> into a
> separate file. For example :
>
> gdal_translate in1.tif in1_1.vrt -of vrt -b 1
> gdal_translate in1.tif in1_2.vrt -of vrt -b 2
> gdal_translate in1.tif in1_3.vrt -of vrt -b 3
> gdal_translate in1.tif in1_4.vrt -of vrt -b 4
> gdal_translate in1.tif in1_5.vrt -of vrt -b 5
>
> gdal_translate in2.tif in2_1.vrt -of vrt -b 1
> gdal_translate in2.tif in2_2.vrt -of vrt -b 2
> gdal_translate in2.tif in2_3.vrt -of vrt -b 3
> gdal_translate in2.tif in2_4.vrt -of vrt -b 4
> gdal_translate in2.tif in2_5.vrt -of vrt -b 5
>
> gdalbuildvrt -separate out.vrt \
>                    in1_1.vrt in1_2.vrt in1_3.vrt in1_4.vrt in1_5.vrt \
>                    in2_1.vrt in2_2.vrt in2_3.vrt in2_4.vrt in2_5.vrt
>
> >
> > Additionally, when I see the .vrt file only two bands are written there.
> >
> > On Mon, Feb 2, 2015 at 12:26 PM, yuta sato <yutaxsato at gmail.com> wrote:
> > > Dear all:
> > >
> > > I have two geotiff files each of 5 bands.
> > >
> > > I wanted to make one file consisting of 10 bands.
> > >
> > > I tried as follows, but I got only 2 bands in the outfile.
> > >
> > > buildvrt -separate -input_file_list infile.txt outfile.tif
> > >
> > > Please help me.
> > >
> > > Thanks
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150202/880904c5/attachment.html>


More information about the gdal-dev mailing list