Logo Lanfrica

GlobalEnergyMonitor/africa-gas-tracker-greeninfo-map

Domaine:

environment and energygeospatial
Créateur:
Glo
Hôte:
# Africa Gas Tracker Project with GEM, based largely on Asia Gas Tracker, with different types categories, and improvements adopted from GOIT ## Hosting On GEM via iFrame, served from GH pages greeninfo-network.github.io ## Development Pre-requisites: * Node and npm * Yarn To match the development node version: ``` nvm use ``` First time only: ``` npm install ``` To start a development server: ``` npm run start ``` ## Production ``` npm run build ``` The app is hosted on GitHub pages (via the `docs/` folder). ## Data Management There are several data sources * Country boundaries (see the `documentation/update_country_geojson` directory for details) * A single Google spreadhsheet is used to manage pipeline and terminal data. Currently these are combined directly in Sheets for export from a single tab named `data_export` docs.google.com Update: Mason is now sending CSV data directly. This bypasses the need for us to export from the Google Sheet, above. But the types and statuses still need to match our expectations. ## Data formatting * Terminals are simply parsed from `lat` and `lng` columns in the csv data sheet. * Pipelines, however, use a custom-delimeneted format for lines in the `route` column. Segments are delimited with semi-colons, and coordinate pairs are separated by colons. The coordinates themselves are separated by a comma: ``` -33.5020763,147.7848194:-33.385745,148.006048:-33.136884,148.171628:-32.2378573,148.2389384:-32.2241903,148.6155634:-32.548010, 148.936829 ``` ## Data update 1. GEM will send us a raw data spreadsheet. After checking that column order hasn't changed, drop this in the `raw_data` tab on this spreadsheet and then export the `data_export` tab to `data/data.csv` 2. Then see `documentation/update_country_geojson/readme.md` for details on matching up country names in the data to country names in `world.js …

Licenses