kopia lustrzana https://github.com/kartoza/docker-osm
update doc about pbf_downloader
rodzic
e4df803d22
commit
74db7cde26
11
readme.md
11
readme.md
|
@ -2,7 +2,7 @@
|
|||
## Usage
|
||||
|
||||
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.
|
||||
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
|
||||
```
|
||||
|
||||
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 up
|
||||
|
|
Ładowanie…
Reference in New Issue