Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With the help of osm2po, I have successfully inserted the contents of the italian files (italy.osm.pbf) in a pgrouting-enabled database (postgresql 8.4)

It displays fine in Qgis, using rule based labeling (thanks to underdark for the .qml file).

Now I wonder: how can I find out what attributes are included in the .pbf and how to control what tags / flags are imported in the database? Any help very much appreciated.

share|improve this question
up vote 3 down vote accepted

Have a look into the osm2po.config file. There you'll find lines like this one:

wtr.tag.highway.motorway = 1, 11, 120

(concurrent order, clazz, default speed)

e.g. filter your clazz-column (clazz=11) and you'll retrieve all motorways.

concurrent order means, that if osm gives you two main tags for the same street (e.g. highway=residential and railway=rail) that one with the lower value (e.g. 1 vs. 2) will win.

share|improve this answer
Hi Carsten, thanks - that helps. Corcurrent order was new to me.Still don't know though what kind of attributes are in the base file and how to control the import – AnalyGis Nov 19 '12 at 8:37
Your last name sounds german, you can also contact me via email. – Carsten Nov 20 '12 at 19:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.