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

Species Information and Land Intersections for IDEAS Wildlife #2551

Closed spectrachrome closed 5 months ago

spectrachrome commented 5 months ago

This pull request contains a few updates for the Wildlife indicator in the IDEAS branch:

Changes

Species List

When the Wildlife indicator is active, either as part of a Minesweeper game or with the standard indicator, display species information for the relevant area in the game dialog or the sidebar, respectively.

Land Intersection Fix

The previously implemented bounding box randomization generated boxes which fell outside of data coverage with the new Europe dataset. This PR implements a fix which adjusts the seed programmatically in while loop until the bounding box intersects with the land mass of at least one country for which data is available.

Total mines / set flags indicator

There is now an additional passive control available for users, near the reveal all button, displaying the total mine count minus the number of set flags.

Screenshot

Screenshot 2024-04-19 at 16 29 27
spectrachrome commented 5 months ago

Will take a look. Thank you for the review!

spectrachrome commented 5 months ago

The following things have been implemented and/or fixed 😊

Just now I managed to get a small-ish (181KB) low-resolution GeoJSON of common European countries, which I will now use to tackle the intersection testing and "altseed" generation in order to prevent water-only, instant-solve games.

lubojr commented 5 months ago

@spectrachrome Thank you for the enhancements and for finding a solution to the eu countries.

Just a minor point regarding the mine count. We want to show the (number of existing mines - number of flagged spaces) - as in any other minesweeper.