tkrajina / gpxpy

gpx-py is a python GPX parser. GPX (GPS eXchange Format) is an XML based file format for GPS tracks.
Apache License 2.0
987 stars 223 forks source link

Fixing issue in get_bounds with one bound being equal to zero #257

Open kschweiger opened 1 year ago

kschweiger commented 1 year ago

When using the get_bounds method on a track which has bounds falling on latitude or longitude zero, the method returns None instead of the correct bound object. See test added in PR, which would fail in current version of gpxpy.