NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

The basic starting guides kind of left me with a couple of doubts

  1. You import the full north american pbf
  2. We can't zoom further than 13 on any zone because the tiles don't seem to have been rendered

Do we have to run render_list to get more zoom levels?

Can we render zoom levels of a specific state? Is this the command?

osm2pgsql -s -C 3000 -d gis -U gis --prefix MI -S -e 12-20 MI.osm

asked 15 Apr '18, 19:24

gfitz's gravatar image

accept rate: 0%

edited 30 Jun '18, 12:13

aseerel4c26's gravatar image

aseerel4c26 ♦

It's not actually clear from the question so far what you're actually trying to do - maybe add a bit more detail about what problems you're hitting?

For the avoidance of doubt if you follow you'll get a tile server that renders tiles on demand. If you want to manually render tiles you can use "render_list" (and you might find to help with that), but be aware that if you force render high zooms you will get a lot of very empty tiles.

(15 Apr '18, 19:41) SomeoneElse ♦

Already did all that through the apt-get package for 14.04 that loads all the planet and then we imported the entire north american PBF. It doesn't load further than zoom level 13. And render_list has been running for days.

(15 Apr '18, 20:42) gfitz

Already did all that through the apt-get package for 14.04

One big caveat - the "with packages" instructions use lots of quite old software versions. I wouldn't personally recommend it, although on 14.04 it should still work (though you may hit old bugs later on).

that loads all the planet

To be clear, you can load any data you want at that stage. I'd personally suggest something much smaller while ensuring that the process works.

It doesn't load further than zoom level 13

I'm guessing here that you mean "the data loads OK but when I manually run render_list it doesn't get further than zoom level 13".

To re-ask my original question - what are you actually trying to do?

(15 Apr '18, 22:23) SomeoneElse ♦

Is render running? Restart it and post the useful output of: grep syslog | grep renderd

(16 Apr '18, 05:12) yvecai

I suspect that what you're trying to do here is to:

  • load data into a database
  • Render tiles up to a particular zoom level in a particular geographical area from that data

In order to load data I'd suggest following this for Ubuntu 16.04 or this for 18.04. I wouldn't suggest anything older because:

  • The ubuntu version it needs will be out of support soon
  • The packages used (mod_tile, osm2pgsql etc.) are quite old and you'll be limited in terms of what map styles you can use because of that.

If you want a US state, I'd suggest that you get data for the state you want from here. You can pick a small one for testing.

Once loaded, you'll have a database and a tile server but no map tiles yet. You can let map tiles render "on the fly" as people try and access them (but this will initially be slow) or you can use something like "render_list" (part of mod_tile) to render all tiles worldwide at certain zoom levels.

However, if you're only interested in tiles for a US state rendering all tiles worldwide (most of which will be empty) is pretty wasteful. This link explains how to render tiles for a particular area only. The example given there renders zoom 11 tiles for the UK only; for your US state you'd need to find the min and max lat and lon values and min and max zoom levels and amend the example command line given to match.

permanent link

answered 15 Apr '18, 22:37

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

Alright now. Followed that guide. /0/0/0.png is returning a pic of the world. After a few 404s tho. Also loaded the entire north american continent. Now leafletjs returns 404 on the pngs it's trying to fetch.

(27 Apr '18, 05:15) gfitz

Sorry the path was /hot/x/y/z.png. My bad

(27 Apr '18, 05:30) gfitz

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Apr '18, 19:24

question was seen: 4,071 times

last updated: 30 Jun '18, 12:13

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum