I need to convert the raw thata OSM XML to tiles styled like standard OSM tiles (and other styles if possible)

From the research I've done I've found I need to have osm2pgsql and put it on the same server with my data (postGIS or sth), then I can render it with Mapnik using OSM style.

1) Do I have to have a server to convert files? 2) Is there a faster way to do this? (I've found sth about Imposm)

1 Answer 1


no you dont need a server.

you can install postgis on your computer and use osm2pgsql.

i recommend using tilemill to create the tiles from your postgis db and use osm-bright to style them.

you can then export them from tilemill in number of formats (i use mbtiles - you can open it to see the actual images if you need via mbutils)

i dont know about a faster way other then downloading the tiles themselves from somewhere..

  • osm-bright (carto- that I used) are for style setting when uploading data to db, right? I managed to connect TileMill to db, I added a layer (as described link, but there is no data shown (when I look up features- there is a lot of "unknown"). Nevertheless I need to write all the "true styling" in the TileMill (.mss file in box on the right)? I want to simply render the map like it is in osm, I dont Want to play with the styling.
    – BPiek
    May 16, 2014 at 13:14
  • follow the instructions in the osm-bright link i posted - you dont have to play with the styling - it is there. it adds a project to tillmill that is already styled.
    – dowi
    May 16, 2014 at 13:29
  • Is there an another, better way to make png tiles (for marble) than tilemill (it doesn't have option to export to png files- only one png)
    – BPiek
    May 19, 2014 at 9:58
  • hi, as i said, you can export to mbtiles and then extract it to the actual images via mbutils
    – dowi
    May 19, 2014 at 11:36
  • yes, but there is one step more to convert and the data will be hudge (I am trying to download it but it takes weeks (months?) ). I am looking to achieve this with as small nuber of conversion steps as possible. I am trying now with Mapnik on it's own ( I hope that I can get from it same output as downloaded tiles). another answer
    – BPiek
    May 19, 2014 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.