tkrajina / srtm.py

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

GPX file with elevations can not be written if input GPX file path contains upper case characters #5

Closed olivierfriard closed 10 years ago

olivierfriard commented 10 years ago

cat ./gpxelevations /home/olivier/Dropbox/src/python/osm-geoloc/gpx_map/mercantour_wo_elevation.gpx

-> no problem with file path

./gpxelevations /home/olivier/Dropbox/src/python/osm-geoloc/gpx_map/mercantour_wo_elevation.gpx Traceback (most recent call last): File "./gpxelevations", line 58, in with open(file_name, 'w') as output_f: IOError: [Errno 2] No such file or directory: '/home/olivier/dropbox/src/python/osm-geoloc/gpx_map/mercantour_wo_elevation_with_elevations.gpx'

The upper case character in the file path returned is replaced by the corresponfing lower case character

tkrajina commented 10 years ago

Fixed (https://github.com/tkrajina/srtm.py/commit/fe839030df04417566a2d28360d16ec43f3ec149).

Dovrebbe funzionare adesso, puoi provare?

olivierfriard commented 10 years ago

OK, it is fixed