NOTICE: help.openstreetmap.org 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

arvivn
6223
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 ♦
82.5k927201273
accept rate: 23%

1

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
1

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×710
×315
×252
×83
×9

question asked: 25 Mar '15, 14:17

question was seen: 5,052 times

last updated: 31 Mar '15, 12:42

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