Skip to content
Sergio Marrocoli edited this page Sep 29, 2022 · 5 revisions

Site summary

Ocean+ Habitats offers authoritative insight about the health, distribution and change of marine habitats around the world. Provides summary data, including habitat cover and status, and maps for ocean habitats, at global and national levels.

Architecture

Rails 5.1.5 monolith, with a Rails template and Vue front end. Uses Mapbox, with Vector Tile Services pulled from https://tiles.arcgis.com,

Site pages

Website consists of:

  • a front page which is essentially a global summary of ocean and coastal habitats, including maps, level of protection of each habitat type, habitat change, IUCN red list status, adn SDGs.
  • Country pages, which include habitat occurence, a map of habitats, habitat representation chart, protected area coverage, IUCN status, example species, change in habitat area, and habitat condition.
  • About page
  • Legal page (term and conditions)

Data

Non-spatial data

  • imported in various rake tasks from csv and yml files in /lib/data directory. includes things like:
    • habitat cover for country/region
    • % protected of habitat in protected areas

Data is periodically updated via PRs updating the csvs.

Spatial data

  • spatial data displayed in maps are VectorTileServices, and are defined in the map_datasets_serializer. These are habitat layers and WDPA layers
  • habitats types have an associated web map service url, but these aren't used

Carto

All carto rails code lives in the Carto module, but doesn't seem to be called anywhere currently.

"At the moment static data is provided related to the protected areas coverage. Ideally, the protected areas coverage data should always be dynamically generated, as this depends on the WDPA release which is updated every month."

Clone this wiki locally