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

Hi,

I am trying to append a dataset to existing map data using below mentioned command. But I am getting an error. San somebody help me to resolve this?

Command: sudo -u www-data osm2pgsql -a 2048 --slim --number-processes 4 gcc-states-latest.osm.pbf --cache-strategy sparse

Error: Reading in file: 2048 error while opening file 2048

asked 10 Feb '16, 06:20

Reshma%20Maner's gravatar image

Reshma Maner
235303136
accept rate: 0%

edited 10 Feb '16, 08:15

scai's gravatar image

scai ♦
33.3k21309459


You seem to have your command line mixed up see https://github.com/openstreetmap/osm2pgsql/blob/master/docs/usage.md in particular the append option simply uses the normal input file that you have already specified (gcc-states-latest.osm.pbf).

Note: appending to an existing osm2pgsql schema database will only work if their are no common elements in the data.

permanent link

answered 10 Feb '16, 08:13

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Yes. Thanks. Issue is resolved now.

(10 Feb '16, 08:31) Reshma Maner
Your answer
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:

×263

question asked: 10 Feb '16, 06:20

question was seen: 2,155 times

last updated: 10 Feb '16, 08:31

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