[OSM-dev] GPX Parser?

Christopher Schmidt crschmidt at crschmidt.net
Sun Jun 4 13:59:15 BST 2006


On Sun, Jun 04, 2006 at 05:32:24AM -0700, Mikel Maron wrote:
> 
> > Searched through the OSM SVN repo, found no sign of a GPX parser. Found
> > a GPX creator, found a gpx submitter, found a add-bbox-to-GPX-er, but
> > found no parser.
> >
> > I must be blind. Where did it go? :)
> 
> No reason to assume visual defects on your own person, simply ask and someone can point to the right place.

Ah, I assumed the stuff under www.openstreetmap.org would be designed to
run from the web, and further assumed that the eruby files were the
backend to the HTML files on the site. I guess I don't know enough about
how ruby works yet.

> http://trac.openstreetmap.org/browser/www.openstreetmap.org/eruby/support/insert_gpx_files.rb
> 
> OSM uses Ruby Time.parse, which is pretty flexible. But yes, it's best to stick to the GPX standard if producing GPX.
> 
> > I'm working on writing a convert for Kismet files, and wanted to just
> > use unix timestamps, but I wasn't sure if the OSM parser would choke on
> > those.
> 
> Isn't Kismet a wireless network detector? How would this data be used in OpenStreetMap?

Kismet is an application used for 'wardriving', driving around with a
GPS and Wifi sniffer in place, detecting networks. Within the kismet
logs, the GPS coordinates are stored with a 'fake' macaddress
("GP:ST:RA:CK:LO" or similar), along with the latitude and longitude
reported by gpsd at that time.

Some kismet users have been doing this for more than 2 years, and have
covered a large area of the places they live. The user who requested the
script lives in Copenhagen, and has mapped out most of the streets:

http://www.wigle.net/gps/gps/Map/onlinemap/?lat1=55.66061865234375&lat2=55.68332409667969&long1=12.530181884765625&long2=12.564349365234374

He stated:

"If there's a converter written, I promise to upload and PROCESS the 2
years worth of data covering Copenhagen, that I have."

He got started in osmeditor last night, I believe, after I finished the
script for him.

> > http://crschmidt.net/projects/openstreetmap/kismet2gpx.py.txt
> >
> > If anyone cares, although I doubt it :)
> Didn't Joerg express interest?

Joerg already wrote his own though, which is better, so I don't think
he'll need mine. "This is already out of date, so I don't think anyone
would be interested", basically.

-- 
Christopher Schmidt
Web Developer




More information about the dev mailing list