kopia lustrzana https://github.com/kartoza/docker-osm
small fixes and documentation
rodzic
4ad8fbb5c9
commit
725dd2dd6b
|
@ -2,4 +2,5 @@
|
|||
*.*~
|
||||
osm_pbf/*.pbf
|
||||
osm_pbf/*.state.txt
|
||||
osm_pbf/*.poly
|
||||
settings/last.state.txt
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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'):
|
||||
|
|
|
@ -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.
|
|
@ -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
|
||||
```
|
||||
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue