[gdal-dev] suggestions for raster performance optimization
Bjoern Schilberg
bjoern.schilberg at intevation.de
Tue Nov 23 08:57:08 EST 2010
Hello,
I was wondering what will be promising ways for raster performance
optimization for about 5000 DOP. I did identified 4 different (and more or
less independent) ways.
1) Building pyramids (external overviews) with gdaladdo of each tif file.
gdaladdo --config GDAL_CACHEMAX 200 --config COMPRESS_OVERVIEW
JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW
PIXEL --config JPEG_QUALITY_OVERVIEW 80 -ro *.tif 2 4 6 8 16 32 64 128 25
Creating a tile-index with gdaltileindex.
gdaltindex index.shp *.tif
2) Building a seamless mosaic from all tif files with gdalbuildvrt.
gdalbuildvrt mosaic.vrt *.tif (works, but will be large)
After that building pyramid (external overview) with gdaladdo of the mosaic
file.
gdaladdo --config GDAL_CACHEMAX 200 --config COMPRESS_OVERVIEW
JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW
PIXEL --config JPEG_QUALITY_OVERVIEW 80 -ro mosaic.vrt 2 4 6 8 16 32 64 1
This does not really work out since (I guess hardware is my limiting
factor).
3) Building a seamless mosaic from all tif files with gdalbuildvrt.
gdalbuildvrt mosaic.vrt *.tif
Creating a pyramid with gdal_retile.py
gdal_retile.py -v -co GDAL_CACHEMAX=200 -of GTIFF -co COMPRESS=JPEG -co
JPEG_QUALITY=80 -co PHOTOMETRIC=YCBCR -ps 10000 10000 -co "TILED=YES" -s_srs
epsg:25832 -levels 10 -tileIndex tindex -pyramidOnly -ta
Also this does not really seem appropriate.
4) Creating static singled file external overviews manually.
Here i''m not sure how to determine reasonable scales.
Do you have any further suggestions or tips I have not mentioned above?
Thanks for your input and links.
Best regards
Bjoern
More information about the gdal-dev
mailing list