[mapserver-users] How to tile a large TIF image?

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Fri Apr 18 05:47:40 EDT 2008


Thanks for the info.

Did it like this:

Library/Frameworks/GDAL.framework/Versions/1.5/Programs/gdal_translate  
-outsize 10'' 10'' -co TILED=YES gebco/bathymetry.tif gebco/ 
bathymetry_tiled.tif

But get the message: "Segmentation fault"

Anything that I did wrong? Or should do differently?

Thanks for a hint,

Stef

> Hi,
>
> Gdal_translate program has options for you:
>
> c:\FWTools>gdal_translate
> Usage: gdal_translate [--help-general]
>        [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
>              CInt16/CInt32/CFloat32/CFloat64}] [-strict]
>        [-of format] [-b band] [-outsize xsize[%] ysize[%]]
>        [-scale [src_min src_max [dst_min dst_max]]]
>        [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]
>        [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
>        [-gcp pixel line easting northing [elevation]]*
>        [-mo "META-TAG=VALUE"]* [-quiet] [-sds]
>        [-co "NAME=VALUE"]*
>        src_dataset dst_dataset
>
> By playing with -srcwin or possibly with -outsize and -projwin you  
> should be able to split your image as you wish.  Read more from
> http://gdal.org/gdal_translate.html
>
> -Jukka Rahkonen-
>
>
>
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org 
> ] Puolesta Stefan Schwarzer
> Lähetetty: 18. huhtikuuta 2008 12:05
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] How to tile a large TIF image?
>
> Hi there,
>
> I would like to use instead of single large tif image smaller tiles.  
> Although I am well aware of mapserver's and gdal's possibilities to  
> create the shapes for it, I first need to "split" the large tif into  
> 20 or 50 or 100 tiles.
>
> Can anyone give me a hint with what kind of software this is possible?
>
> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 
>  ).
>
> Thanks for any hints,
>
> Stef
>
>  ____________________________________________________________________
>
>   Stefan Schwarzer
>
>   Lean Back and Relax - Enjoy some Nature Photography
>   http://photoblog.la-famille-schwarzer.de
>
>   Appetite for Global Data? UNEP GEO Data Portal:
>   http://geodata.grid.unep.ch
>   ____________________________________________________________________
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080418/384a6967/attachment.html


More information about the mapserver-users mailing list