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

View large OSM-File (9GB)

0

I'm trying to open a large OSM-File. Since it's 9GB I'm not getting anywhere with Editor, Notepad, JOSM, QuantumGIS... .

I would need to change the "coastline" tag so it's not replaced at the import.

Any chance to solve this?

asked 22 May '12, 13:03

faxx's gravatar image

faxx
11335
accept rate: 0%

The OS seems to be Windows (from comment on answer below)

(22 May '12, 15:34) SomeoneElse ♦

Yes. Windows 7, 64 bit. Windows XP, 32bit would be also available.

(22 May '12, 15:49) faxx

2 Answers:

2

On the general issue of "how do I do stuff with large files on Windows" there are a couple of things that you might find useful.

  • One is "unxutils", which contains a number of natively compiled binaries of Unix-like utilities on Windows - things like sed, grep, etc.

  • Another is Cygwin, which is designed to provide a Unix-like environment within a Windows system.

  • Finally it's worth mentioning "osmfilter" - there's a Windows binary of that available too.

answered 22 May '12, 15:49

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

0

You're not saying exactly what you're importing but in case you are using osm2pgsql, have you tried the --keep-coastlines command line switch?

Other than that, a simple tag exchange like that can easily be done with sed, e.g.

bzcat planet.osm.bz2 | sed -e s/k="natural" v="coastline"/k="foo" v="bar"/ | otherprogram...

answered 22 May '12, 13:37

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Yes I've tried --keep-coastline with osm2pgsql. The version I'm running says unrecognised option. I could not find a osm2pgsql version for Windows that knows this command... . Is there any i've just missed?

(22 May '12, 13:46) faxx