Opening and editing a large osm file using Merkaartor

471 views
Skip to first unread message

Michael Diente

unread,
Jun 4, 2015, 3:43:30 AM6/4/15
to osm...@googlegroups.com
I'm trying to open and edit a 3GB osm file. Has anyone done this? I've tried using Merkaartor but my computer keeps on freezing due to the lack of memory. Can you provide any  more options to do this? Also, I've tried converting shape files to osm, then exporting to obf file, but OsmAnd cannot read it. I am really new to generating osm files so I have little knowledge about this. Help is greatly appreciated. Thanks :)

Osmandtrier

unread,
Jun 4, 2015, 4:05:11 AM6/4/15
to osm...@googlegroups.com
First at all to work with 3GB OSM-Files cause always a little bit trouble, in particular Osmandmapcreator.
http://wiki.openstreetmap.org/wiki/OsmAndMapCreator#RAM_requirement. So you need much smaller files than your 3GB-file.

First possibility: http://download.geofabrik.de/. Follow the links with the regionsname.
Second possibility: http://extract.bbbike.org/

Michael Diente

unread,
Jun 4, 2015, 4:26:08 AM6/4/15
to osm...@googlegroups.com
Thanks for the reply :) I had no problems in converting the 3GB osm file to an obf file using OsmAnd map creator. Next step that I want to accomplish is to open the osm file and maybe change and add some values, but Merkaartor always keeps giving me an out of memory error. I've tried using JOSM but according to its wikipedia, it cannot handle large osm files more than 1GB or less. Can you suggest any software or maybe techniques in order to open and edit an osm file. Greatly appreciate it. 

Sander Deryckere

unread,
Jun 4, 2015, 5:37:31 AM6/4/15
to osm...@googlegroups.com
What do you want to change to it?

Generally, changing the OSM data on a local file isn't a good idea, since you'll have to re-do the changes every time you want to update a map. There are some better ideas:

* Do the changes on the OSM database itself, then you can wait a bit until your export service has updated the data, download it, and convert it. Note that for imports or automated changes, you need to follow the import guidelines.
* Write a script that does automatic conversions directly on the OSM XML data, and run the script before converting the map every time you want to update
* Make a new OSM file with your added features (which is usually small, and manually editable), convert it to obf, and load it on top of the regular OSM data.

Loading 3GB in memory won't be possible. As software working with the data usually adds metadata to it, so with any current computer, you'll have a lack of memory. Next to that, you'll also have a lack of processing power for most operations you want to do (like render it on the fly). If you really want to edit OSM data locally, the only way is to start a fork of OSM (similar to what FOSM did), can install an API server that allows the editors to extract small pieces of data to work on. But this will be cost lot of work for practically no gain.

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages