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

How to get datasource to create layer in tilemill tool

0

I need to add a route layer for India in tilemill tool. how do i get data source from online for my particular place?

asked 06 Jul '15, 11:22

Mayee's gravatar image

Mayee
11445
accept rate: 0%

Just in case you haven't see it already, I'd definitely run through TileMill's "crash course":

https://www.mapbox.com/tilemill/docs/crashcourse/introduction/

(07 Jul '15, 00:25) SomeoneElse ♦

One Answer:

1

Typically you would download the OSM data file (.osm.pbf format) either for all of India or for your region of interest, using one of the sources listed on the Export tab of the web site. Then you would use the osm2pgsql program to import this data into a PostGIS database they you have set up locally. Then you can use TileMill to access that database.

Working with Shape Files is an alternative to a database install but depending on what you mean by "route layer", not all information you are interested in may be present in the shape file.

answered 06 Jul '15, 21:56

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .