tkrajina / srtm.py

Geo elevation data parser for "The Shuttle Radar Topography Mission" data
Apache License 2.0
240 stars 57 forks source link

Negative elevations (below zero) are not added #16

Closed fbonzon closed 8 years ago

fbonzon commented 8 years ago

It seems a bug prevents negative elevation values (below 0 m) to be added.

E.g. with sample GPX file below_zero.gpx close to Dead Sea, at altitude around −400 m, no elevations are added with the command-line utility:

gpxelevations below_zero.gpx
tkrajina commented 8 years ago

Yes, looks like you're right.

This should fix your problem: fc67fa260c55649ef0e8c90dcc41495cbe11dd1c

fbonzon commented 8 years ago

Many thanks for the fast fix. I confirm this solves the issue.