0
1

(COPIED AND PASTED FROM my own question in GIS.STACKexchange.com. More details and discussion on the previous link.)

Here is my question: Does anyone know why OSM has different attribute values from the same element and same frame time?

The example explains itself, when I try the Shapefile from different mirrors like Planet.osm.org , bbbike.org and geofabrik.de; I find that they have a mistake with the Direction of Travel on its attribute value.

example

When I check in the website: here the link , I see on its attribute value that there is no mistake at all and has its right value.

----- E D I T ------

I've tried the GIS software QGIS (Version 2.2) with OSM Plugin. I've just tested with an small .map file and surprisingly, I have exported a Shapefile with all its original attributes. Here's what I have when I open in an ArcGIS session:

Select by

So, at least, I'll have YES/NO/ /-1, and I could manage it in a better way.

Thanks for your support!!

asked 05 Jun '14, 23:05

juasmilla's gravatar image

juasmilla
16113
accept rate: 0%

edited 06 Jun '14, 21:02


The Geofabrik shape only knows oneway=0 or oneway=1. In cases where OSM has oneway=-1, the Geofabrik shape should revert the direction of the way, and label it oneway=1. However upon closer inspection I found that there was a bug in the creation of the shapes, and the reversal was not triggered. I have now fixed that, and updated shape files should be available within 24 hours. They will still not have a -1 but they will have a reversed geometry in such cases.

permanent link

answered 05 Jun '14, 23:51

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.7k826421105
accept rate: 24%

Thanks @FrederikRamm ,just to clear up: What do you mean when you talk about working on the reversed geometry? What I have understood or what I think is that the Fist point and Last point from each reverted line will be commuted, isn't it?

(06 Jun '14, 08:29) juasmilla

@juasmilla: A way is an ordered list of nodes. So to reverse its direction (e.g. affecting the "oneway" direction) the full list of the way's nodes needs to be reversed. This includes swapping its first and last node, yes.

(06 Jun '14, 10:30) aseerel4c26 ♦

Yes of course @aseerel4c26, I didn't express well. Thanks!

(06 Jun '14, 10:54) juasmilla
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×48
×44
×26
×16

question asked: 05 Jun '14, 23:05

question was seen: 2,689 times

last updated: 06 Jun '14, 21:02

powered by OSQA