1gdal2tiles(1) General Commands Manual gdal2tiles(1)
2
3
4
6 gdal2tilesGenerates directory with TMS tiles, KMLs and simple web
7 viewers.
8
10 gdal2tiles.py [-p profile] [-r resampling] [-s srs] [-z zoom]
11 [-e] [-a nodata] [-v] [-q] [-h] [-k] [-n] [-u url]
12 [-w webviewer] [-t title] [-c copyright]
13 [-g googlekey] [-b bingkey] input_file [output_dir]
14
16 This utility generates a directory with small tiles and metadata,
17 following the OSGeo Tile Map Service Specification. Simple web pages
18 with viewers based on Google Maps, OpenLayers and Leaflet are generated
19 as well - so anybody can comfortably explore your maps on-line and you
20 do not need to install or configure any special software (like
21 MapServer) and the map displays very fast in the web browser. You only
22 need to upload the generated directory onto a web server.
23
24 GDAL2Tiles also creates the necessary metadata for Google Earth (KML
25 SuperOverlay), in case the supplied map uses EPSG:4326 projection.
26
27 World files and embedded georeferencing is used during tile generation,
28 but you can publish a picture without proper georeferencing too.
29
30 -p PROFILE, --profile=PROFILE:
31 Tile cutting profile (mercator,geodetic,raster) - default
32 'mercator' (Google Maps compatible).
33
34 -r RESAMPLING, --resampling=RESAMPLING:
35 Resampling method
36 (average,near,bilinear,cubic,cubicspline,lanczos,antialias) -
37 default 'average'.
38
39 -s SRS, --s_srs=SRS:
40 The spatial reference system used for the source input data.
41
42 -z ZOOM, --zoom=ZOOM:
43 Zoom levels to render (format:'2-5' or '10').
44
45 -e, --resume:
46 Resume mode. Generate only missing files.
47
48 -a NODATA, --srcnodata=NODATA:
49 NODATA transparency value to assign to the input data.
50
51 -v, --verbose
52 Generate verbose output of tile generation.
53
54 -q, --quiet
55 Disable messages and status to stdout (GDAL >= 2.1).
56
57 -h, --help
58 Show help message and exit.
59
60 --version
61 Show program's version number and exit.
62
63 KML (Google Earth) options:
64
65 Options for generated Google Earth SuperOverlay metadata
66
67 -k, --force-kml
68 Generate KML for Google Earth - default for 'geodetic' profile and
69 'raster' in EPSG:4326. For a dataset with different projection use
70 with caution!
71
72 -n, --no-kml:
73 Avoid automatic generation of KML files for EPSG:4326.
74
75 -u URL, --url=URL:
76 URL address where the generated tiles are going to be published.
77
78 Web viewer options:
79
80 Options for generated HTML viewers a la Google Maps
81
82 -w WEBVIEWER, --webviewer=WEBVIEWER:
83 Web viewer to generate (all,google,openlayers,leaflet,none) -
84 default 'all'.
85
86 -t TITLE, --title=TITLE:
87 Title of the map.
88
89 -c COPYRIGHT, --copyright=COPYRIGHT:
90 Copyright for the map.
91
92 -g GOOGLEKEY, --googlekey=GOOGLEKEY:
93 Google Maps API key from
94 http://code.google.com/apis/maps/signup.html.
95
96 -b BINGKEY, --bingkey=BINGKEY:
97 Bing Maps API key from https://www.bingmapsportal.com/
98
99 NOTE: gdal2tiles.py is a Python script that needs to be run against
100 'new generation' Python GDAL binding.
101
103 Klokan Petr Pridal klokan@klokan.cz as a Google SoC 2007 Project.
104
105
106
107GDAL Wed Oct 3 2018 gdal2tiles(1)