Hi there hopefully helpful community!
My goal sounds simple:
I need a computer program that can be easily deployed/distributed that shows the complete openstreetmap on a (preferably 32-bit) Windows PC without internet access.*
(Some features like searching and customizing the view would also be nice but are not crucial.)
My research showed only two promising programs: Maperitive and gosmore.
On the osm-wiki site for Maperitive I can read: “It is suggested not to use very large areas because Maperitive loads all the data into RAM.” So it seems gosmore is the only usable thing.
Gosmore uses its own database file, *.pak, that can be created by rebuilding the database from an *.osm file. So i downloaded the Planet, got gosmore’s source as latest version from svn and applied the “patch” right at the end of the gosmore talk page to get it compiled. I then compiled it on a 64-bit linux machine (lubuntu), as you can read that 32-bit OSes fail with databases bigger than 2 GB and the windows versions of gosmore aren’t even able to rebuild the database.
I tried to rebuild the database as proposed in the rebuild guide like so:
bzcat planet-######.osm.bz2 | gosmore sortRelations >/dev/null
bzcat planet-######.osm.bz2 | gosmore rebuild
The first command takes about 90 Minutes and works well. It creates the relations.tbl with a size of ~5.2GB. The second command output some code, the last line was “1 while (xmlTextReaderRead (xml) == 1)” and after a few hours it finished without any more output. The output should normally have been longer. I tried launching gosmore, but it segfaults immediately with that database.
I’m doing the same again (sortRelations and rebuild), as I’ve got the impression that something went wrong during the first “sortRelations”. But even if all works well I’m not sure 32-bit OSes will be able to use the *.pak database generated by a 64-bit OS. Another thing that arouse my attention was that on the gosmore wiki page, section “building your own pak file”, it says “using country extracts is strongly advised”. Why?
Now my main questions:
Does anyone have a hint to help me build that database? (Has anyone ever managed to build it for the complete planet?)
Does anyone have a better idea than using gosmore for my goal (see top of post), possibly without the necessity of using 64-bit OS?
If anyone can help me, i’d gladly appreciate it!
Thanks in advance,
linerider
- Background: My sister works and teaches temporarily (for 2-3 years) at a university in Cameroon. She lately visited me and from all the stories she told me regarding education it came out that one of the main problems is that access to information is very difficult. Most people do not have computers, even fewer do have Internet access. (Even the students! Once she wanted to work with computers and asked if the students could bring their or a borrowed laptop. It turned out only one of 40 students had access to a portable computer.)
The computer science students have tasks like e.g. program traffic lights for crossroads. Problem is: Most of them have never seen traffic lights hence they don’t know what they are used for or what meaning the different colors have or in what sequence they should light up. And they do not have access to wikipedia to look that up. In addition, there is no book library.
So we thought about how we could improve access to knowledge that we benefit from every day. It makes sense to use free software and data as it can easily be distributed and does not have any real weight that has to be transported. We figured the most important things would be an encyclopedia, dictionaries and geography. So we downloaded Wikipedia (made available off line with Kiwix), some free dictionaries (with free software) and now: openstreetmap.