Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watergis/africa-groundwater-atlas
This repository is to manage vector tiles for Africa Groundwater Atlas data.
https://github.com/watergis/africa-groundwater-atlas
Last synced: 23 days ago
JSON representation
This repository is to manage vector tiles for Africa Groundwater Atlas data.
- Host: GitHub
- URL: https://github.com/watergis/africa-groundwater-atlas
- Owner: watergis
- Created: 2022-05-02T07:21:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-02T10:42:10.000Z (over 2 years ago)
- Last Synced: 2024-10-30T05:43:05.576Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://watergis.github.io/africa-groundwater-atlas
- Size: 20.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# africa-groundwater-atlas
This repository is to manage vector tiles for Africa Groundwater Atlas data.## Data License
This data is using Africa Groundwater Atlas (see [here](http://earthwise.bgs.ac.uk/index.php/Africa_Groundwater_Atlas_Home)).
All data from Africa Groundwater Atlas is under [Creative Commons ‘Attribution/Share Alike’ (CC BY SA 3.0)](https://creativecommons.org/licenses/by-sa/3.0/)
## Demo
See from [here](https://watergis.github.io/africa-groundwater-atlas)
Tileset JSON is also available [here](https://watergis.github.io/africa-groundwater-atlas/tiles/tiles.json)
## Download data
```bash
curl https://www2.bgs.ac.uk/africagroundwateratlas/downloads/AllMaps.zip --create-dirs -o ./data/AllMaps.zipunzip ./data/AllMaps.zip -d ./data
```## convert shp to vectortiles
```
node index.js | \
tippecanoe \
--no-tile-compression \
-n "africa-groundwater-atlas-tiles" \
-N "Vector tiles generated from Africa Groundwater Atlas" \
-A "Africa Groundwater Atlas, under Africa Groundwater Atlas Terms Of Use" \
--maximum-zoom=10 \
--minimum-zoom=0 \
-o ./data/africa-groundwater.mbtiles \
--force
```## extract mbtiles to pbf
```
tile-join \
--force \
--no-tile-compression \
--output-to-directory=docs/tiles \
--no-tile-size-limit \
./data/africa-groundwater.mbtiles
```- export vector_layers
```
JSON.stringify(JSON.parse(require('./docs/tiles/metadata.json').json))
```## charites
```
charites serve charites/style.ymlcharites build charites/style.yml docs/style.json
```