[josm-dev] [GSoC] GPSBabelPlugin and adding up gpxlayer
Karl Newman
siliconfiend at gmail.com
Sun Aug 10 17:39:50 BST 2008
On Sun, Aug 10, 2008 at 12:09 AM, Subhodip Biswas
<subhodipbiswas at gmail.com>wrote:
> hi !
>
> On Thu, Aug 7, 2008 at 11:30 PM, Karl Newman <siliconfiend at gmail.com>
> wrote:
> > 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
>
> I tried that but no avail .. but however files from any other format
> are easily available as gpxlayer with data . is it because of nmea
> "discard,hdop=10" option not given ?
> >
> > Karl
> >
>
>
>
> --
> Regards
> Subhodip Biswas
>
Sorry, I don't know about that option (I can guess what it does, though),
but I doubt leaving that out would give you an empty data layer.
Karl
More information about the josm-dev
mailing list