For some GPX files, the Bounds metadata is missing. Add a collector, which allows to collect the boundaries of a given WayPoint stream.
static Collector<WayPoint, ?, Bounds> toBounds();
final Bounds bounds = gpx.tracks()
.flatMap(Track::segments)
.flatMap(TrackSegment::points)
.collect(toBounds());
For some GPX files, the
Boundsmetadata is missing. Add a collector, which allows to collect the boundaries of a givenWayPointstream.