Changes between Initial Version and Version 1 of UserDocs/GdalTiles


Ignore:
Timestamp:
Aug 24, 2007, 2:03:31 PM (17 years ago)
Author:
klokan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/GdalTiles

    v1 v1  
     1= GDAL2Tiles Utility =
     2
     3== Manual page for gdal2tiles.py ==
     4
     5''NOTE: This manual page should be available soon on http://www.gdal.org/gdal2tiles.html''
     6
     7generates directory with TMS tiles, KMLs and simple web viewers
     8
     9Usage:
     10
     11{{{
     12gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/]
     13              [-nogooglemaps] [-noopenlayers] [-nokml]
     14              [-googlemapskey KEY] [-forcekml] [-v]
     15              input_file [output_dir]
     16}}}
     17
     18This utility generates a directory with small tiles and metadata, following OSGeo Tile Map Service Specification. Simple webpages with viewers based on Google Maps and OpenLayers are generated as well - so anybody can comfortably explore your maps on-line and you do not need to install or configure any special software (like mapserver) and the map displays very fast in the webbrowser. You only need to upload generated directory into a webserver.
     19
     20GDAL2Tiles creates also necessary metadata for Google Earth (KML SuperOverlay), in case the supplied map uses EPSG:4326 projection.
     21
     22World files and embeded georeference is used during tile generation, but you can publish a picture without proper georeference too.
     23
     24''All parameters are optional, but input_file. If output_dir is not specified then input_file without extension is used.''
     25
     26-title "Title":
     27    Title used for generated metadata, web viewers and KML files.
     28-publishurl http://yourserver/dir/:
     29    Address of a directory into which you are going to upload the result. It should end with slash.
     30-nogooglemaps:
     31    Do not generate Google Maps based html page.
     32-noopenlayers:
     33    Do not generate OpenLayers based html page.
     34-nokml:
     35    Do not generate KML files for Google Earth.
     36-googlemapskey KEY:
     37    Key for your domain generated on Google Maps API webpage (http://www.google.com/apis/maps/signup.html).
     38-forcekml:
     39    Force generating of KML files. Input file must use EPSG:4326 coordinates!
     40-v:
     41    Generate verbose output of tile generation.
     42
     43NOTE: gdal2tiles.py is a Python script, and will only work if GDAL was built with Python support.
     44
     45== Usage tips and FAQ ==
     46
     47=== Creating one KMZ file from generated structure ===
     48
     49You need to zip (by zip, pkzip, WinZip, ...) content of the generated directory the way, that doc.kml is directly available in the root of zip. Then rename .zip to .kmz and whole pyramid structure is available as one huge file. Google Earth should open such file without troubles.
     50
     51If you need to publish the map online, it is better to upload generated structure directly as it was generated, then tiles are requested separately and users don't need to wait for dowload of the whole map. One huge KMZ is nice for CD-ROM distribution for example.
     52
     53=== Why KML generator needs raster files with EPSG:4326 projection? ===
     54
     55Google Earth expect raster tiles in this projection. You can use gdalwarp utility from GDAL (or FWTools) to warp your existing rasters into EPSG:4326. If you are sure, that your raster internally use correct coordinates, but gdal2tiles.py does not generate KML files, then use --forcekml parameter.   
     56
     57File with name doc.kml is generated always. It is for local computer usage and for KMZ. If you would like to generate Google Earth KML Superoverlay for distributing online, then specify -publishurl parameter and another kml file (with the file name same like output_dir) is generated. This KML file you can send by email or publicly linked, it should contain correct url for published tiles.
     58
     59=== Can I use tiles as overlay on Google Maps? ===
     60
     61Not yet. For this functionality TMS global-* profiles need to be implemented. It is on the TODO list (any support is welcome ;-)).
     62If you would like to generate overlays from vector data, then use [http://www.mapnik.org/ Mapnik Project] 
     63
     64== Links ==
     65
     66Project web site: [http://www.klokan.cz/projects/gdal2tiles/ GDAL2Tiles: Utility for easy tile-based publishing of raster maps and KML generation]
     67
     68SoC Wiki: [http://wiki.osgeo.org/index.php/GDAL2Tiles_SoC_2007 GDAL SoC Project Wiki]
     69
     70Original OSGeo Project SoC Wiki: [http://wiki.osgeo.org/index.php/GDAL2Tiles_SoC_2007 GDAL2Tiles SoC 2007]
     71
     72Google SoC: [http://code.google.com/soc/2007/osgeo/appinfo.html?csaid=571E4D0EF889CC9D Application Information] 
     73
     74Publishing Trac Ticket: #1763