Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate slippy-map tiles easily #246

Closed
jbednar opened this issue Sep 27, 2016 · 2 comments
Closed

Generate slippy-map tiles easily #246

jbednar opened this issue Sep 27, 2016 · 2 comments

Comments

@jbednar
Copy link
Member

jbednar commented Sep 27, 2016

Datashader is designed to make interactive exploration of your datasets fast and easy, without needing any precomputation, prerendering, or any other up-front cost -- it just faithfully renders your data, usually fast enough to be interactive even for quite large datasets.

However, once you are done exploring and want to share your work with a wider audience, it can be difficult to provision a Python-based server for each of the people who might want to view the data. To make it simpler to distribute an interactive visualization for others to explore, you can set up an HTML-based image tile server, with sets of image tiles at various resolutions that are provided when needed for a particular view, without needing to run any Python code.

Here's an example for some datashader output rendered at 8Kx8K resolution and then chopped up into tiles of the right sizes:

http://www.proseandcode.co.uk/beta_gtr_viz/

This one was done using leaflet.js by reddit user IanCal (see https://www.reddit.com/r/dataisbeautiful/comments/544qig/visualizing_open_flight_data_oc/d8015yi?st=itllibf9&sh=52ef0b0c). It would be nice if we could provide a simple method to automatically create such a slippy-map tile site, or at least provide a good example of how to do it using external tools.

Just providing a zoomable image would be a good start, but if you click in the above site you can see that it includes tooltip/hover-type information to reveal what each link corresponds to, and passing that information into such a tile server will take additional effort.

@epifanio
Copy link

epifanio commented Apr 24, 2018

Thanks for datashader, it is just awesome.
Maybe not exactly what you are looking for, but did you had a chance to try gdal2tiles - The opening of the input file happen in the worker_tile_details method which calls gdal2tiles().open_input , it should be possible to fork the original code and adapt it to take an xarray as input.

@jbednar
Copy link
Member Author

jbednar commented Jul 3, 2019

Implemented in #636 ; closing. Still needs docs and polishing, though.

@jbednar jbednar closed this as completed Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants