[gdal-dev] Are those 2 things possible using gdal2tiles?

Even Rouault even.rouault at spatialys.com
Thu Feb 5 10:30:00 PST 2015


Jorge,

> - Generate JPEG tiles instead of PNG. Tried just replacing the driver's
> name (PNG) with JPEG. Didn't work. Base tiles are generated, but
> overview tiles are not. Getting this error instead: ERROR 1: Buffer too
> small

This messages comes from the WriteRaster() Python bindings, when it is passed 
a buffer that isn't large enough regarding the advertized buffer dimensions. 
Perhaps due to the fact that JPEG only supports 3 bands and PNG 4, although 
this is just a guess without deeper inspection.

> - Apply a color to nodata value of generated tiles. Tried passing -a
> "200,0,0" to gdal2tiles, but it was ignored.

The doc of -a suggests that it only applies to the input dataset, not the 
output

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list