[FWTools] gdal2tiles background fill color
Lance Dyas
lancelot at inetnebr.com
Sat Apr 5 14:35:05 EDT 2008
This turned out to be fairly easy by the way..
during writetile before calling tmp.WriteRaster
the following fills the background with white
if bands == 3 and tileformat != 'png'
tmp.GetRasterBand(1).Fill(255)
tmp.GetRasterBand(2).Fill(255)
tmp.GetRasterBand(3).Fill(255)
Lance Dyas wrote:
> Before I dig back into this code.. thought I would just ask
> I have patched the script so that it can produce JPEGs
> Does anyone know how I could customize it to be able
> to set differing background colors on jpegs
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>
>
More information about the FWTools
mailing list