-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
4,240 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MAPBOX_TOKEN=XXXXXXXXXX | ||
CARTO_USERNAME=XXXXXXXXXX | ||
WDPA_POLY_TABLE=XXXXXXXXXX | ||
WDPA_POINT_TABLE=XXXXXXXXXX | ||
CARTO_API_KEY=XXXXXXXXXX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ | |
yarn-debug.log* | ||
.yarn-integrity | ||
|
||
.DS_Store | ||
**/.DS_Store | ||
.DS_Store | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## 0.0.1 | ||
|
||
**Ocean+ Habitats first release** | ||
|
||
* Full user journey implementation | ||
* Dyanimic charts | ||
* Mapbox map with WDPA Carto layer and ArcGIS habitats layers | ||
* Import static stats from file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
# README | ||
# Ocean+ Habitats | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
## Setup | ||
|
||
Things you may want to cover: | ||
* Install and configure dependencies | ||
- `bundle install` | ||
- `yarn install` | ||
- Please ask for latest `.env` file | ||
|
||
* Ruby version | ||
* Setup database | ||
- `bundle exec rake db:drop db:create db:migrate` | ||
- `bundle exec rake db:seed` | ||
|
||
* System dependencies | ||
* Import the static CSV data | ||
- `bundle exec rake import:staticstats` | ||
|
||
* Configuration | ||
## Data | ||
|
||
* Database creation | ||
We are still trying to see if it is feasible to generate map tiles and data dynamically using Carto and in the meantime we are using static data. | ||
|
||
* Database initialization | ||
Data is fetched from CartoDB using the `Carto` module defined in `lib/modules`. | ||
Some details about the layers in Carto are in `config/habitats.yml`. | ||
|
||
* How to run the test suite | ||
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. | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
|
||
* Deployment instructions | ||
|
||
* ... | ||
Habitats data changes less often, so the coverage calculations are stored in the `Habitat` object. | ||
When the data changes, a new calculation process should be performed using the `calculate_global_coverage` method in | ||
the `Habiat` model. |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.