Actually, size is not much of a problem, as long as
you don't mind a larger
S&T file.
I have successfully stuffed wpt fragments into the
pushpin's GeocodeLong
field (which apparently has a 1GB limit...) and
retrieved them again when
converting to GPX. Mostly this gives GPX output that
looks identical to the
original.
The 2 problems so far are due to the difficulty in
extracting the complete
GPX fragment when parsing the original GPX to create
the S&T file:
1. Expat does not track it's current buffer position
well in some some
buffer transition situations, sometimes causing me to
loose the start of the
wpt element read BEFORE the start wpt read element
callback. I can string
together the following parts ok across buffer reads.
2. Expat's read buffer seems to have been preprocesed,
translating escaped
chars etc. So the fragment I get is not always the
original GPX.
There are various solutions to this, all of which
involve varying degrees of
reprocessing the original gpx, with or without Expat's
help. This is the
non-trivial part :)
Given the solution already proposed by Ron using
GPSBabel filters, I am not
inclined to pursue this further unless it really
excites a number of people.
Cheers,
James
-----Original Message-----
From: gpsbabel-misc-admin@...
[mailto:gpsbabel-misc-admin@...] On
Behalf Of Robert Lipe
Sent: Monday, 8 March 2004 5:12 PM
To: James Sherring
Cc: 'pdops'; gpsbabel-misc@...
Subject: Re: [Gpsbabel-misc] st2gpx
James Sherring wrote:
> It would be non-trivial for st2gpx to give the full
> GPX back, but I will
> consider stuffing some more of the original gpx into
Considering that "the full GPX" in this case goes way
beyond simple
coordinates and, while technically unbounded by size,
ranges from 4K
to 28K based on 3,570 waypoints I happened to have
laying around. The
average size for this sample set was 5,195 bytes.
It's quite non-trivial...
RJL
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gpsbabel-misc mailing list
Gpsbabel-misc@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
|