[OSM-talk] Annouce : Planet viewer
Nic Roets
nroets at gmail.com
Tue Jun 5 08:36:47 BST 2007
I've been writing a planet viewing application the last few days.
Linux users with Gtk-2.0 can try it out :
wget www.rational.co.za/gosmore.cc
wget www.rational.co.za/Makefile
make
bunzip planet-...osm.bz2 | ./gosmore rebuild
(Wait 20 minutes if you have 512MB RAM, or 8 hours if you have only 256MB)
Click on map to pan there or click on righthand area to change zoom
level. There are currently no names on the ways and no nodes.
After exiting, run it without command line parameters for quick start.
Then change the clat = Latitude () near the end of the C file to your
location.
Internals :
It uses mostly integer arithmetic so porting to an embedded device may
just be possible.
It uses "half segments" and all the "half segments" with the same node
are stored together. Hopefully I can use this to add routing.
It only requires Gtk2, so it should be easy to port to Win32
Rewrite for low RAM rebuild will soon follow.
The stats page says there are more than 20 million nodes, but I
suppose that's includes deleted nodes, because my program counts less
than 12 million.
My program throws away a lot of segments because they refer to non
existant nodes.
More information about the talk
mailing list