I'm working on a project with Arcmap. I downloaded an OSM file of Munich from openstreetmap.org then I imported this file into Arcmap using OpenStreetMap Toolbox . I have the list of points , lines and polygones . My questions are :

  1. How can I get informations from osm, i.e.,how it is translated to arcgis format
  2. How is route information(number, type (bus/tram), direction, stops) stored? e.g., in attribute table route column is empty

asked 20 Mar, 17:07

tygaf's gravatar image

accept rate: 0%

edited 25 Mar, 09:28

aseerel4c26's gravatar image

aseerel4c26 ♦

Please do not and further questions as answers, wither edit your original question of add comments.

The obvious people to ask are ESRI btw.

(17 Apr, 10:27) SimonPoole ♦

Hi tygaf, the Osm data you downloaded only contain points, lines, and polylines. Busroutes are in Osm as Relations. These are lists of Ways ("Lines" in your software). Train/Tram routes are also there as Relations. The popular node type bicycle routes are also there in Relations.

In JOSM you could download a small part of Munich which contains a little bit of a Route you want in Arcmap. If you activate that way you will see the Relation on the right side. If you open the Relation Editor from that panel you can download the rest of that relation. Copy that Relation to a new layer and export from Josm.

The native format in Osm is a (compressed) type of markup language : XML. Long text with with markers symilar to HTML. Your Geo software wants it in the form of a Database: a table with Columns. That is the reason most Colums are empty. Most of your Polylines don't have a value for the tag "amenety"

The conversion from Osm XML to a Database can also be done with Osm2Pgsql. You will have to choose what type of tag-value pairs you want in your PostgreSQL Database. Unfortunately this only works in Linux for me and the learning curve for Osm2Pgsql is steeper than the one for JOSM.

hth -- Gys

permanent link

answered 17 Apr, 12:27

Gys%20de%20Jongh's gravatar image

Gys de Jongh
accept rate: 13%

Can we import the needed info separately , with python toolbox ?

(18 Apr, 18:08) tygaf

Hi tygaf, you say you downloaded an OSM file of Munich from openstreetmap.org. If this file only contained lists of points , lines and polygones I guess that you somehow got a raw .pdf file that was already processed (by osm2pgsql ?) Maybe you downloaded it from http://download.geofabrik.de/ ? The .shp files from that site typically contain only the list of points , lines and polygones and no other information that is present in the *.pbf file.

What you actually need is the original raw data file of Munich. The .pbf file and than process that file yourself with Osm2pgsql to extract the data you want in one or more .shp files.

In Qgis the process is a bit more straight forward. You can actually download the Munich area which is then presented as a large number of .shp files (thus not only three) from which you can retain the .shp files you need. Route information will be in relations which are not in the standard GeoFabrik extracts.

I don't know if the same can be done in Arcmap. If not you could try Qgis which is opensource and free.

hope this help a bit Gys

permanent link

answered 20 Mar, 21:00

Gys%20de%20Jongh's gravatar image

Gys de Jongh
accept rate: 13%

I downloaded an OSM file of Munich from openstreetmap.org and when I loaded it in ArcMap I get this alt text

alt text

I don't get why all column in attribute table are empty

(07 Apr, 15:02) tygaf

They aren't all empty. The objects visible in your second screenshot are all highway=* and that attribute is present. That type of object (a road or trail of some kind) wouldn't normally have the other tags like building=*, natural=*, railway=*, etc., so it's expected that those other columns would be empty. If you scroll to the right, do you see a "name" column populated with values?

(07 Apr, 16:48) alester
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 20 Mar, 17:07

question was seen: 342 times

last updated: 18 Apr, 18:08

powered by OSQA