eurodatacube / eodash

Software behind the RACE dashboard by ESA and the European Commission (https://race.esa.int), the Green Transition Information Factory - GTIF (https://gtif.esa.int), as well as the Earth Observing Dashboard by NASA, ESA, and JAXA (https://eodashboard.org)
https://race.esa.int
MIT License
93 stars 42 forks source link

Enable comparison across regions/admin units #2140

Closed Patrick1G closed 1 year ago

Patrick1G commented 1 year ago

across GTIF tools, the ability to compare regions is an important functionality. We should start thinking of how to enable this...

An example from the renewables would be that a user performs the site suitability analysis and then compares to districts/zaehlsprengel and investigates the related statistics (area, WPD, terrain, land cover, etc.).

For selecting the units to compare it could be CTRL+click or two dropdown lists. The statistics could then be displayed on the right side pane, similar to what we have for sustainable cities (e.g. green roofs).

santilland commented 1 year ago

We have been discussing possible technical solution:

  1. Introduce possibility to select multiple features (possibly by using a modifier, e.g. CTRL)
  2. Render each selected feature in a new color
  3. Show dataset on plot corresponding to feature color with same color
  4. Update to also allow use of vector tiles for administrative zone selection
  5. Consider if saving selection in url could be used to better share selections based on feature ids
santilland commented 1 year ago

Evaluate use of vector tiles for admin zones as complete geometry would no longer be needed and it might provide performance improvements

Patrick1G commented 1 year ago

@santilland any updates on this functionality? Lets discuss this also in the context of the "statistical summary tool" for raster science products

lubojr commented 1 year ago

Discussed first steps for vector selection layers:

lubojr commented 1 year ago

@patrick-griffiths the latest state of the vector feature multiselection can be seen on https://gtif.esa.int/

PR on https://github.com/eurodatacube/eodash/pull/2205

lubojr commented 1 year ago

Decided to separate the tooltip and selection behavior into two separate configs

selection config will not implicitly enable tooltip behavior but will need to be configured by tooltip config

tooltip config will additionally enable a callback function accepting an OL Feature/RenderFeature and original mergedConfigData (for backreference to original indicator config) and returning a HTML content to be displayed

Solves point 2 from https://github.com/eurodatacube/eodash/issues/2183#issuecomment-1562422665 and heatExplorer

cc @santilland

lubojr commented 1 year ago

Can be closed?