Hello, I need to have order of nodes within a way. For instance:
</way> I need to retrieve only a list like following from above code: 4534884733 4534884725 4534884748 82608659 82608658 639108039 ... I tried to use osmfilter and osmconvert, but could not find any command. Any suggestions? I need this for an application where the order of latitudes and longitudes is important. Thanks asked 22 Jul '17, 00:51 omidrad |
Your question does not make a lot of sense for the following reasons:
If you are hoping to extract a sequence of latitudes and longitudes for all nodes in a way, then the easiest way is to run your OSM XML file (which of course has to have the matching node data referenced by your ways) through the answered 22 Jul '17, 10:16 Frederik Ramm ♦ Thanks a lot for the reply. Actually I have a csv file containing 3 columns : ID, lat and lon of a building footprint which I obtained using osmconvert. I have loaded this csv file into a list in my Java code. However, the order of the lats and lons are not sorted to form a correct polygon of the footprint. I wanted to have the correct sequence using the ref values of the way to sort the list in my Java code.
(22 Jul '17, 11:22)
omidrad
|