Skip to content

Implement toBounds() collector #97

@jenetics

Description

@jenetics

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());

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions