NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦

Follow this question

By Email:

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

By RSS:

Answers

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:

×263

question asked: 07 Feb '13, 00:03

question was seen: 3,192 times

last updated: 06 Nov '14, 11:07

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum