update doc about pbf_downloader

pull/11/head
Etienne Trimaille 2015-07-31 11:18:06 +02:00
rodzic e4df803d22
commit 74db7cde26
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
## Usage ## Usage
In this example we will set up an OSM database for South Africa that In this example we will set up an OSM database for South Africa that
will poll for updates every hour. will pull for updates every 2 minutes.
First fetch the latest South Africa osm binary dump file (.pbf) and state file. First fetch the latest South Africa osm binary dump file (.pbf) and state file.
I will write the example as generically as possible so that you can substitute I will write the example as generically as possible so that you can substitute
@ -15,6 +15,15 @@ wget -c -O country.state.txt http://download.openstreetmap.fr/extracts/africa/so
wget -c -O polygon.poly http://download.geofabrik.de/africa/south-africa-and-lesotho.poly wget -c -O polygon.poly http://download.geofabrik.de/africa/south-africa-and-lesotho.poly
``` ```
or you can use the PBF downloader using Geofabrik.
To get the list of available countries in Geofabrik :
``python pbf_downloader.py list``
You can download a country or a continent :
``python pbf_downloader.py south-africa-and-lesotho``
The script will download the PBF file, the state file and the polygon for clipping.
``` ```
docker-compose build docker-compose build
docker-compose up docker-compose up