Why not ask your question on the new OpenStreetMap Community Forum?


How can I convert data in .osm XML format to KML format?

eg I would like to download all of a certain type of POI from XAPI in .osm format. Then I want to convert it to KML, so I can use it as an overlay in Google Earth or OpenLayers. I would like to convert particular OSM tags to the name and description in the KML overlay, plus show different icons depending on the tags.

Is there any software to do this easily? I have tried GPSBabel, which can do the basic conversion, but it seems limited in which .osm tags it can read and process.

asked 19 Sep '10, 00:15

Vclaw's gravatar image

accept rate: 22%

edited 06 Apr '15, 19:37

aseerel4c26's gravatar image

aseerel4c26 ♦

Take a look at the Ruby osmlib and its associated "export" tool. It can create KML files according to a specification you write.

permanent link

answered 19 Sep '10, 01:36

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



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:


question asked: 19 Sep '10, 00:15

question was seen: 12,281 times

last updated: 06 Apr '15, 19:37

powered by OSQA