I would like to give a postive answer but this does not work either … i think the “>” is not the “|” pipe, but does the same as in a shell - write standard output to a file - in this example gosmore.
So let’s try something else: do you have a linux machine somewhere? Perhaps you can create the database file there and copy it to Windows. As long as both versions are 32bit or both are 64bit and use the same endianness then that might work.
Alternatively, you can also have a look at any of the other routing applications on the page that I mentioned before or even Kosmos.
I also couldn’t get it to work under windows (vista32):
D:\Programme\dev\OSM\gosmore>gosmore.exe build bw.osm
Cannot read gosmore.pak
You can (re)build it from
the planet file e.g. bzip2 -d planet-...osm.bz2 | gosmore.exe rebuild
where bw.osm is directly in the same folder as gosmore.
Additional question:
How to make gosmore.exe output the calculated route?
Simply call the exe with the coords behind ?
In the end I want to make the data accessible through the web:
Is there another way than setting the QUERY_STRING environment variable ?
So i got it almost working in a VM (Ubuntu 8.04) (all packages installed) but receive an error:
jars@jars-desktop:~/Desktop/OSM/gosmore$ bzip2 -d bw.osm.bz2 | ./gosmore rebuild
1 while (xmlTextReaderRead (xml))
:1: parser error : Extra content at the end of the document
^
At that point the program hangs and I have to exit it with CTRL+C
The bw.xml ends with the tag:
2nd question: Is the output of ( http://yournavigation.org/gosmore.php ) the same that I can expect in my installation of gosmore? (So I can already start writing a parser)
If you could tolerate using a non-OSM specific software then some GIS program with real-time GPS connection might be an option. I had a try with QGis and it opens fine all the shapefiles of England (downloaded from geofabrik.de, total filesize some 200 MB, QGis memory consumption after loading the files 50 MB). Screen is updated very soon when zoomed a little bit closer, but just after creating spatial index for the shapefiles with gdal/ogr shptree utility. QGis is missing real-time GPS plugin yet, but such is under development and it may already work well enough, see http://n2.nabble.com/Real-Time-GPS-Plugin-for-QGIS–td2905157.html#a2912921
I haven’t tried the plugin myself.
Hi guys,
I would also like to have the maps available offline. So, you say that optimal viewer for OSM data would be Gosmore but there is no way to use it under windows because of the pak file.
I use some shapefiles from Geofabrik in QGIS, but using it only for maps is not much comfortable - for example because searching places is done through attribute tables etc., also the file loading is not so quick. Current Qgis also has some OSM extension, but did not tried yet.
Has anybody an experience with some good and simple map viewer? I need only something for map viewing and serching - similar functionality as Openstreetmap website, GPS not needed. I am running win XP, but if it was also for linux, would be nice as my brother is running PclinuxOS.
I run PCLinuxOS on a desktop PC and Acer Aspire One netbook. I use TangoGPS <http://www.tangogps.org/gps/cat/About> on the netbook. The website says:
“The maps are automagically downloaded and cached for offline use while you drag or zoom the map. Furthermore you can conveniently pre-cache areas with tangoGPS.”
Gosmore isn’t capable of building (rebuild) a database on Windows because the code for rebuilding is not included in the Windows versions (for programmers: disabled using #ifndef WIN32 constructs).
Why? Because Gosmore uses POSIX functions like mmap() for accessing the database and temporary files which are not supported by Windows. I’ve been trying to implement the same functionality using the Windows mmap() equivalent CreatFileMapping(), but abandoned it after encountering bump after bump. No doubt it can be done, it just takes someone with a bit more perseverance then me. All I wanted was to run Gosmore in a usable debugger environment (VS C++ 2003) so I could get a new database update for www.yournavigation.org, not rewrite a large section of Gosmore’s code…
If someone want’s to give it a try, I have a VS 2003 project file and patched Gosmore code with a lot of WIN32 fixes. Contact me to get a copy.