hi someoneelse could you tell how can i use your modified mod_tile from https://github.com/SomeoneElseOSM/mod_tile

and edit the "openstreetmap-tiles-update-expire" file to fetch edits from download.geofabrik.de/africa/egypt-updates/ so that i can update my tile server

i have tried to follow your page for installing tile server on ubuntu 1604, but whenever i try to update the tiles i get errors

asked 14 Jan '18, 23:01

engragy's gravatar image

engragy
11335
accept rate: 0%

converted 14 Jan '18, 23:11

SomeoneElse's gravatar image

SomeoneElse ♦
31.9k63327745

This was originally a comment on https://help.openstreetmap.org/questions/60986/openstreetmap-website-production-depolyment but isn't really related to the original question there, so I created a new question from it.

(14 Jan '18, 23:12) SomeoneElse ♦

There are probably a couple of different reasons why you might want to apply updates from Geofabrik's Egypt updates rather than the whole planet - one is to minimise the size of the database as it grows, the other is to minimise the amount of data fetched from a remote server.

It's perhaps worth mentioning that if database size is the main concern, you don't need to worry since openstreetmap-tiles-update-expire trims the update being applied to just the boundaries you're interested in (you'll need to edit that line to match the latitude and longitude of Egypt).

Assuming you really do want to use Geofabrik's Egypt updates you'll need to edit the "baseurl" line in /var/lib/mod_tile/.osmosis/configuration.txt . That will normally look like this:

baseUrl=https://planet.openstreetmap.org/replication/minute

and that file is created like that by this line in the script, which calls "osmosis". You can either change osmosis to create the default differently (have a look at the parameters that osmosis supports, maybe there's an easy way of doing it) or manually change it - there's actually a line in the script that does just that in order to change the URL to use https (which is now required at osm.org), so you could modify it to use your desired location.

You'd then want to remove the trim_osc code as you no longer need to call it, and only call the resulting script once a day because that's the frequency of updates. You may also want to increase "maxinterval" in configuration.txt because you want to apply more than an hour's worth of changes at a time.

I haven't actually tested any of this, so I've left this answer editable to you can add in any missing steps.

permanent link
This answer is marked "community wiki".

answered 14 Jan '18, 23:33

SomeoneElse's gravatar image

SomeoneElse ♦
31.9k63327745
accept rate: 15%

Your answer
toggle preview

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:

×26
×7

question asked: 14 Jan '18, 23:01

question was seen: 1,064 times

last updated: 14 Jan '18, 23:33

powered by OSQA