tkrajina / srtm.py

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

geo_elevation_data.get_image: is being scaled by height #40

Open APethick opened 6 years ago

APethick commented 6 years ago

The function get_image with the tag 'array' is being scaled by height for both longitude and latitude.

longitude = longitude_from + float(column) / height * (longitude_to - longitude_from)

correction should be:

longitude = longitude_from + float(column) / width * (longitude_to - longitude_from)

Cheers!