[gdal-dev] Re: gdal_merge.py - Missing images

Jeff Ruby jgr007 at gmail.com
Fri Oct 7 12:25:19 EDT 2011


You might try building a vrt file first and then converting that.

gdalbuildvrt merge.vrt *.tif

 -or just merge the original IMGs-

gdalbuildvrt merge.vrt *.img

-then-

gdal_translate <your options> merge.vrt output.tif


> Message: 4
> Date: Fri, 7 Oct 2011 11:42:52 -0400
> From: "Jay L." <jzl5325 at psu.edu>
> Subject: [gdal-dev] Fwd: gdal_merge.py - Missing images - sans
>        attachment
> To: gdal-dev at lists.osgeo.org
> Message-ID:
>        <CA+bfmPsVpqKPSdOWvuvnG8vR9okKpHBRAKvznCQ3fRbBuGjDVQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Sent with an example attachment, which is awaiting approval.  Here is the
> mail without attachement.
>
>
> I have 8 large Gtiffs which I am trying to mosaic.  Tiffs were created from
> .IMG files downloaded from PDS.  I converted to tif using:
>
>        gdal_translate -of GTiff -scale -co "TILED=YES" -co "COMPRESS=JPEG"
> <input>
>
> The format conversion is working without a problem.  Gdalinfo is reporting
> the correct NDV and projection information.  Viewing each tif also returns
> the expected raster iamge.  So far, so good.
>
>
> I then use:
>
>        gdal_merge.py -o wacmos.tif -of GTiff -v --optfile tiff_list.txt
>
>
> Six of the eight tiles are added to the mosaic correctly.  Varying the order
> in the list, or using *.tif does not change the output.  It is always the
> same two images which are missing.  Watching the verbose output, it looks
> like the images are mosaicing correctly.  What would cause these images to
> be merged as totally black tiles?
>
>
> Thanks for any insight,
> Jay


More information about the gdal-dev mailing list