[OSM-dev] new planet.rb and planet2mysql.rb

Immanuel Scholz immanuel.scholz at gmx.de
Wed Aug 2 23:46:17 BST 2006


Hi,

I uploaded a rewrite of planet.rb and a new script called planet2mysql.rb to 
subversion (.../utils/planet.osm/).

The former should read the current mysql database and output a planet.osm file 
(to stdout). There is no support for latitude/longitude boundaries, areas or 
history.
The latter script reads a planet.osm file and writes to a mysql database.

Some facts:
- both scripts use constant memrory (regardless of the db-size)
- both scripts should be UTF-8 complaint
- both scripts are only quick-tested (more testing tomorrow)
- servinfo.rb is needed (should default to root at localhost without password)
- no dependency to libxml (sorry David ;)
- planet.rb outputs the time in RFC rather than mysql's own time format
- Expect "hours" to read a dump with planet2mysql (REXML).


Ciao, Imi.




More information about the dev mailing list