[josm-dev] [GSoC] GPSBabelPlugin and adding up gpxlayer

Karl Newman siliconfiend at gmail.com
Thu Aug 7 19:00:48 BST 2008


On Thu, Aug 7, 2008 at 10:42 AM, Subhodip Biswas
<subhodipbiswas at gmail.com>wrote:

> hi !
>
> I am trying to add a gpxlayer as soon as gpsbabel finish extracting a
> gpx file . I took help of openaction.java file
> However what i see is that on executing the plugin , i get a blank
> gpxlayer in my josm screen .
>
> I thought may be i am missing the actuall file and adding up a blank
> layer . so i try open up the gpx file separately using open dialog in
> josm . but i got the same thing ..a blank gpx layer .
>
> now the file i am using is a gps trace downloaded from openstreetmap ,
> i used gpsbabel to convert it to a nmea . Then use my gpsbabel plugin
> from that nmea to gpx and open up as gpxlayer .
>
> in order to convert is used
>
> gpsbabel -i gpx  -f filename.gpx -o nmea -F test.nmea
>
>
> but i can open the file in proper manner if i am using the original
> downloaded trace and open it using josm open dialog .
>
> what i am missing here .
> --
> Regards
> Subhodip Biswas
>

I think you have to add -t to the gpsbabel command line to get it to work in
track mode (I think it defaults to waypoint mode, which are probably missing
from the original file and that's what gives you a blank layer). So, it
would be:

gpsbabel -t -i gpx -f filename.gpx -o nmea -F test.nmea

Karl



More information about the josm-dev mailing list