[openstreetmap/openstreetmap-website] problematic reference node sequence (#2961)

jiawei92 notifications at github.com
Sat Nov 14 19:22:44 UTC 2020


Is the sequence of reference nodes in a way always consistent with that in real word? When looking at .osm file from openstreetmap, I found it is true for almost all cases. But, there are still some exceptions.

```
 <way id="106620126" visible="true" version="9" changeset="62223600" timestamp="2018-09-02T16:44:15Z" user="JokerAustin" uid="6121636">
  <nd ref="1226548270"/>
  <nd ref="4895447212"/>
  <nd ref="4897240420"/>
  <nd ref="4897291294"/>
  <nd ref="1226548304"/>
  <nd ref="5876423061"/>
  <nd ref="4895408377"/>
  <nd ref="5876423285"/>
  <nd ref="4895448835"/>
  <nd ref="4895409377"/>
  <nd ref="1226548274"/>
  <tag k="highway" v="residential"/>
 </way>
```

For the way information I attached above, I found the sequence of node 4895447212 and 4897240420 should be reversed after check their positions in map. It seems the nodes sequence is automatically generated by osm, and cannot be edited by users.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2961
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201114/cf64aad9/attachment.htm>


More information about the rails-dev mailing list