Tiling and Image

Ryan Ollerenshaw ollerery at ENGR.ORST.EDU
Thu Aug 17 15:10:05 EDT 2006


Mark Howard wrote:
> Doesn't this make INTRNAL tiles?
yes, i was just giving one possible solution using internal tiles.
gdal_translate can be used to cut out sections of a image to create 
individual tiles
>   
>> 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