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

Doesn't handle hgt files of a no standard size.

Open DigNZ opened this issue 6 years ago • 1 comments

E.g., S44W177.hgt is 2801664 bytes instead of the usual 2884802 and that breaks the system.

DigNZ avatar Apr 03 '19 22:04 DigNZ

Hi, to my knowledge there is no way to know the resolution except looking at the file size (https://github.com/perliedman/node-hgt/blob/master/src/hgt.js#L16), so currently there is no way for us to handle a file like that.

I am open to suggestion on how to handle this, PRs welcome if this important to you!

perliedman avatar Apr 08 '19 06:04 perliedman