-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from developmentseed/develop
Misc improvements, documentation updates and bump to major version
- Loading branch information
Showing
19 changed files
with
196 additions
and
22 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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# Africa Electrification Platform | ||
The Africa Electrification Platform showcases geospatial electrification analysis conducted by the GEPAR team at the World Bank. | ||
|
||
* interested in configuring a study? Check the [/docs](/docs) section | ||
* want to run the project locally? Check [DEVELOPMENT](/DEVELOPMENT.md) | ||
Explore electrification planning activities in the Africa Region, interact with country data and browse different scenario results. The program is funded by ESMAP at the World Bank. | ||
|
||
![Study Configuration](docs/media/splash.png) | ||
|
||
## Documentation | ||
|
||
* Want to run the project locally? Check the [development guidelines](/DEVELOPMENT.md); | ||
* Interested in configuring a study or updating static content? Visit the [documentation](/docs); | ||
* To upload a dataset to Energydata.info, so it can be used in this tool, please check [these steps](/docs/DATASETS.md). | ||
|
||
## License | ||
|
||
This project is licensed under **The MIT License (MIT)**, see the [LICENSE](LICENSE) file for more details. | ||
|
||
|
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,6 @@ | ||
title: Liberia National Electrification Analysis | ||
bbox: [[-14.3691,4.2762], [-4.2258,8.7002]] | ||
external: https://liberianea.com/ | ||
country: Liberia | ||
study: | ||
period: 2020 |
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,30 @@ | ||
# Dataset Preparation at Energydata.info | ||
## Adding layers | ||
Before adding a layer on the selected study it is necessary to prepare the layer data in the proper web format. Follow the steps below. | ||
|
||
1) Select the particular resource that you want to include on the study: | ||
|
||
![Dataset preparation](media/dataset-prep-01.png) | ||
|
||
2) Check if the resource have the proper layer format, otherwise "Refresh Vector Data" to convert to the proper web format. | ||
|
||
![Dataset preparation](media/dataset-prep-02.png) | ||
|
||
The current list of source vectortiles formats supported is: shp, zip, shpzip and broken geojson. The converter apply, based on the file size: | ||
|
||
- GeoJSON non-wgs84 -> GeoJSON wgs84 (small size) | ||
- GeoJSON non-wgs84 -> tiles images (big size) | ||
|
||
3) Once converted you will receive a message informing that the process is done and you can check the new resource created in the web layer format: | ||
|
||
![Dataset preparation](media/dataset-prep-03.png) | ||
|
||
![Dataset preparation](media/dataset-prep-04.png) | ||
|
||
You can always check back the original resource by clicking on "Original Format": | ||
|
||
![Dataset preparation](media/dataset-prep-05.png) | ||
|
||
4) Now you can copy the URL from Download button, with the converted layer end point to be used to Add a New Layer in to the Config File | ||
|
||
![Dataset preparation](media/dataset-prep-06.png) |
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
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.
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.
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
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,22 @@ | ||
import React from 'react'; | ||
import T from 'prop-types'; | ||
import { Link } from 'gatsby'; | ||
|
||
/** | ||
* Switches between a `a` and a `Link` depending on the url. | ||
*/ | ||
const SmartLink = (props) => { | ||
const { to, ...rest } = props; | ||
|
||
return /^https?:\/\//.test(to) ? ( | ||
<a href={to} {...rest} /> | ||
) : ( | ||
<Link to={to} {...rest} /> | ||
); | ||
}; | ||
|
||
SmartLink.propTypes = { | ||
to: T.string | ||
}; | ||
|
||
export default SmartLink; |
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
Oops, something went wrong.