[gdal-dev] Sub-optimal access to cloud optimized GeoTIFF

Even Rouault even.rouault at spatialys.com
Wed Dec 13 02:07:19 PST 2017


Jukka,
> 
> This image http://193.166.24.122/gtk/mp_500000_7500000.tif should be
> prepared as adviced in
> https://trac.osgeo.org/gdal/wiki/CloudOptimizedGeoTIFF and the validation
> script agrees on that.
> 
> python c:\temp\validate_cloud_optimized_geotiff.py mp_500000_7500000.tif
> Result:
> mp_500000_7500000.tif is a valid cloud optimized GeoTIFF
> 
> However, it seems to me that gdal_translate is reading the whole GeoTIFF
> (from byte 0 to 3430936 ) once and then a little bit more (2850413 to
> 2984219). My command and debug info looks like this:
> 

The issue is that the file has a ColorMap and is of type UInt16. Consequently there are 65536 
entries * 3 values per entry * 2 bytes per value = 393 KO for a colormap. And as the colormap 
is put in each of the 7 resolution levels, that makes a total size for all the image file 
directories of 2.78 MB.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171213/9b874d5b/attachment.html>


More information about the gdal-dev mailing list