[gdal-dev] How to improve gdal_rasterize perfomance?

Frank Warmerdam warmerdam at pobox.com
Thu Sep 17 06:02:12 EDT 2009

Hermann Peifer wrote:
> Frank Warmerdam wrote:
>> This sounds like a heap of processing that needs to be done.
>> You can increase the chunk size on which gdal_rasterize operates by
>> increasing the GDAL_CACHEMAX config option.  I would suggest sizing
>> it to be roughly 1/3 of your machine RAM.
>> eg.
>> gdal_rasterize --config GDAL_CACHEMAX 600 ...
>> would be appropriate on a machine with 2GB of RAM.
>> Beyond that I can't think of much that might help.  The above basically
>> reduces the number of passes needed through the vector data.  It is all
>> processed once for each chunk of the raster that is processed.
> Thanks.
> Could the performance be improved by optimizing my blank tif: e.g. 
> compressed or not, tiled or not?


Uncompressed will help a bit perhaps, but there is only one pass made
over the raster, and in large chunks, so it won't make much difference.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list