Re: [gdal-dev] gdal_merge and the treatment of nodata value

2008-09-03 Thread Matt Wilkie
Hi Andreas, If you use gdalwarp rather than gdal_merge you could use the -srcnodata and -dstnodata flags to change the null value: gdalwarp in-01.tif in-02.tif outimage.tif -srcnodata 0 -dstnodata 255 This assumes the nodata in all the input images are the identical (0, or black). Since

Re: [gdal-dev] gdal_merge and the treatment of nodata value

2008-09-03 Thread Andreas Neumann
Thanks for having a look at my problem. I am adding more information: I am merging a number of rgb tiff files (scanned city maps), but they don't align perfectly at the outer edges. This means that on the edges of the resulting output file, where the tiff files don't align, I get borders with nod

Re: [gdal-dev] gdal_merge and the treatment of nodata value

2008-09-03 Thread Frank Warmerdam
Andreas Neumann wrote: Hi, I am using gdal_merge to merge different rasters. The problem is that the nodata values appear as black and I want to have them white. Is there an option to set nodata values to white with gdal_merge? Or would I have to do this as a postprocessing? The problem is tha

[gdal-dev] gdal_merge and the treatment of nodata value

2008-09-03 Thread Andreas Neumann
Hi, I am using gdal_merge to merge different rasters. The problem is that the nodata values appear as black and I want to have them white. Is there an option to set nodata values to white with gdal_merge? Or would I have to do this as a postprocessing? The problem is that the images are too larg