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

Hi everyone,I have participated in a small contest using OpenStreetMap data.

The map data format that the contest provided was "<wayid>^<name>^<lat_1>^<lon_1>^...^<lat_n>^<lon_n>"

I'd like to convert the osm file into the similar format above.

Is there any tool can help?

asked 20 Oct '12, 21:52

jeffreyshe's gravatar image

jeffreyshe
1112
accept rate: 0%

edited 20 Oct '12, 21:53


You should be able to do this with osmjs. See http://wiki.openstreetmap.org/wiki/Osmium/Quick_Start and play around with the osmjs examples. You can use the CSV output class which is basically a file output.

permanent link

answered 21 Oct '12, 09:04

Jochen%20Topf's gravatar image

Jochen Topf
5.2k55074
accept rate: 31%

Osmium seems really difficult. I will try to figure out how to use it. So where can i find the osmjs examples?

(21 Oct '12, 10:16) jeffreyshe

Try Osmconvert ... it has an option to output CSV data from osm files.

permanent link

answered 21 Oct '12, 18:13

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

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:

×710

question asked: 20 Oct '12, 21:52

question was seen: 2,614 times

last updated: 21 Oct '12, 18:13

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