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

Hi all:

I'm a newbie trying to do some analysis with the .osm data.

My first task is to parse the xml into efficient data struture for later search algorithm.

But noticably, there is pretty much noise in the raw data.(e.g. one road may have several <way> tags, some nodes in <way><nd> are redundant)

Just wondering if there is a standard way to prune the raw .osm data instead of hacking by myself?

Thanks for your help Best E

asked 17 Oct '11, 02:18

eminemya's gravatar image

accept rate: 0%

edited 27 Oct '14, 00:36

aseerel4c26's gravatar image

aseerel4c26 ♦

The "pruning" of data is highly specialised to the algorithm you are running, and most algorithms are capable of handeling "noise" in the data. Hence there are no standard way of "pruning" the data to fit any algoritm.

I would suggest you merge the ways based on the name/ref either on import or after you have applied the search algorithm. The later may be perfered if you want to update the date structure.

permanent link

answered 17 Oct '11, 07:29

Gnonthgol's gravatar image

Gnonthgol ♦
accept rate: 16%

Thanks for your advice :)

(17 Oct '11, 14:23) eminemya

You could use GPSBabel to do some auto pruning or you could view and prune with GPSprune.

permanent link

answered 08 Oct '14, 13:08

andy%20mackey's gravatar image

andy mackey
accept rate: 4%

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]( "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: 17 Oct '11, 02:18

question was seen: 3,943 times

last updated: 27 Oct '14, 00:36

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