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

Not add extra attributes when import .pbf file to database

4
2

I'm using osm2pgsql

I'm importing a file called maryland.osm.pbf with extra atributes (--extra-attributes ) but

  • osm_uid
  • osm_user fields
  • osm_version
  • osm_timestamp are empty.i don't know why?

    osm2pgsql --extra-attributes -v  -S default.style -d db_maryland  maryland.osm.pbf

while, if I import a file maryland.osm.bz2. is normal.Extra attributes appear

osm2pgsql --extra-attributes -v  -S default.style -d db_maryland  maryland.osm.bz2.

I need to import. PBF files. please help me.

in my file default.style is enabled the fields for extra atributes.

This question is marked "community wiki".

asked 07 Feb '13, 00:03

Rub21's gravatar image

Rub21
11356
accept rate: 0%

I am also seeing this problem. There's a bug report https://github.com/openstreetmap/osm2pgsql/issues/137

(06 Nov '14, 10:36) rorym

Just to confirm, the PBF that you're using really does include the extra attributes in the first place, does it?

FWIW I believe that Geofabrik PBFs do include at least the user's display name because when I process PBFs (not using osm2pgsql) I do processing based on that which works.

(06 Nov '14, 11:07) SomeoneElse ♦

Source code available on GitHub .