-
Notifications
You must be signed in to change notification settings - Fork 28
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
Keep time #10
Comments
I think so, if you try so solve it in a fork I can suppot you... but sorry Now I don't have more free time. |
@Wilkins might be interested |
Hi @thejeshgn |
@Wilkins By default every point is
but after simplification it loses time |
@stefanocudini I understand, thank you, its a great tool |
@thejeshgn, I looked into this issue. |
supporting it for all formats may be is not cheap idea. |
Yeah, I thought of that. But we will have to do it for all the GPX data : ele, pdop, course etc... and for big files, that is a lot of data to handle. |
@Wilkins sure. I have huge gpx files from my recent trip for testing. |
Well, it seems to be harder than this... If this way is a dead-end, we can think about a workaround with deeper modifications by changing the file loader plugin with this one : https://github.com/mpetazzoni/leaflet-gpx |
Fixing issue #10 - Adding time and elevation support for GPX/KML
Hi @thejeshgn, could you please test this new version with time support ? |
Well, while the original issue author keeps silence, I can say (while using your wonderful tool) that it does not preserve time for points from original GPX files. Actually, I can say that when I'm trying to save simplified track with GeoJSON format, it seems to preserve elevation. But when saving as GPX, the tool does preverse neither elevation nor time. By the way, the current toGeoJSON saves the times of points in GeoJSON as "coordTimes" array in the properties of the whole track, not like GPX (which saves time of a point as a property of this point). Maybe, this prevents from preserving time when saving optimized track back to GPX. |
Humm, interesting. I must have messed up something in my tests or in my merge. |
Here is an example. The original file is a slightly cut GPX file got from a Garmin device which writes both time and elevation for each track point. By the way, you can see what is done with UTF-8 string in the name of the track (it is written in Russian). |
Thank you for the example. I will look into it at the end of january. |
Issue fixed. But @stefanocudini 's version is not up to date on http://labs.easyblog.it/maps/gpx-simplify-optimizer/ Otherwise, people can use the optimizer with this feature on my public copy : http://wilkins.fr/gpx/ |
thank you @Wilkins The online version is updated!! I'm sorry but in the last month I was very busy looking for a new job :-/ |
The time goes missing once the track is simplified. Can we keep the timestamp?
The text was updated successfully, but these errors were encountered: