[OSM-dev] Reimplementation of the GPX importer
Daniel Silverstone
dsilvers at digital-scurf.org
Tue Sep 23 09:27:41 BST 2008
On Mon, 2008-09-22 at 18:00 -0600, Tom Hughes wrote:
> >> gpx.c:
> >> - The old parser used to accept gz, bzip2, tar, zip etc, is this still
> >> supported?
> > I couldn't find this in gpx.rb -- is it some magical behaviour of the
> > ruby libxml binding?!
> The xml_file method in the trace model takes care of doing any unpacking
> and returning an uncompressed file which the daemon then processes.
Yes, I found this last night and experimented with concatenating GPX
files. Unfortunately Expat explodes horribly. However I have managed to
come up with a possible pipeline. Unfortunately it effectively involves
running a shell script on each file before processing. I don't think
this is necessarily a bad thing, but if I can avoid shelling out, I'd
rather.
If anyone knows how to tell expat to accept that a stream may be the
concatenation of multiple documents, I'd appreciate the hints.
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895
More information about the dev
mailing list