[gdal-dev] gdal_translate syntax input separate R, G,
B output combined RGB
Chaitanya kumar CH
chaitanya.ch at gmail.com
Sun Jan 11 01:29:22 EST 2009
Dear Greg,
I am new here. So correct me if I am wrong.
Try using Virtual Format files. More info at
http://www.gdal.org/gdal_vrttut.html
You should be able to create a VRTRasterBand for each band with the
corresponding source.
gtif_RGB.vrt would look something like this...
<VRTDataset rasterXSize="1172" rasterYSize="1864">
<VRTRasterBand dataType="Byte" band="1">
<SourceFilename relativetoVRT="1">gtif_R.tif</SourceFilename>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="2">
<SourceFilename relativetoVRT="1">gtif_G.tif</SourceFilename>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="3">
<SourceFilename relativetoVRT="1">gtif_B.tif</SourceFilename>
</VRTRasterBand>
</VRTDataset>
--
Chaitanya kumar CH.
Greg Coats wrote:
> I have 3 single band GeoTIF images of the same geographic area: one
> for the Red band, one for the Green band, and one for the Blue band,
> gtif_R.tif, gtif_G.tif, gtif_B.tif. Please, what is the
> gdal_translate syntax http://www.gdal.org/gdal_translate.html to
> combine these 3 single band GeoTIF images into 1 three band RGB
> GeoTIF image, gtif_RGB.tif?
More information about the gdal-dev
mailing list