[Gdal-dev] gdal_merge.py

John Cartwright John.C.Cartwright at noaa.gov
Wed Apr 5 18:05:42 EDT 2006


Hello All,

I'm trying to merge a set of gifs w/ gdal_merge.py.  The generated gif 
cannot be displayed in a browser "because it contains errors".

gdalinfo seems to think it's OK:

Driver: GTiff/GeoTIFF
Size is 634, 701
Coordinate System is `'
Origin = (-107.671825,43.779007)
Pixel Size = (0.00936063,-0.00936063)
Corner Coordinates:
Upper Left  (-107.6718251,  43.7790070)
Lower Left  (-107.6718251,  37.2172060)
Upper Right (-101.7371863,  43.7790070)
Lower Right (-101.7371863,  37.2172060)
Center      (-104.7045057,  40.4981065)
Band 1 Block=634x12 Type=Byte, ColorInterp=Gray

although the ColorInterp is different than the original images:

Driver: GIF/Graphics Interchange Format (.gif)
Size is 600, 550
Coordinate System is `'
Origin = (-107.671825,43.779007)
Pixel Size = (0.00955275,-0.00955275)
Corner Coordinates:
Upper Left  (-107.6718251,  43.7790070)
Lower Left  (-107.6718251,  38.5249939)
Upper Right (-101.9401744,  43.7790070)
Lower Right (-101.9401744,  38.5249939)
Center      (-104.8059998,  41.1520004)
Band 1 Block=600x1 Type=Byte, ColorInterp=Palette
  NoData Value=11
Metadata:
  GIF_BACKGROUND=0
  Color Table (RGB with 256 entries)
...

Same thing happens w/ the GTiff format. Is there something I'm missing 
here or is this the expected behaviour?

Thanks!

-- john




More information about the Gdal-dev mailing list