Skip to content

Instantly share code, notes, and snippets.

@robinkraft
Last active Dec 7, 2017
Embed
What would you like to do?
Upload a raster to mapbox.com using the Mapbox Upload API
from mapbox import Uploader
u = Uploader() # handles authentication
tileset = 'username.tileset_name' # name your tileset
url = u.stage(open('mosaic_final.tif')) # upload happens here
u.create(url, tileset, name=fname) # starts the tiling job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment