When i run osmosis --read-pbf planet/tianjin_china.osm.pbf --write-apidb host="localhost" database="openstreetmap" user="osm" password="buaanlp" validateSchemaVersion="no" command, some errors appeared. It said duplicate key value violates unique constraint "nodes_pkey"

alt text

alt text

I have used this command to import beijing_china.osm.pbf into the apidb, and the same errors occurred. I drop the database and create it again, then the error disappeared. But when i run the command secondly, the error still occurs, how to solve this problem? I don't want to drop the database again.

asked 30 Aug '16, 13:03

yuyy's gravatar image

yuyy
236222431
accept rate: 20%

Be the first one to answer this question!
toggle preview

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:

×220

question asked: 30 Aug '16, 13:03

question was seen: 760 times

last updated: 30 Aug '16, 13:03

powered by OSQA