I'm new to OpenStreetMap and I'm trying to figure out how to process an OSM XML file and create map tiles for offline use. I already have the OSM XML file downloaded; I just don't know what to do next.

Once I have the tiles, I'll be displaying them in a control hosted in a Windows application. The basic application is complete. I'm now moving the data to local storage instead of online.

How do I take my OSM XML and process it into tiles?

  • I see that you have already prepared to use tiles. However, this may still be interesting reading anitagraser.com/2014/05/31/…. Rendering from vectors on-demand is much more flexible than using tiles and your users could fine-tune the styles easily. – user30184 Sep 27 '14 at 9:34
  • QGIS does the rendering in the RAM, so you might run out of that on larger areas. This will result in painfully slow rendering. – AndreJ Sep 29 '14 at 17:13

You have to use a renderer like Maperitive, Mapnik or Tilemill to create the tiles.

Since you are new to the subject, I suggest to install Maperitive, and try a small area first.

  • I found Maperitive on my own late Friday night and gave it a shot. It works and is simple to use. It's currently processing a data file and has been generating tiles since Saturday afternoon. I can see it's making progress but I wonder if there is a better (faster) way to generate the tiles. Currently processing about 80 tiles per second. – DenaliHardtail Sep 29 '14 at 16:59
  • With Mapnik you can use multiple CPU cores (if you have). But you need to set up a PostgreSQL database for it. That is a bit of extra work in advance to get the tiles faster (once it is working). – AndreJ Sep 29 '14 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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