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

Hey, I have a working local tile server with all planet data imported to its postgres DB. I also kept the planet file that I've used to import with.

Now, I need another local-tile server which must have data only for zoom level 1-4 (inclusive). How can I extract this data from my previous server in order to load it to the new one??

have tried osmosis with no luck (both on pg & xml)

Thanks, Nir

asked 25 Mar '15, 14:17

arvivn's gravatar image

accept rate: 0%

The total number of tiles for zoom levels 1-4, world-wide, is 341. I suggest that you download those with wget or any tile downloader from your old server, and put them into the web space of the new server; problem solved, no tile server needed.

permanent link

answered 25 Mar '15, 14:27

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%


the "small" tile server contains a few countries with full OSM data so I can't give up for it....

Your idea of pre-fetching is good and now the question is where and shall I put the tiles on the "small" tile-server so that it will use them instead of rendering (ie CAHCE).

Thanks! Nir

(31 Mar '15, 09:46) arvivn

Put them anywhere you like - just point whatever library you're using to serve tiles at that location.

If you're using leaflet, something like this would work.

(31 Mar '15, 11:33) SomeoneElse ♦

didn't catch that... I have a map client which accepts an address of tiles-server. where shall I put the cached tiles so the server will use them fluently?

(31 Mar '15, 12:29) arvivn

In any directory you want as long as this directory is available via your HTTP server. The address of your HTTP server plus this directory will then be your tile server address.

(31 Mar '15, 12:42) scai ♦

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: 25 Mar '15, 14:17

question was seen: 4,855 times

last updated: 31 Mar '15, 12:42

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