[OSM-dev] planet.rb -- stab at a planet.osm dumping script

nick at hogweed.org nick at hogweed.org
Sat Jun 10 00:30:11 BST 2006


I have put together planet.rb -- a stab at a script to dump OSM given a 
bounding box. It works by calling the methods in dao.rb and dumping XML out 
direct, rather than creating a DOM.

To give an idea of the time it took - on the dev server, which has a database 
derived from the April planet.osm containing the UK, France and parts of 
Germany, fetching the bounding box 1W,51N,0,52N took 27 seconds. 

Would be a good idea to schedule a time for dumping planet.osm and temporarily 
shut down the OSM API during that time period? That way, the chance of memory 
issues would be reduced.

Nick




More information about the dev mailing list