[gdal-dev] gdalbuildvrt -init 255

Greg Coats gregcoats at mac.com
Mon Jan 4 12:29:35 EST 2010

By default, gdal_merge.py starts by creating an output image with all black pixels, and then replaces these black pixels with pixels from the images being read in. Passing to gdal_merge.py -init 255 pre-initializes the output image to all white, instead of all black, pixels.
Similar to gdal_merge.py, gdalbuildvrt fills with black pixels. I am seeking for gdalbuildvrt, the -init 255 option that gdal_merge.py supports, but do not see -init 255 as a supported option on the gdalbuildvrt man page. In GDAL 1.7.0, will gdalbuildvrt support -init 255? If not, then in GAL 1.7.0 can the option -vrtnodata be used in a way similar to how gdal_merge.py supports -init 255? I need areas where there is no image to be white, rather than the black that gdalbuildvrt is by default setting them to be.

gdal_merge.py man page
gdalbuildvrt man page
gdalbuild_black image
gdalbuildvrt_white image (simulated)

More information about the gdal-dev mailing list