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

hi all, I had at last installed ubuntu 16.04 and based on these steps from this link https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/ all is working as per the link thank you for the author. I have few queries.

  1. How to further harden this ubuntu machine and in future there is update should I update or will it break my maps?
  2. How to add more country map ? What will need to be updated I mean the steps?
  3. In future when there is updates for the countries which I have included how to updated them?
  4. I am stucked at this step Viewing tiles.I dont get it how to test this ? I dont get this steps We’ll add “http://tile-a.openstreetmap.fr/hot/” as “From” and “http://yourserveripaddress/hot/” as “To”, and do the same also for “tile-b” and “tile-c”.
  5. How to make the openstreet map look like how the mapbox map is?

asked 18 Jun '17, 16:18

newbie14's gravatar image

newbie14
319912
accept rate: 0%


Taking these one at a time:

How to further harden this ubuntu machine and in future there is update should I update or will it break my maps?

You shouldn't have a problem applying regular Ubuntu 16.04 LTS updates. Upgrading to 18.04 LTS (which I guess will be out early 2018) would cause a problem, as I believe that some of the stuff in the repositories used by those instructions needs updating before then. That's a year away though and will be fixed by then.

Whether other stuff that you may want to do to "harden" the server will break things rather depends on what you're actually doing.

How to add more country map ? What will need to be updated I mean the steps?

It'll likely be fastest to combine the data that you want to load into one file and then run "osm2pgsql" again with the "create" argument.

In future when there is updates for the countries which I have included how to updated them?

I described what you'd need to do to do that here. I didn't include that in the main "switch2osm" article to avoid confusing people too much.

I am stucked at this step Viewing tiles.I dont get it how to test this ?

This is talking about using the "switcheroo" browser extension within the Chrome or Chromium browser. If a link such as http://yourserveripaddress/hot/0/0/0.png works then perhaps we need to explain a bit more about installing switcheroo and configuring it (once installed you have to click on the "S" that appears to the right of the addreess bar - hopefully things become more clear then).

How to make the openstreet map look like how the mapbox map is?

One question that immediately springs to mind is "which Mapbox map?". They have lots of different map styles. Of those styles that are publically available you'd need to check the licence file such as here for OSM Bright to see what you're allowed to do with it. Also some more recent Mapbox styles are designed for use with Mapbox studio rather than the tools described in the switch2osm guide. Another issue is that Mapbox may not be happy about you copying the map style that you are interested in (see here for such an issue in another map style). With any style if the licence file isn't clear enough, you'll want to check with the style's authors that it's OK to copy in this way.

permanent link

answered 18 Jun '17, 17:27

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

@SomeoneElse 1) I plant to use this server purely to server map and nonamtim for reverse geo code. So what hardenning can I do any tips?

(18 Jun '17, 18:05) newbie14

@SomeoneElse 2) I am not clear how to combine the data say I want to do for thailand and malaysia now. But now I have only loaded for malaysia?

(18 Jun '17, 18:06) newbie14

@SomeoneElse 3) I am not clear on the osmosis? I know you trying to run a crontab or maybe if I want to do manually is it possible too?

(18 Jun '17, 18:09) newbie14

@SomeoneElse 4) Can I straight move to open layers rather than doing this chrome extension?

(18 Jun '17, 18:10) newbie14

@SomeoneElse 5) Yes I want to use osm brigh but is that permissible to use or only map box not so clear on the terms there. I saw you did before for 14.04 here is the link https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/

(18 Jun '17, 18:13) newbie14

1) Not sure - someone else may be able to answer that more comprehensively

2) The best current suggestion for that is probably https://wiki.openstreetmap.org/wiki/Osmium . Also see https://help.openstreetmap.org/questions/5389/merging-2-countries-with-osm2pgsql and https://help.openstreetmap.org/questions/19904/merging-osm-files-with-osmosis-and-import-to-postgres-with-osm2pgsql .

3) Yes, you can do it manually every now and again, but if the data's significantly out of date it'll be quicker to reload rather than update.

4) Absolutely (or use Leaflet, which a lot of people find easier than OpenLayers).

5) There shouldn't be a problem with https://github.com/mapbox/osm-bright/ . Do be aware that it hasn't been updated for a year. I'd expect you'll have to solve a few problems as you go, if data that it uses has changed. Also there are a few issues with that style (such as everything with a name tag being rendered) that don't exist with some other styles.

(18 Jun '17, 18:43) SomeoneElse ♦

1) Ok I will find myself on the hardening 2) I read a lot it say download osmium? The merging part I am not too sure what is the correct method many answer are with different option. So can you tell me what is the exact method? 3) I am wondering say I have run this command and again I run osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 1 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/azerbaijan-latest.osm.pbf what will happened to existing data ? Will that wiped off? I am also not sure how to rerun updates manually? 4) I am exploring both leaflet and openlayer but people saying openlayers have more features. 5) Is there any other good style sheet which you will recommend or go with the default version?

(20 Jun '17, 16:39) newbie14

(answering the easy ones first)

3) That'll remove all data from the database and re-add the data in the file that you supply, in your example "azerbaijan-latest.osm.pbf". The answer to "how to apply updates manually" depends on how long between manual updates you plan to leave it. If you just want to catch up a day or so, then the example already mentioned at https://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1604_tileserver_load#Updating_your_database_as_people_edit_OpenStreetMap should work. If much longer, then I'll be quicker to reload the database than apply updates.

4) I think you'll find Leaflet easier.

5) It depends on what features you are particularly interested in showing and where in the world you are. The default OSM style is a compromise designed to work everywhere, but something else might be better for you. OSM Bright is relatively easy to modify, but you might need to fix a few minor issues to get it working as it hasn't been touched for a while.

(21 Jun '17, 09:59) SomeoneElse ♦

2) For the merging which is the correct method to do ? I see many different google links a bit lost there.

3) Maybe I dont need to catch in a day or so for now. I will do manual right. What do you mean by quicket to reload the database meaning the manual way right. Another thing is that when I do the manual update is this the only step needed or any other steps need to be executed?

5) So which style do you recommend which does not compromise anything? I am sorry very new to all this. I also even leaflet and open layers have .css what is thay css does?

(21 Jun '17, 10:06) newbie14
showing 5 of 9 show 4 more comments

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:

×362
×24

question asked: 18 Jun '17, 16:18

question was seen: 2,227 times

last updated: 21 Jun '17, 10:06

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