[Geowanking] Perl Geospatial Content (and other gems?)

Rich Gibson rich.gibson at gmail.com
Wed Aug 30 16:29:28 PDT 2006


The biggest suckage in Geo::Track::Log is that my GPX parsing is
a)primitive and b)slow as all heck.  It uses XML::Simple (ack!).

How well does your pure perl version work?

GPSBabel is so much faster...personally I'd rather do

>         NMEA -> gpsbabel -> something faster to parse than GPX, even text -> Perl something parser -> perl data structure

Even cooler would be to leave the data within gpsbabel's internal
structure and have a perl wrapper to access the data.


On 8/30/06, Andy Armstrong <andy at hexten.net> wrote:
> On 30 Aug 2006, at 23:44, Rich Gibson wrote:
> > How effective is the existing Geo::Gpx?  It is nice to have pure-perl,
> > but the GPX parser in gpsbabel is quite fast, so if you were into
> > wrapping gpsbabel anyway that seems a good path.
>
> The existing Geo::Gpx doesn't do that much - all it can do is output
> an array of waypoints as GPX. It doesn't handle routes and tracks and
> it doesn't parse at all.
>
> I've written a pure perl GPX parser / generator which can be used
> standalone. It's also the basis of the interface to gpsbabel. Behind
> the scenes importing, say, an NMEA log is implemented as
>
>         NMEA -> gpsbabel -> GPX -> Perl GPX parser -> perl data structure
>
> I've been doing some work on gpsbabel too - and eventually I plan to
> add a format to gpsbabel which is GPX + any useful internal data
> gpsbabel has (call this format BabelBabble or somesuch :)
>
> So then you'll be able to do
>
>         Some file format -> gpsbabel -> BabelBabble -> Perl parser -> perl
> data structure
>
> and back
>
>         perl data structure -> generate BabelBabbel -> gpsbabel -> Some file
> format
>
> But the basic GPX functionality is pure perl and independent of
> gpsbabel.
>
> --
> Andy Armstrong, hexten.net
>
> _______________________________________________
> Geowanking mailing list
> Geowanking at lists.burri.to
> http://lists.burri.to/mailman/listinfo/geowanking
>


-- 
Rich Gibson
Chief Scientist, Locative Technologies
http://mappinghacks.com
http://geocoder.us
http://testingrange.com
AIM period3equals



More information about the Geowanking mailing list