Tiling and Image

Ryan Ollerenshaw ollerery at ENGR.ORST.EDU
Thu Aug 17 11:23:07 PDT 2006


Ryan Ollerenshaw wrote:
> I have a large global dataset that i would like to break into smaller 
> tiles (individual files, not internal tiles).  I know this can be done 
> with imagemagick but that rout seems rather complicated, isnt there 
> some gdal utility out there that i can use.
>
Sorry for yet another repost, solution:

## Create internal tiles
gdal_translate -co TILED=YES old.tif new_tiled.tif

## cut out a chunk of an image, assigning appropriate georeferencing
## as always gdal uses top left and lower right corners of the image
gdal_translate -srcwin 0 0 2000 2000 in.tif out_0_0.tif
gdal_translate -srcwin 2000 0 2000 2000 in.tif out_1_0.tif
...
...



More information about the MapServer-users mailing list