In OSM XML, are the attributes of the elements (node, way, nd) always presented in the same order? For example is it always the case that the attributes of element node come in this order: id=".." lat=".." lon=".." asked 04 Feb '13, 19:08 Sadeer |
No. The rails port issues the attributes in a specific order but that is an implementation detail and not guaranteed. The /map call, the /node /way /relation calls, and the planet file are all produced by different pieces of software and might differ. If you're doing some sort of quick hack though, you can assume that the order you get your attributes in today will still be the order you get your attributes in tomorrow. That assumption is probably right 99.9% of the time ;) answered 04 Feb '13, 19:25 Frederik Ramm ♦ |
(just in case you haven't already seen it):
http://wiki.openstreetmap.org/wiki/XML#Assumptions
I saw the assumptions sections but it didn't mention anything on the attributes order of an element.