This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Can i create tile server of some country only?

1

I want to create one tile server that is having data for India only. Can it be possible?

asked 16 Mar '16, 07:07

reddemonfox's gravatar image

reddemonfox
26112
accept rate: 0%

edited 16 Mar '16, 19:12

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


2 Answers:

5

switch2osm.org has instructions on setting up tile servers, and frequently mentions ways to load smaller extracts only.

answered 16 Mar '16, 07:54

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

thank you but could you please give me link for the same because m not able to find a clear solution for that, Thankyou

(16 Mar '16, 11:02) reddemonfox
4

Check out this step-by-step guide: https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/

When you come to "Loading data into your server" do not choose the planet.osm file but a country extract (e.g. http://download.geofabrik.de/asia/india-latest.osm.pbf for India) and adjust the filenames correspondingly.

(16 Mar '16, 11:12) jot

0

For users who are looking for such requirement. Here is simple solution to create all openstreetmap tiles for a single country osm-for-my-country. osm-for-my-country is a stack of all OSM related packages and has many scripts/commands for all tasks on a Linux machine. These are the tasks which can be achieved by this package:

  • Install all necessary software like osm2pgsql, postgres, mapnik, kosmtik etc

  • Download your country data

  • Download and install map style openstreetmap-carto

  • Create all tiles for your country

  • Update tiles on daily basis

  • Serve tiles with node.js or you can serve these offline map tiles with any simple http serevr or apache

answered 18 Mar '17, 15:46

Gagan's gravatar image

Gagan
3053515
accept rate: 14%

Source code available on GitHub .