We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The GPX definition allows to create empty objects like
final GPX gpx = GPX.builder() .metadata(md -> {}) .addTrack(track -> {}) .addTrack(track -> track .addSegment(segment -> {}) .addSegment(segment -> segment .addPoint(wp -> wp.ele(12).lat(21).lon(23)))) .build(); GPX.write(gpx, System.out, " ");
This leads to empty elements in the serialized GPX file.
<?xml version="1.0" encoding="UTF-8"?> <gpx version="1.1" creator="JPX - https://jenetics.github.io/jpx" xmlns="http://www.topografix.com/GPX/1/1"> <metadata></metadata> <trk></trk> <trk> <trkseg></trkseg> <trkseg> <trkpt lat="21.0" lon="23.0"> <ele>12.0</ele> </trkpt> </trkseg> </trk> </gpx>
The files are valid, but empty elements doesn't add additional information. The library should omit empty objects when writing them into a file.
The text was updated successfully, but these errors were encountered:
#17: Implement filter for removing empty GPX elements.
21b18ac
Merge pull request #24 from jenetics/issues/JPX-17-remove_empty_elements
ba6ebca
#17: Implement filter for removing empty GPX elements
Merged into r1.1.0 branch.
Sorry, something went wrong.
jenetics
No branches or pull requests
The GPX definition allows to create empty objects like
This leads to empty elements in the serialized GPX file.
The files are valid, but empty elements doesn't add additional information. The library should omit empty objects when writing them into a file.
The text was updated successfully, but these errors were encountered: