-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes Hgt.bilinear returns artefacts #33
Comments
According to the Nasa's documentation, voids are flagged with -32768.
Maybe you should consider 0 or a near value when the value is -32768. |
Thank you. I think it's voids. |
I wrote a module based on node-hgt that uses the Nasa's data: https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/ You can test it: https://github.com/rapomon/srtm-elevation |
Thanks for reporting, you are correct, the code should filter out no data values ( I'm not actively using or working on this project, so contributions to fix this are welcome, otherwise I hope I will get around to do it myself sooner or later. |
I use SyncTileSet. It happens that getElevation() returns wrong data. Example:
Lat: 49.408558
Lon: 20.433394
This is console.log's output from Hgt.bilinear:
In this case getElevation() returns -10265.78
Another example:
Lat: 49.408558
Lon: 20.432394
I've tried download .hgt files from http://www.viewfinderpanoramas.org/ and https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Eurasia/
It does not matter. The same.
The text was updated successfully, but these errors were encountered: