vitalych / gpsmap Goto Github PK
View Code? Open in Web Editor NEWA tool to create animated MP4 maps from GPX traces
License: MIT License
A tool to create animated MP4 maps from GPX traces
License: MIT License
Hello,
I'm trying to use this tool on Windows, using Ubuntu terminal installed from Windows Store and I think I made it doable. But I have some problem with .gpx files.
This is the command, which I used:
/mnt/c/Users/macie/Videos/Kamery_samochodowe/GitHub/gpsmap-build/src/gps -gpx /mnt/c/Users/macie/Videos/Kamery_samochodowe/Robocze/2024_0501_065035_F.gpx -rsrcdir /mnt/c/Users/macie/Videos/Kamery_samochodowe/GitHub/gpsmap/rsrc -tiles /mnt/c/Users/macie/Videos/Kamery_samochodowe/GitHub/tiles_files -outdir /mnt/c/U sers/macie/Videos/Kamery_samochodowe/GitHub/output
And this is an error:
Using map URL https://a.osm.rrze.fau.de/osmhd/$z/$x/$y.png Loading /mnt/c/Users/macie/Videos/Kamery_samochodowe/Robocze/2024_0501_065035_F.gpx 0 frames - 00:00 terminate called after throwing an instance of 'boost::wrapexcept<boost::property_tree::ptree_bad_path>' what(): No such node (speed) Aborted
This is the .gpx file, which I'm using, it doesn't have speed node unfortunately:
<?xml version="1.0" encoding="utf-8"?> <gpx version="1.0" creator="ExifTool 12.87" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> <trk> <number>1</number> <trkseg> <trkpt lat="50.4830322265625" lon="18.0480102539062"> <time>2024-05-01T05:50:38Z</time> </trkpt> <trkpt lat="50.4830973307292" lon="18.0474914550781"> <time>2024-05-01T05:50:39Z</time> </trkpt> <trkpt lat="50.4831624348958" lon="18.0469685872396"> <time>2024-05-01T05:50:40Z</time> </trkpt> <trkpt lat="50.4832112630208" lon="18.0464335123698"> <time>2024-05-01T05:50:41Z</time> </trkpt> <trkpt lat="50.4832682291667" lon="18.0458841959635"> <time>2024-05-01T05:50:42Z</time> </trkpt> <trkpt lat="50.4833170572917" lon="18.0453186035156"> <time>2024-05-01T05:50:43Z</time> </trkpt> <trkpt lat="50.4833740234375" lon="18.044736735026"> <time>2024-05-01T05:50:44Z</time> </trkpt> <trkpt lat="50.4834309895833" lon="18.0441446940104"> <time>2024-05-01T05:50:45Z</time> </trkpt> <trkpt lat="50.4834798177083" lon="18.0435424804688"> <time>2024-05-01T05:50:46Z</time> </trkpt> <trkpt lat="50.4835205078125" lon="18.0429361979167"> <time>2024-05-01T05:50:47Z</time> </trkpt> <trkpt lat="50.4835530598958" lon="18.042323811849"> <time>2024-05-01T05:50:48Z</time> </trkpt> <trkpt lat="50.4835774739583" lon="18.041709391276"> <time>2024-05-01T05:50:49Z</time> </trkpt> <trkpt lat="50.4836018880208" lon="18.0410949707031"> <time>2024-05-01T05:50:50Z</time> </trkpt> <trkpt lat="50.4836100260417" lon="18.0404764811198"> <time>2024-05-01T05:50:51Z</time> </trkpt> <trkpt lat="50.4836181640625" lon="18.0398559570313"> <time>2024-05-01T05:50:52Z</time> </trkpt> <trkpt lat="50.4836181640625" lon="18.0392374674479"> <time>2024-05-01T05:50:53Z</time> </trkpt> <trkpt lat="50.4836181640625" lon="18.0386169433594"> <time>2024-05-01T05:50:54Z</time> </trkpt> <trkpt lat="50.4836100260417" lon="18.0379964192708"> <time>2024-05-01T05:50:55Z</time> </trkpt> <trkpt lat="50.48359375" lon="18.0373758951823"> <time>2024-05-01T05:50:56Z</time> </trkpt> <trkpt lat="50.4835693359375" lon="18.0367553710938"> <time>2024-05-01T05:50:57Z</time> </trkpt> <trkpt lat="50.483544921875" lon="18.0361368815104"> <time>2024-05-01T05:50:58Z</time> </trkpt> <trkpt lat="50.4835123697917" lon="18.0355183919271"> <time>2024-05-01T05:50:59Z</time> </trkpt> <trkpt lat="50.4834716796875" lon="18.034901936849"> <time>2024-05-01T05:51:00Z</time> </trkpt> <trkpt lat="50.4834309895833" lon="18.0342834472656"> <time>2024-05-01T05:51:01Z</time> </trkpt> <trkpt lat="50.4833902994792" lon="18.0336669921875"> <time>2024-05-01T05:51:02Z</time> </trkpt> <trkpt lat="50.4833333333333" lon="18.0330525716146"> <time>2024-05-01T05:51:03Z</time> </trkpt> <trkpt lat="50.4832763671875" lon="18.0324422200521"> <time>2024-05-01T05:51:04Z</time> </trkpt> <trkpt lat="50.483203125" lon="18.0318318684896"> <time>2024-05-01T05:51:05Z</time> </trkpt> <trkpt lat="50.4831136067708" lon="18.0312276204427"> <time>2024-05-01T05:51:06Z</time> </trkpt> <trkpt lat="50.4830240885417" lon="18.0306233723958"> <time>2024-05-01T05:51:07Z</time> </trkpt> <trkpt lat="50.4829427083333" lon="18.030019124349"> <time>2024-05-01T05:51:08Z</time> </trkpt> <trkpt lat="50.4828531901042" lon="18.0294128417969"> <time>2024-05-01T05:51:09Z</time> </trkpt> <trkpt lat="50.4827718098958" lon="18.0288045247396"> <time>2024-05-01T05:51:10Z</time> </trkpt> <trkpt lat="50.4826822916667" lon="18.0281941731771"> <time>2024-05-01T05:51:11Z</time> </trkpt> <trkpt lat="50.4826009114583" lon="18.027587890625"> <time>2024-05-01T05:51:12Z</time> </trkpt> <trkpt lat="50.48251953125" lon="18.0269877115885"> <time>2024-05-01T05:51:13Z</time> </trkpt> <trkpt lat="50.4824381510417" lon="18.0263956705729"> <time>2024-05-01T05:51:14Z</time> </trkpt> <trkpt lat="50.4823567708333" lon="18.0258138020833"> <time>2024-05-01T05:51:15Z</time> </trkpt> <trkpt lat="50.4822916666667" lon="18.0252461751302"> <time>2024-05-01T05:51:16Z</time> </trkpt> <trkpt lat="50.4822265625" lon="18.0246907552083"> <time>2024-05-01T05:51:17Z</time> </trkpt> <trkpt lat="50.4821695963542" lon="18.0241455078125"> <time>2024-05-01T05:51:18Z</time> </trkpt> <trkpt lat="50.4821207682292" lon="18.0236104329427"> <time>2024-05-01T05:51:19Z</time> </trkpt> <trkpt lat="50.482080078125" lon="18.0230834960938"> <time>2024-05-01T05:51:20Z</time> </trkpt> <trkpt lat="50.4820475260417" lon="18.022568766276"> <time>2024-05-01T05:51:21Z</time> </trkpt> <trkpt lat="50.4820231119792" lon="18.0220621744792"> <time>2024-05-01T05:51:22Z</time> </trkpt> <trkpt lat="50.4820068359375" lon="18.0215616861979"> <time>2024-05-01T05:51:23Z</time> </trkpt> <trkpt lat="50.4819905598958" lon="18.0210632324219"> <time>2024-05-01T05:51:24Z</time> </trkpt> <trkpt lat="50.481982421875" lon="18.020566813151"> <time>2024-05-01T05:51:25Z</time> </trkpt> <trkpt lat="50.481982421875" lon="18.020068359375"> <time>2024-05-01T05:51:26Z</time> </trkpt> <trkpt lat="50.481982421875" lon="18.0195719401042"> <time>2024-05-01T05:51:27Z</time> </trkpt> <trkpt lat="50.4819905598958" lon="18.0190734863281"> <time>2024-05-01T05:51:28Z</time> </trkpt> <trkpt lat="50.4820068359375" lon="18.0185770670573"> <time>2024-05-01T05:51:29Z</time> </trkpt> <trkpt lat="50.48203125" lon="18.0180847167969"> <time>2024-05-01T05:51:30Z</time> </trkpt> <trkpt lat="50.4820556640625" lon="18.0175964355469"> <time>2024-05-01T05:51:31Z</time> </trkpt> <trkpt lat="50.482080078125" lon="18.0171122233073"> <time>2024-05-01T05:51:32Z</time> </trkpt> <trkpt lat="50.4821207682292" lon="18.0166361490885"> <time>2024-05-01T05:51:33Z</time> </trkpt> <trkpt lat="50.4821614583333" lon="18.0161641438802"> <time>2024-05-01T05:51:34Z</time> </trkpt> <trkpt lat="50.4822021484375" lon="18.0157002766927"> <time>2024-05-01T05:51:35Z</time> </trkpt> <trkpt lat="50.4822509765625" lon="18.0152425130208"> <time>2024-05-01T05:51:36Z</time> </trkpt> <trkpt lat="50.4823079427083" lon="18.0147969563802"> <time>2024-05-01T05:51:37Z</time> </trkpt> </trkseg> </trk> </gpx>
Can you please help?
Use case:
a cyclist stops riding in one location, stops the gps recording, then resumes riding and restarts the gps in another location.
Current behavior:
the map will show a straight line between the last gpx entry from the first recording and the first entry of the second recording. The cumulative distance will include this fake line.
Desired behavior:
do not show the straight line (there should be a gap) and do not count it in the distance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.