GDAL_RETILE(1)
π¦ gdal_retile(1) β GDAL edition π¦
okay so bestie, this is the GDAL manual page for gdal_retile(1) β and yes, it is giving βI organize tiles for a living and Iβm iconic about itβ energy π
β¨
πΈ NAME πΈ
gdal_retile β Retiles a set of tiles and/or build tiled pyramid levels.
β¨ SYNOPSIS β¨
gdal_retile.py [-v] [-co NAME=VALUE]* [-of out_format] [-ps pixelWidth pixelHeight]
[-overlap val_in_pixel]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}]'
[ -tileIndex tileIndexName [-tileIndexField tileIndexFieldName]]
[ -csv fileName [-csvDelim delimiter]]
[-s_srs srs_def] [-pyramidOnly]
[-r {near/bilinear/cubic/cubicspline/lanczos}]
-levels numberoflevels
[-useDirForEachRow] [-resume]
-targetDir TileDirectory input_files
π DESCRIPTION π
This utility will retile a set of input tile(s). All the input tile(s) must be georeferenced in the same coordinate system and have a matching number of bands. Optionally pyramid levels are generated. It is possible to generate shape file(s) for the tiled output.
If your number of input tiles exhausts the command line buffer, use the general --optfile option.
π option-by-option tea π
-targetDir <directory>β The directory where the tile result is created. Pyramids are stored in sub-directories numbered from1. Created tile names have a numbering schema and contain the name of the source tiles(s).-of <format>β Select the output format. Starting with GDAL 2.3, if not specified, the format is guessed from the extension (previously wasGTiff). Use the short format name.-co <NAME=VALUE>β Many formats have one or more optional creation options that can be used to control particulars about the file created. For instance, the GeoTIFF driver supports creation options to control compression, and whether the file should be tiled.
The creation options available vary by format driver, and some simple formats have no creation options at all. A list of options supported for a format can be listed with the --formats command line option but the documentation for the format is the definitive source of information on driver creation options. See raster_drivers format specific documentation for legal creation options for each format.
-ot <type>β Force the output image bands to have a specific data type supported by the driver, which may be one of the following:Byte,UInt16,Int16,UInt32,Int32,Float32,Float64,CInt16,CInt32,CFloat32orCFloat64.-ps <pixelsize_x> <pixelsize_y>β Pixel size to be used for the output file. If not specified,256 x 256is the default.-overlap< <val_in_pixel>β Overlap in pixels between consecutive tiles. If not specified,0is the default.
New in version 2.2.
-levels <numberOfLevels>β Number of pyramids levels to build.-vβ Generate verbose output of tile operations as they are done.-pyramidOnlyβ No retiling, build only the pyramids.-r <algorithm>β Resampling algorithm, default isnear.-s_srs <srs_def>β Source spatial reference to use. The coordinate systems that can be passed are anything supported by theOGRSpatialReference.SetFromUserInput()call, which includes EPSG, PCS, and GCSes (i.e.EPSG:4296), PROJ.4 declarations (as above), or the name of a.prjfile containing well known text. If nosrs_defis given, thesrs_defof the source tiles is used (if there is any). Thesrs_defwill be propagated to created tiles (if possible) and to the optional shape file(s).-tileIndex <tileIndexName>β The name of shape file containing the result tile(s) index.-tileIndexField <tileIndexFieldName>β The name of the attribute containing the tile name.-csv <csvFileName>β The name of the csv file containing the tile(s) georeferencing information. The file contains 5 columns:tilename,minx,maxx,miny,maxy.-csvDelim <column delimiter>β The column delimiter used in the CSV file, default value is a semicolon";".-useDirForEachRowβ Normally the tiles of the base image are stored as described in-targetDir. For large images, some file systems have performance problems if the number of files in a directory is to big, causinggdal_retilenot to finish in reasonable time. Using this parameter creates a different output structure. The tiles of the base image are stored in a sub-directory called0, the pyramids in sub-directories numbered1,2,....Within each of these directories another level of sub-directories is created, numbered from0...n, depending of how many tile rows are needed for each level. Finally, a directory contains only the tiles for one row for a specific level. For large images a performance improvement of a factor N could be achieved.-resumeβ Resume mode. Generate only missing files.
π NOTE π
gdal_retile.py is a Python script, and will only work if GDAL was built with Python support.
π AUTHOR π
Christian Mueller <christian.mueller@nvoe.at>
π COPYRIGHT π
1998-2026
okay bestie, thatβs the whole page π β cute little sign-off: GDAL_RETILE(1) / Jan 08, 2026 ππ
π¦ where this page comes from
- epel 9: gdal3.4-python-tools 3.4.3-5.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms