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

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

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.

permanent link

answered 22 May '12, 15:49

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

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...
permanent link

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

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:

×352

question asked: 22 May '12, 13:03

question was seen: 3,882 times

last updated: 22 May '12, 15:49

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