Download a sectional GeoTIFF from the FAA:
wget http://aeronav.faa.gov/content/aeronav/sectional_files/Kansas_City_85.zip
Unzip:
unzip Kansas_City_85.zip
Translate the GeoTIFF to RGBA:
gdal_translate -of vrt -expand rgba Kansas\ City\ 85\ North.tif temp.vrt
Install prereqs if necessary:
aptitude install gdal-python proj-bin
Run gdal2tiles.py, substituting your bucket instead of
my-bucket
:gdal2tiles.py -t "Kansas City North" -u http://s3.amazonaws.com/my-bucket/ -g <YOUR_GOOGLE_MAPS_KEY> temp.vrt outdir
By default,
gdal2tiles.py
renders zoom levels 5-10. If you'd like a little more detail, I'd suggest rendering 5-11:gdal2tiles.py -t "Kansas City North" -u http://s3.amazonaws.com/my-bucket/ -z '5-11' -g <YOUR_GOOGLE_MAPS_KEY> temp.vrt outdir
If you want to add a new zoom level to an existing set of tiles, give
gdal2tiles.py
the-e
flag, which will cause it to only fill in missing files and will also update the generated HTML/XML to use the new zoom levels.Copy the contents of outdir to S3 and make the bucket and contents public.
See it in action at http://s3.amazonaws.com/postneo-sectional/openlayers.html and http://s3.amazonaws.com/postneo-sectional/googlemaps.html