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

Mapbox Tileset Processors #11

Open
dichapabe opened this issue Aug 24, 2021 · 0 comments
Open

Mapbox Tileset Processors #11

dichapabe opened this issue Aug 24, 2021 · 0 comments

Comments

@dichapabe
Copy link
Contributor

dichapabe commented Aug 24, 2021

Processing Multilayer in a Single Tileset

In this process, we followed an example for multilayer tileset. We combined multiple layers uploaded in a different source but processed and published in a single tileset.

Ref: https://github.com/UPRI-NOAH/mapbox-processor/blob/main/multilayer_processor.py

Pipeline

  1. Create and upload tileset source of all the hazards in a province
  2. Using multilayer recipe, we include all the hazards in the source (Sample Multilayer Recipe)
  3. Create and publish tileset using the multilayer recipe

Output

Screenshot from 2021-08-24 09-44-08



Processing Multiple Source Uploaded in a Single Container

In this process, we uploaded all the tileset source into a single container to optimize the tileset.

Ref: https://github.com/UPRI-NOAH/mapbox-processor/blob/main/single_container_processor.py

Pipeline

  1. Bulk upload all the tileset source in a single container. In this case we combined all the provinces of a certain region for a single hazard only.
  2. Create a recipe for the container (Sample Recipe)
  3. Create and publish tileset

Output

Screenshot from 2021-08-24 09-42-04

Findings

  • Multiple layers have their own file data source meaning it was uploaded with a different container which has less optimization process.

  • Multiple source processor optimizes the tiled area and the tileset itself because it is being loaded from a single container. This might reduce the process of loading the tiles in the map.

  • We can't process the multiple source of hazards in a single province tileset because it overlaps to other layers which contain the same field names.

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

1 participant