Skip to content

Instantly share code, notes, and snippets.

Last active Dec 7, 2017
What would you like to do?
Upload a raster to 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