A tool to convert TXT files to GPX files
-
Get jar from releases
-
Build jar from source
Java 8 and Maven >=3.3 are required.
Download:
git clone [email protected]:miantiao5115/t2gpx.git
Then ,import this maven project to your IDE and build.
Build:
mvn package -DskipTests
When you get a jar file, you can run it with a txt file path, then you will get a corresponding gpx file in the same file path.
eg:
java -jar t2gpx-1.0.jar C:\User\miantiao\test.txt
In the same file path, you can see a gpx file named test.gpx.
- About txt file
The first three columns of the TXT file must be latitude, longitude, GPS time in sequence, and the columns must be separated by ',', it also has no column header. eg: test.txt
-
About gpx file
the gpx file complies with graphhopper schema. eg: test.gpx