node-hgt icon indicating copy to clipboard operation
node-hgt copied to clipboard

hgt files not found

Open mrcheidel opened this issue 7 years ago • 1 comments

Hi mate, I'm trying this project, but don't found some files like N04E001.hgt

How to reproduce: I looking for the elevation of lat, lng = 41.7323687,0.3103932

When I debug the project, I found that you navigate to http://www.imagico.de/map/dem_json.php?date=&lon=1&lat=4&lonE=1&latE=4&vf=1

And hav the follow result: [{"name":"B31.zip","title":"","link":"http://www.viewfinderpanoramas.org/dem3/B31.zip","date":"2012-05-28","lon_start":"0","lat_start":"4","lon_end":"6","lat_end":"8","type":"2"}]

Inside the http://www.viewfinderpanoramas.org/dem3/B31.zip don't exist the N04E001.hgt

Do you have other source hgt file repository?

Do you think about use the Mapzen on AWS files? https://aws.amazon.com/es/public-datasets/terrain/

Exist any bug in the code? I see on your elevation-service project that's working ok

In this service all run ok https://github.com/perliedman/elevation-service

thanks of lot Claudio

mrcheidel avatar Mar 08 '18 22:03 mrcheidel

Hi @mrcheidel,

thanks for the report, and also great work with the investigation into this issue!

I've seen similar reports before, but haven't found the time to dig into it, but from what you're saying, it does look like a problem with Imagico's search service, that returns a result that does not include the actual tile. At least from what you write, it doesn't sound like an issue with node-hgt, but I can't say for certain.

I have look into using Mapzen/AWS Terrain tiles, I think for the future it would be a much better option, but I haven't implemented it myself. I would be very happy to include a new downloader for AWS terrain tiles to replace the default in TileSet. At the moment it doesn't look like I will find the time to do it myself any time soon.

perliedman avatar Mar 09 '18 06:03 perliedman