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

Add layer config for preliminary IO LULC static tileset #3635

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

KlaasH
Copy link
Contributor

@KlaasH KlaasH commented Jul 16, 2024

Overview

Adds the 2023 IO LULC layer to the layer settings, pointing at the static tiles that were generated and uploaded to the Datahub S3 bucket. This is just a preview of the layer, since the tiles were only generated through z8 and this static source will ultimately be replaced by a hybrid static/dynamic TiTiler setup (see
WikiWatershed/mmw-tiler#10 and WikiWatershed/mmw-tiler#11).

Connects WikiWatershed/mmw-tiler#9

Demo

image

Notes

  • At the moment, the tile for zoomlevel zero is missing. The tiles for z3 and below have to be generated locally because they take longer than the maximum Lambda timeout, and z0 still timed out when I set the limit to 90 minutes. I'll try again overnight, but if that doesn't work I'll give up, since this is just a preview. Update: the z0 tile is up now. It took 4.5 hours to generate, per the time utility, though my computer had a charger issue and went to sleep for a while during the process, so that might be inflated.
  • More details about the tile generation process will be coming soon in a PR on the mmw-tiler repo.

Testing Instructions

  • Load the site, select the "Coverage Grid" tab from the map layers list, and activate the new "IO Global LULC 2023" layer at the top.
  • If you're on the default view, the layer will show up but look very fuzzy since it's over-zoomed from z8 up to z12.
  • Open the dev tools network tab and confirm that you get tiles from the new layer (they'll be the ones with a crazy hash for a filename, you'll have to hover to see the z/x/y values) for z8 through z1.
  • Confirm that the layer shows up everywhere in the world (though the tiles are empty/invisible in the ocean)

Adds the 2023 IO LULC layer to the layer settings, pointing at the static
tiles that were generated and uploaded to the Datahub S3 bucket.
This is just a preview of the layer, since the tiles were only generated
through z8 and this static source will ultimately be replaced by a hybrid
static/dynamic TiTiler setup (see
WikiWatershed/mmw-tiler#10 and
WikiWatershed/mmw-tiler#11).
@KlaasH KlaasH requested a review from rajadain July 16, 2024 03:34
@rajadain rajadain added the AWS Funding Source: AWS label Jul 16, 2024
Copy link
Member

@rajadain rajadain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 tested, looks amazing. Will rebase my analyze PR #3633 over this and change the legend keys there, since that has the IO_LULC class names.

Great work!

@KlaasH KlaasH merged commit ae2efdc into develop Jul 16, 2024
2 checks passed
KlaasH added a commit to WikiWatershed/mmw-tiler that referenced this pull request Jul 16, 2024
Applies some changes to mosaic.ipynb for adjustments I made in the course of
generating static tiles for WikiWatershed/model-my-watershed#3635.
The last section now
- takes a list of zoom levels and loops over them
- uses asyncio.Semaphore, via a decorator, to limit how many tile requests will
  run simultaneously.

I also copied a few variables into the final cell (i.e. COLORMAP and tile_url_template)
so it can be run independently of the of the earlier cells.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AWS Funding Source: AWS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants