Update instructions for flat node usage
This commit is contained in:
parent
a2eceb6bb5
commit
ff8655701e
12
README.md
12
README.md
@ -165,15 +165,7 @@ docker run \
|
|||||||
|
|
||||||
### Flat nodes
|
### Flat nodes
|
||||||
|
|
||||||
If you are planning to import the entire planet or you are running into memory errors then you may want to enable the `--flat-nodes` option for osm2pgsql. This option takes a path to a file that must be persisted so we should first set up a volume with the right permissions:
|
If you are planning to import the entire planet or you are running into memory errors then you may want to enable the `--flat-nodes` option for osm2pgsql. You can then use it during the import process as follows:
|
||||||
|
|
||||||
```
|
|
||||||
docker run -it -v openstreetmap-nodes:/nodes --entrypoint=bash overv/openstreetmap-tile-server
|
|
||||||
$ chown renderer:renderer -R /nodes
|
|
||||||
$ exit
|
|
||||||
```
|
|
||||||
|
|
||||||
You can then use it during the import process as follows:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
@ -185,6 +177,8 @@ docker run \
|
|||||||
import
|
import
|
||||||
```
|
```
|
||||||
|
|
||||||
|
>Note that if you use a folder other than `/nodes` then you must make sure that you manually set the owner to `renderer`!
|
||||||
|
|
||||||
### Benchmarks
|
### Benchmarks
|
||||||
|
|
||||||
You can find an example of the import performance to expect with this image on the [OpenStreetMap wiki](https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks#debian_9_.2F_openstreetmap-tile-server).
|
You can find an example of the import performance to expect with this image on the [OpenStreetMap wiki](https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks#debian_9_.2F_openstreetmap-tile-server).
|
||||||
|
Loading…
Reference in New Issue
Block a user