[OSM-dev] GPX files

Tom Hughes tom at compton.nu
Tue Jun 5 17:41:23 BST 2007


In message <20070605173411.uvh6nplw08o04448 at webmail.systemed.net>
          Richard Fairhurst <richard at systemeD.net> wrote:

> What's the procedure for importing GPXs into a locally-running copy of
> OSM on Rails?
> 
> I guess I have to fire /lib/daemons/gpx_import.rb somehow, but how...?

Well first off all you have to get them in the database, either
uploading them through the web interface or by adding rows to the
database directly and dropping the files in /home/osm/gpx named
as <id>.gpx.

Then run "ruby script/daemons start" to start the daemon, or just
run "ruby lib/daemons/gpx_import.rb" to have it run in the foreground
in your current window.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list