Code Monkey home page Code Monkey logo

gpxkit's Issues

Parse error when GPX file only contains waypoints

When I try to parse a GPX file with only waypoints but no track, the parser will fail with the error noTracksFound. If I add an empty track to the GPX file by adding <trk></trk>, it will parse successfully and I can use the waypoints.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd http://www.topografix.com/GPX/gpx_style/0/2 http://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpx_style="http://www.topografix.com/GPX/gpx_style/0/2" version="1.1" creator="gpxgenerator.com">
<metadata>
    <name>gpxgenerator_path</name>
    <author>
        <name>gpx.studio</name>
        <link href="https://gpx.studio"></link>
    </author>
</metadata>
<trk></trk>
<wpt lat="53.060632820504345" lon="5.6932974383264616">
    <ele>8.4</ele>
    <sym> </sym>
</wpt>

<wpt lat="53.06485377614443" lon="5.702670398232679">
    <ele>8.3</ele>
    <sym> </sym>
</wpt>
</gpx>

How to extract waypoints from gpu

Its not clear whether this library can extract waypoints from a gpu file or whether it is only capable of reading a track recorded in a gpu file format.

Can you update the documentation to indicate whether the library can extract waypoints and routes from a gpu file and include examples use cases for doing so.

Thanks

Parse GPX-files without track name attribute failed

Currently it is not possible to parse GPX files without the track name attribute. Title seams to be a Mandatory parameter for GPXTrack class. Unfortunately, many sources do not write this attribute in the files...
Is it possible to customize the behavior so that the title is optional?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.