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 missing years for Landsat basemaps #2

Open
benlaken opened this issue Dec 20, 2019 · 2 comments
Open

Generate missing years for Landsat basemaps #2

benlaken opened this issue Dec 20, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@benlaken
Copy link
Collaborator

Currently we only have a few years of landsat basemaps generated. You will need to add the missing years.

This task will, at minimum involve running scripts on Google Earth Engine, adding data to our Google Cloud storage buckets (sharing that data with the WRI account), and editing the python microservice (and making changes in the WRI service too, so they can have the additional years of data).

@benlaken benlaken added the enhancement New feature or request label Dec 20, 2019
@benlaken
Copy link
Collaborator Author

Check https://github.com/Skydipper/Basemaps/blob/master/basemaps/validators.py#L13 to see where the year selection is currently being limited for pre-cached tiles.

@benlaken
Copy link
Collaborator Author

To test locally/remotley in python you can use the following example:

import folium

server = 'https://api.skydipper.com'
#server = 'http://localhost:9000'
url = f"{server}/v1/basemaps/landsat/2012/{{z}}/{{x}}/{{y}}"
print(url)
map = folium.Map(
        location=[0, 0],
        zoom_start=3,
        tiles='OpenStreetMap',
        detect_retina=True,
        prefer_canvas=True
)
map.add_tile_layer(tiles=url, attr="blah")
map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants