openstreetmap-tile-server
openstreetmap-tile-server copied to clipboard
Rendering tiles
Hello, сould you tell me what I'm doing wrong ?
I have imported Europe
docker run \
-v /root/open_street_map/maps-data/europe-latest.osm.pbf:/data/region.osm.pbf \
-v osm-data-volume:/data/database/ \
overv/openstreetmap-tile-server \
import
docker run \
-p 8080:80 \
-e UPDATES=enabled \
-e THREADS=10 \
-e "OSM2PGSQL_EXTRA_ARGS=-C 16384" \
-v osm-data-volume:/data/database/ \
--shm-size="1536m" \
-v osm-tiles:/data/tiles/ \
-d overv/openstreetmap-tile-server \
run
And now I can see the map
http://localhost:8080
But rendering is really slow and it renders only regions that I open.
For eg, if I open Odessa (Ukraine) and wait ~20 min - I can open It again and rendering will be instant and I can see street and etc.
But at the same time I can't open Kyiv (Ukraine) by zoom the map.
Also there are a grey areas when I change zoom

Could you suggest what I'm doing wrong? And how to start rendering in automatic mode ?
Depending on your machine, rendering can take multiple minutes, especially if there is a queue of tiles to be rendered. I wrote up very briefly how you can pregenerate tiles (I guess what you mean by "automatic mode") https://github.com/nielsole/go_tile#pregenerate-static-tiles-using-mod_tile which uses information from this issue: https://github.com/Overv/openstreetmap-tile-server/issues/15
I ran into a similar issue in #287 Check your output, you might see references to not enough memory. I had to use 3GB shared memory in the end and now it works fine.
Thanks I have solved it by prerendering tiles with nohup ./render_list_geo.pl -n 10 -f -m ajt -z 16 -Z 16 -x -24.1336 -X 44.03 -y 38.1585 -Y 69.46 >> logs-rendering.out