[gdal-dev] gdal_grid - very slow

Even Rouault even.rouault at mines-paris.org
Mon Feb 7 15:20:44 EST 2011


Le lundi 07 février 2011 19:57:28, Werner Reiche a écrit :
> I'm using gdal_grid to create a 1200x796 pixel out from an input data set
> of approximately 250,000 points.  This takes about 90 minutes (30 minutes
> for each r/g/b band).  This seems to be unreasonably slow.  Any ideas on
> speeding it up?
> 
> The command I am using is:
> gdal_grid -txe -51.428009 -43.153992 -tye 46.112598 51.347198 -outsize 1024
> 796 \ -a nearest:radius1=0.01:radius2=0.01:angle=0.0:nodata=0.0 \ -l
> rs2_file_1 -l rs2_file_2 -l rs2_file_3 \
>           -of GTiff -ot Byte rs2_file.vrt test.tiff

This is a known limitation of the current gdal_grid. No easy workaround except 
reducing your raster size and/or point set. Or try an experimental patch 
available in http://trac.osgeo.org/gdal/ticket/2411 (based on r15061) but it 
won't apply on recent versions without adjustements.


More information about the gdal-dev mailing list