Skip to content

Commit

Permalink
Merge pull request #146 from Appsilon/kamil.build-for-windows
Browse files Browse the repository at this point in the history
Prepare for the 1.1.0 release
  • Loading branch information
kamilzyla authored Jan 24, 2021
2 parents a8d8be4 + ca7333c commit 747bd95
Show file tree
Hide file tree
Showing 15 changed files with 589,528 additions and 335,979 deletions.
17 changes: 14 additions & 3 deletions DOWNLOAD_MAPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@ Use [Overpass Turbo](http://overpass-turbo.eu/), an interface for the OpenStreet
You can run queries using [Overpass QL](https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL)
and export results in `.geojson` format.

The following query was used to create `map-sources/africa.json`:

Download national borders and parks for 6 Central Africa countries using the following query:
```
area["ISO3166-1"~"GA|NG|CM|CG|CD|GQ"]->.a;
area["ISO3166-1"~"CD|CG|CM|GA|GQ|NG"]->.a;
(
nwr(area.a)[boundary=administrative][admin_level=2];
nwr(area.a)[boundary=national_park];
nwr(area.a)[boundary=protected_area];
);
out geom;
```

Afterwards, you download the national borders for the remaining African countries
(in batches, to fit in API quotas):
```
AO|BF|BI|BJ|BW|CF|CI|CV|DJ|DZ|EG|ER|ET
GH|GM|GN|GW|KE|KM|LR|LS|LY|MA|MG|ML|MR
MU|MW|MZ|NA|NE|RE|RW|SC|SD|SH|SL|SN|SO
SS|ST|SZ|TD|TG|TN|TZ|UG|YT|ZA|ZM|ZW
```

Lastly, use [geojson-merge](https://github.com/mapbox/geojson-merge) to merge the files and
[mapshaper](https://mapshaper.org/) to simplify the polygons and decrease the file size.
Loading

0 comments on commit 747bd95

Please sign in to comment.