Skip to main content

What controls the order in which tags are written in the OSM XML writer? I have a set of attributes that are ordered alphabetically in the writer. The attributes are even ‘ordered’ on the features (which shouldn’t matter?).  As you can see 'smoothness’ was assigned as the second tag, when I would have expected ‘highway’ to be the second tag.

Inspecting the written data
Viewing the XML file in Notepad++
Attributes are listed alphabetically on the OSM XML writer.

 

Hi ​@dustin ,

It seems that the order of the elements "tag" in the output XML document matches the order of elements in the list "tag{}". If you would like to sort the elements “tag” alphabetically by value of "k", try sorting the list "tag{}.k" with ListSorter transformer.


Reply