[Gdal-dev] Making tiles automatically?

Frank Warmerdam warmerdam at pobox.com
Thu Jan 11 11:50:41 EST 2007


Kai Behncke wrote:
> Dear list,
> 
> I would like to tile a tiff-image (with tfw file) in 16 tiles.
> I wonder if there is a possibility to avoid manual tiling for every tile like:
> 
> gdal_translate –projwin 3429886 5799741 3435890 5794667
> ...path_to\landsat7.tiff path_to\landsat7_tile1.tiff
> 
> ...this would be so much typing.  
> 
> Is there anywhere a possibility to tile the image with a script?
> Does the possibily exist to tile it automatically in the shell?


Kai,

I think a few GDAL users have written tiling scripts.  You could do it
as a batch wrapper for gdal_translate, or write it as a standalone script
using one of the bindings (like the python bindings).  However, there is no
such canned script in GDAL currently.

 > Another question: After tiling: Will for every tile a tfw-file be produced?

Note that to get a TFW file you will need the creation option TFW=YES, like:

gdal_translate –projwin 3429886 5799741 3435890 5794667 -co TFW=YES \
  ...path_to\landsat7.tiff path_to\landsat7_tile1.tiff

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list