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 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. answered 17 Oct '11, 07:29 Gnonthgol ♦ 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. http://activityworkshop.net/software/gpsprune/ http://wiki.openstreetmap.org/wiki/GPSBabel answered 08 Oct '14, 13:08 andy mackey |