Skip to content

Instantly share code, notes, and snippets.

@talaj
Last active August 17, 2017 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talaj/6e34e34cb7db84556b5a5dfbac1cec48 to your computer and use it in GitHub Desktop.
Save talaj/6e34e34cb7db84556b5a5dfbac1cec48 to your computer and use it in GitHub Desktop.
python async mvt
import mapnik
m=mapnik.Map(256,256)
mapnik.load_map(m, 'style.xml')
t = mapnik.create_mvt_merc(m, 75528, 47928, 17, style_level_filter=True, threading_mode=mapnik.threading_mode.async)
m.layers[-1].datasource.params()['max_size']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment