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

error while opening file 2048

0

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


One Answer:

3

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.

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