-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some specific formats for GPX files are failing (500 error) #1350
Comments
Need more testing to find out what the root cause really is. |
Investigation:
OK
OK
NOT OK
|
Here's the corresponding error log |
We need to do some more research to know if this is a valid format, and how partner managed to have this GPX file. GPX file should not be modified in the way. @bjohare can you please take a look, and see why this format is breaking the platform? |
According to the GPX 1.1 spec, a track with multiple track segments is a correct format. A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data. If I upload the attached "broken" gpx file to a visualizer, I can see a path: |
Thanks @clash99. It sounds to me like we need logic in Cadasta that connects the track segments if they are in track tags together. |
Has to do with the specific format, @bjohare can you please take a look when you have a moment? |
I get no error or map layer when I upload this file in staging:
I converted it from .gdb to .gpx in GPS Babel. Our partner in Thailand saves mostly in .gdb.... I think we will have to write a script to convert. It would be good to know what is accepted or not since the gpx doesnt seem to load. |
Sounds like it works with @bjohare's changes! Awesome Sauce. |
* Fix for #1350: Add support for GPX tracks with multiple segments * Remove gpx parse exception logging * Possible fix for gpxpy logging issues
Steps to reproduce the error
Have .gpx (or a .xml made with a .gpx)
Go to attach it as a resource to a project
Actual behavior
Get platform error
Expected behavior
The file should be attached to the project.
//
Specific files are attached below:
gpx-xml.zip
The text was updated successfully, but these errors were encountered: