I loaded OSM data into PostgeSQL with Osmosis&Osm2PgSQL, and see many tags are missing. I need to make it import lanes tag. How can I make it save this tag too?

edit: my solution was to copy /usr/share/osm2pgsql/default.style into a new file, edit it adding a line:

way   lanes         int4         linear

then call osm2pgsql with parameter:

osm2pgsql ... --style my.style

1 Answer 1


With osm2pgsql, you have to edit the default.style file.

it is a simple text file, so any text editor will do.

For including lanes, add a line

node,way   lane     text         linear

you have to re-import your data afterwards.

If you have installed the hstore, you could extract the tags from there, but that's a bit more difficult.

  • yep, found it too. I used int4 as data type
    – culebrón
    Mar 3, 2014 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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