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

Hi: I have a problem about parsing osm file.

A road in openstreetmap will denote by two or three ways(as number indicated 1,2,3 in the attached image).

When i parse the file i will get many ways that denote the same way, but i just want to get one way.

Could you please tell me how to merge those way into one?

OSM

thanks

asked 17 May '16, 20:36

Leo%20Hsu's gravatar image

Leo Hsu
11112
accept rate: 0%

edited 18 May '16, 20:30

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

maybe it would be more helpful for you if you would describe why you want to do that.

(17 May '16, 20:56) aseerel4c26 ♦

I need the skeleton of real map, so i want to merge them.

(18 May '16, 07:35) Leo Hsu

Thanks for your help

(18 May '16, 08:00) Leo Hsu

Take a look at Skeletron: https://github.com/migurski/Skeletron

permanent link

answered 18 May '16, 11:00

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

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

Question tags:

×223
×167
×41
×1

question asked: 17 May '16, 20:36

question was seen: 4,664 times

last updated: 18 May '16, 20:30

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