Skip to content

Java Parser to read and write GPX files

License

Notifications You must be signed in to change notification settings

4rne/gpx-parser

 
 

Repository files navigation

gpx-parser

Java Parser for reading and writing GPX files

using base from gpxparser

Follows GPX schema version 1.1

Building

By using ./gradlew build gradle will build the library, sources and javadoc in build/libs.

Example Uses:

Gradle

Add this snippet to your build.gradle, it includes javadoc and sources:

dependencies {
  compile 'com.github.4rne:gpx-parser:master'
}

Or download this jar-library and include it into your classpath: Download JAR

To read GPX file:

GPXParser p = new GPXParser();
FileInputStream in = new FileInputStream("inFile.gpx");
GPX gpx = p.parseGPX(in);

To write to GPX file:

GPXWriter writer = new GPXWriter();
FileOutputStream out = new FileOutputStream("outFile.gpx");
writer.writeGPX(gpx, out);
out.close();

About

Java Parser to read and write GPX files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%