NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am new to OSM data. I downloaded city of Olathe (kansas/USA) OSM file olathe.osm. In it, looking at a relationID = 94008, it lists 313 ways as references. Many of these ways are not in this file as ways. For example, none of these wayID's are in this OSM file. (13033282,13033261,110134331). Aren't all reference ways for a given relation suppose to be in this OSM raw data file as ways? Am I missing something?

Thanks.

asked 30 Oct '12, 20:41

kcjailbirds's gravatar image

kcjailbirds
141131319
accept rate: 0%

edited 01 Nov '12, 15:06

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

Thank you very much. Two more questions! Where do I download the full extension OSM file for Germany! and also, is there a better way of doing what I am doing? What I need, is all the biclycle routes. So, I search the relations with any route tag = 'bicycle' and then try to get all the ways and all the nodes for each way. Is there a better way? I need to get all the routes for bicycle, hiking, etc...

of course programatically! I read all the nodes, ways, and relations into a sql server data structure that includes all their relationships.

Thank you very much

(30 Oct '12, 21:09) kcjailbirds

I have downloaded the germany.osm from geofabrik but it is not complete! It does not have all the nodes or ways that are listed as refrence node/ways for a given relation. Been looking at the overpass API but not been able to figure out what the proper query would be to give me all the nodes, ways, relations that have key/value pair of route/bicycle. Trying to get all the nodes, ways that comprise the bicycle routes in germany. This is what I tried in the overpass API query:

<union> <query type="relation"> <has-kv k="route" v="bicycle"/> </query> <recurse type="relation-node" into="nodes"/> <recurse type="relation-way"/> <recurse type="way-node"/> </union> <print/>

the file returned is blank. Any idea anyone?

(31 Oct '12, 20:02) kcjailbirds

Can you give an example missing node or way? That might help us to understand what's going on.

(31 Oct '12, 22:58) SomeoneElse ♦

Here is another example. I downloaded berlin.osm from geofabrik and it shows a relation with ID = 9030 as a bicycle route with 514 nodes and ways. many of those ways are not downloaded in the same berlin.osm file. For example, wayid = 26135363 and 26135342 are not in this download. I can get each way individually but wanted to know how I can get a download that would have all bicycle routes for germany or a city in germany and all the ways that comprise the routes and all the nodes that comprise each way.

Thanks

(01 Nov '12, 13:34) kcjailbirds

Looking at that relation (a cycle route taking in some of the old Berlin Wall route) it does seem to cross over in Potsdam. Presumably the ways that you're interested in would be in the "germany.osm" that you've already downloaded?

(01 Nov '12, 15:10) SomeoneElse ♦

Those two ways listed above I can find in germany.osm but not berlin.osm. However, another example, relation 14613, I can find wayid = 188044903 in the berlin.osm but not in germany.osm. So, I dont know which one to look at. Is there a way to download one file that has all bicycle routes including all ways, relations, and nodes that create those routes for a particular area like Berlin?

(01 Nov '12, 16:06) kcjailbirds

Please avoid starting a long discussion about your topic on this FAQ site by adding more and more answers by yourself that are new questions ins reality. Try the comment feature instead.

I will try to convert your "answers" to comments later.

Or if you are dealing with regions within Germany and also you are speaking German, I reccomend the German sub-forum at http://forum.osm.org

Greets.

(01 Nov '12, 16:54) stephan75

According to its history page, way 188044903 was created on Sun, 28 Oct 2012 10:31:27. Perhaps your "germany.osm" extract predates that?

To reiterate the answer, all bicycle routes that are wholly contained within Berlin will be within "berlin.osm". Bicycle routes that occur "in and around" Berlin won't necessarily be, but they will be within a recent "germany.osm".

(01 Nov '12, 17:16) SomeoneElse ♦
showing 5 of 8 show 3 more comments

Relations can be large. By default all the ways and nodes that make up a relation are not downloaded. If you want all of the members you can use the full extension, in your case:

http://www.openstreetmap.org/api/0.6/relation/94008/full

permanent link

answered 30 Oct '12, 20:57

ChrisH's gravatar image

ChrisH
4.1k134262
accept rate: 15%

You can get the whole of Germany as an extract from geofabrik, or partial ones if that is easier. These are typically only a day old, so very useful. You might be able to extract the data you want from Overpass. The OSM API is primarily intended to support map editing. Overpass is a way to extract data without impacting the API and allows for much more flexible queries.

permanent link

answered 30 Oct '12, 21:37

ChrisH's gravatar image

ChrisH
4.1k134262
accept rate: 15%

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:

×710
×128
×88

question asked: 30 Oct '12, 20:41

question was seen: 7,982 times

last updated: 01 Nov '12, 18:20

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum