https://github.com/developmentseed/gdal2mb
a version of gdal2tiles with MapBox support
https://github.com/developmentseed/gdal2mb
Last synced: 10 months ago
JSON representation
a version of gdal2tiles with MapBox support
- Host: GitHub
- URL: https://github.com/developmentseed/gdal2mb
- Owner: developmentseed
- Created: 2010-10-04T16:47:19.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-11-08T21:16:27.000Z (over 15 years ago)
- Last Synced: 2024-04-14T15:14:50.430Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 40
- Watchers: 47
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

### Requirements
* GDAL
* OSX: [GDAL Complete](http://www.kyngchaos.com/software/frameworks) from kyngchaos
* Other systems: [GDAL binaries](http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries)
* [Python](http://www.python.org/) (included on OSX and Linux)
### Usage
If GeoTIFFs are in projections other than `EPSG:900913` (as many are), run gdalwarp first:
gdalwarp -t_srs EPSG:900913 raster.tiff raster_merc.tiff
Run `python gdal2tiles.py -h` for usage instructions.
### Description
This is a variation of the [gdal2tiles](http://www.klokan.cz/projects/gdal2tiles/) script that supports MapBox `mbtiles` SQLite tilesets as an output option. It has the same requirements as the original script - notably an installation of [GDAL](http://www.gdal.org/).
Usage of this command is
python gdal2tiles.py raster_merc.tiff raster_merc.mbtiles
The resultant `.mbtiles` file can be used in Maps on a Stick and elsewhere.