small fixes and documentation

pull/6/head
Etienne Trimaille 2015-07-30 16:08:18 +02:00
rodzic 4ad8fbb5c9
commit 725dd2dd6b
5 zmienionych plików z 5 dodań i 8 usunięć

1
.gitignore vendored
Wyświetl plik

@ -2,4 +2,5 @@
*.*~
osm_pbf/*.pbf
osm_pbf/*.state.txt
osm_pbf/*.poly
settings/last.state.txt

Wyświetl plik

@ -102,7 +102,7 @@ for f in listdir(default['OSM_PBF']):
if f.endswith('.state.txt'):
state_file = join(default['OSM_PBF'], f)
if f.endswith('.osm.pbf'):
if f.endswith('.pbf'):
osm_file = join(default['OSM_PBF'], f)
if not osm_file:

Wyświetl plik

@ -67,7 +67,7 @@ for f in listdir(default['OSM_PBF']):
if f.endswith('.state.txt'):
state_file = join(default['OSM_PBF'], f)
if f.endswith('.osm.pbf'):
if f.endswith('.pbf'):
osm_file = join(default['OSM_PBF'], f)
if f.endswith('.poly'):

Wyświetl plik

@ -1,4 +0,0 @@
This folder should contain a *.pbf and *.state.txt.
The first pbf file encoutered will be imported, for this reason we recommend
to only place one pbf in this folder so you can be sure which will be imported.

Wyświetl plik

@ -9,10 +9,10 @@ I will write the example as generically as possible so that you can substitute
your own country or region here.
```
mkdir osm
cd osm
cd osm_pbf
wget -c -O country.pbf http://download.openstreetmap.fr/extracts/africa/south_africa.osm.pbf
wget -c -O country.state.txt http://download.openstreetmap.fr/extracts/africa/south_africa.state.txt
wget -c -O polygon.poly http://download.geofabrik.de/africa/south-africa-and-lesotho.poly
```
```