2
1

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

Vclaw
8.6k576138
accept rate: 22%

edited 18 Jan '11, 22:10

Pieren's gravatar image

Pieren
7.2k1659126


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

link

answered 19 Sep '10, 01:36

Frederik%20Ramm's gravatar image

Frederik Ramm
38.2k48372605
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×29
×9
×6

Asked: 19 Sep '10, 00:15

Seen: 5,362 times

Last updated: 18 Jan '11, 22:10

powered by OSQA