Joerg Ostertag (OSM Munich/Germany)
2007-05-23 06:45:29 UTC
I do have some Windows users which are really busy like a bee collecting new
tracks. And since the new Windows installer for josm works nicely again. I'm
now trying to convince my Windows users to try to use josm themselves. But
for this I'd need a possibility for them to directly import there Tracks(from
the NaviGPS-BGT11) into josm.
So I'm looking for a possibility to read tracklogs in NMEA format directly
from josm. Did anyone already start something like this for josm?
I don't know if there already exists a java module for this, but if not the
Basic NMEA parsing itself should not be too difficult.
Just look for one of the interesting lines:
$GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh<CR><LF>
$RMC,hhmmss.ss,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,xxxx,x.x,a*hh<CR><LF>
where
hhmmss.ss = Universal Time Coordinated (UTC)
llll.ll = Latitude
yyyyy.yy = Longitude
a = N or S (North or South)
E or W (East or West)
hh = Checksum
and Latitude/Longitude is calculated by splitting LLll.ll and simply
multiplying and adding:
Latitude = LL + ( ll.ll * 60 )
Longitude = YY + ( yy.yy * 60 )
tracks. And since the new Windows installer for josm works nicely again. I'm
now trying to convince my Windows users to try to use josm themselves. But
for this I'd need a possibility for them to directly import there Tracks(from
the NaviGPS-BGT11) into josm.
So I'm looking for a possibility to read tracklogs in NMEA format directly
from josm. Did anyone already start something like this for josm?
I don't know if there already exists a java module for this, but if not the
Basic NMEA parsing itself should not be too difficult.
Just look for one of the interesting lines:
$GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh<CR><LF>
$RMC,hhmmss.ss,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,xxxx,x.x,a*hh<CR><LF>
where
hhmmss.ss = Universal Time Coordinated (UTC)
llll.ll = Latitude
yyyyy.yy = Longitude
a = N or S (North or South)
E or W (East or West)
hh = Checksum
and Latitude/Longitude is calculated by splitting LLll.ll and simply
multiplying and adding:
Latitude = LL + ( ll.ll * 60 )
Longitude = YY + ( yy.yy * 60 )
--
J?rg (Germany, Munich)
http://www.ostertag.name/
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Skype: JoergOstertag
J?rg (Germany, Munich)
http://www.ostertag.name/
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Skype: JoergOstertag