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

Ability to visualize multiple STAC layers on a map as a mosaic #65

Open
3 tasks
heidimok opened this issue Jun 28, 2023 · 6 comments
Open
3 tasks

Ability to visualize multiple STAC layers on a map as a mosaic #65

heidimok opened this issue Jun 28, 2023 · 6 comments
Assignees

Comments

@heidimok
Copy link
Collaborator

heidimok commented Jun 28, 2023

  • stac ipyleaflet version: for release 0.3.0
  • Python version: python >= 3.9 (some of the widgets are incompatible at v 3.8)
  • Reference column Number 24 in the MAAP-ipyleaflet-DevRoadmap

Context

Release 0.2.0 of stac_ipyleaflet allows users to select a collection from the MAAP STAC data catalog and display items.
image
image

Problem

A scientist can only see one stac layer at a time, which limits the visualization. Below are images of Oceania and Europe
image
image

Acceptance Criteria

A way to stitch together assets from different STAC queries (aka Mosaic)

  • Users are able to add multiple STAC assets to map
  • Implementing a way to match a STAC request via TiTiler's STAC endpoint which renders them as mosaics
  • Users are able to view multiple STAC assets on map

Notes

  • Realizing this is a huge change over existing abilities of other tools and better demos the power of cloud based work.
  • There are at least 2 methods, premade mosaics (like the biomass layers), and on the fly mosaic with STAC queries.
@emmalu
Copy link
Collaborator

emmalu commented Jul 25, 2023

@heidimok
Copy link
Collaborator Author

heidimok commented Jul 25, 2023

Design Iteration 1

  • Adding first iteration here for discussion (see figma)
  • The idea builds off of changes to the layout from Consolidate UI of Layer and STAC widgets #63
  • Assuming that the data widget is about finding stac data and then displaying cogs, we could allow users to multi-select different items for the same collection.
  • They can do other things too like adjust the colors (but that's outside the scope for this issue)
  • Then one they are happy, they can decide to Create Layerwhich creates a layer with all the selected items together
  • This allows users to do this one time and then always be able to access that mosaic as a layer in the future
    image

image
This image shows how the user will likely need to be able to rename the layer

image
Now in the layers widget the user can always access the layer they created with multiple items together as a whole

@heidimok
Copy link
Collaborator Author

UI Update July 28, 2023:

  • Design iteration 2 - minor changes same Figma
  • The idea still builds off of changes to the layout from Consolidate UI of Layer and STAC widgets #63
  • Users can select one of more items and display them. In this version this isn't dynamic, users will need to click the Display button to see updates on the map. In future this could be immediate.
  • Out of scope - we will NOT address the situation where an item might already be a mosaic in itself or that an item might have already been used to create a layer previously. We allow duplication if users create multiple layers using the same items.
  • Nice-to-have: display of how many items are select X of X selected and a button to Clear Selections.
  • Once a user selects an item, they can Create Layer
    • If no items are selected, the Create Layer button is disabled
image
  • This will prompt modal where the user can rename the new layer - required action.
  • Nice-to-have - a way to auto-suggest an appropriate name. Though depending on the naming convention and number of items this might not be a straightforward feature.
image
  • Once created, the layer will be added to the Custom added layers section of the layers widget
  • By default, the layer is selected (though it might not be visible on screen if other layers have been selected already)
  • Out of scope - the ability to rename a layer
  • Out of scope - reordering layers
image

@sandrahoang686
Copy link
Collaborator

@emmalu
Copy link
Collaborator

emmalu commented Sep 19, 2023

@emmalu
Copy link
Collaborator

emmalu commented Sep 28, 2023

Completed a DIY notebook version of this in this sample notebook:
#115

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

3 participants