This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Underlying graph structure of ways

0

How can get get the underlying graph structure of ways in openstreetmap?

asked 28 Jul '13, 09:18

Nadeem's gravatar image

Nadeem
11223
accept rate: 0%

Hi Nadeem, what do you mean with 'underlaying graph structure' the actual size, structure or the database, please tell us what you want to archieve.

(28 Jul '13, 09:33) Hendrikklaas

2 Answers:

1

Enter "graph" in the search box above to find existing answers, like this: OSM XML into Graph

answered 28 Jul '13, 11:35

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

0

OSM data consists of three basic types, called elements. These are nodes, ways and relations. Each of these elements can have additional tags in order to describe them.

There are various ways of downloading OSM data. The Planet contains all of these elements with all their tags for the whole wold and consequently it is very large. There are also extracts for continents and countries available. For even smaller areas you can either use the API directly or with the help of an editor like JOSM which is probably easier.

Then there is also the possibility of filtering data to reduce its size and strip unneeded elements or tags. You can filter the data before downloading it by using the Overpass API. And you can filter the data after downloading by using osmfilter / osmconvert.

answered 28 Jul '13, 09:45

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 28 Jul '13, 09:45

Source code available on GitHub .