NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Anyone know how to import KML files into OpenStreetMap?

asked 17 Aug '11, 22:06

br55's gravatar image

br55
91122
accept rate: 0%


How can one keep some attributes of the KML file when bringing them into openstreetmap? I want to bring in some bus stop data for example, and I'd like to keep the stop names with each stop without retyping them.

permanent link

answered 04 Dec '12, 20:26

Nate_Wessel's gravatar image

Nate_Wessel
261
accept rate: 0%

You can also convert it with gpsbabel adding fake time:

#!/bin/bash
for file in *.kml; do 
  gpsbabel -i kml -f "$file" -x track,faketime=20120901000001 -o gpx -F "${file}.gpx"
done
permanent link

answered 24 Oct '12, 19:01

int_ua's gravatar image

int_ua
27591221
accept rate: 0%

edited 24 Oct '12, 19:02

I've had some luck with this site, which provides several conversion capabilities.

http://www.gpsies.com/convert.do

If anybody has any warnings about this source, please speak up.

permanent link

answered 03 Oct '12, 02:37

metricrider's gravatar image

metricrider
1
accept rate: 0%

You can load a KML file as a vector background layer in Potlatch and then choose which features from it to merge into the main layer. There is more information in the wiki.

permanent link

answered 02 Oct '12, 21:29

TomH's gravatar image

TomH ♦♦
3.3k83943
accept rate: 20%

This works with Potlatch 3. It works with both paths and points. It doesn't seem to import labels of the objects, though?

(19 Oct '22, 03:58) brightj

You can't import KML files directly into OpenStreetMap, but you can probably trace over them in one of the editors available. Merkaartor can open KML files directly, and if you convert the file to GPX JOSM can display it.

Even if you do convert your KML file to GPX, you won't be able to upload it to OpenStreetMap's traces, since it won't contain time stamps. This is done deliberately so that only traces gathered using a GPS receiver, rather than traced from an existing map, can be used as source material. Information traced from existing maps will be derived from those maps and carry their copyright, making them unsuitable to use as a source for OpenStreetMap.

permanent link

answered 17 Aug '11, 22:46

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108
accept rate: 18%

edited 17 Aug '11, 23:08

Merkaartor seems to only import points, not paths?

(19 Oct '22, 03:49) brightj

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

Question tags:

×49

question asked: 17 Aug '11, 22:06

question was seen: 75,605 times

last updated: 19 Oct '22, 04:09

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum