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

I don't known if I'm using Osmosis right, but I wan't to import only some countries from geofabrik ( .osm.pbf )

The first import work great, but when trying another country, Osmosis raise an error about duplicated primary key

StatementCallback; SQL [ALTER TABLE ONLY nodes ADD CONSTRAINT pk_nodes PRIMARY KEY (id)]; ERROR: could not create unique index "pk_nodes" Detail: Key (id)=(4077266959) is duplicated.; nested exception is org.postgresql.util.PSQLException: ERROR: could not create unique index "pk_nodes"

I searched about append/update data to Postgres but I found nothing and I wonder if I can achieve that with osmosis ?

asked 12 Oct '17, 12:06

m4tmat's gravatar image

m4tmat
11112
accept rate: 0%

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:

×252
×196
×165

question asked: 12 Oct '17, 12:06

question was seen: 1,889 times

last updated: 12 Oct '17, 12:06

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