openstreetmap-tile-server icon indicating copy to clipboard operation
openstreetmap-tile-server copied to clipboard

Rendering tiles

Open danylonikolenko opened this issue 2 years ago • 3 comments

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

image

Could you suggest what I'm doing wrong? And how to start rendering in automatic mode ?

danylonikolenko avatar Jul 12 '22 11:07 danylonikolenko

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

nielsole avatar Jul 15 '22 11:07 nielsole

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.

oldwired avatar Jul 17 '22 12:07 oldwired

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

danylonikolenko avatar Jul 26 '22 12:07 danylonikolenko