Skip to content

Sometimes Hgt.bilinear returns artefacts #33

Description

@memarv

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:

row = 490.2695999999992
col = 520.0727999999998
rowLow = 490
rowHi = 491
rowFrac = 0.2695999999991727
colLow = 520
colHi = 521
colFrac = 0.07279999999980191
v00 = 459
v10 = -32768
v11 = -32768
v01 = -32768
v1 = -1959.925599993418
v2 = -32768

In this case getElevation() returns -10265.78

Another example:
Lat: 49.408558
Lon: 20.432394

row = 490.2695999999992
col = 518.8727999999983
rowLow = 490
rowHi = 491
rowFrac = 0.2695999999991727
colLow = 518
colHi = 519
colFrac = 0.8727999999982785
v00 = 459
v10 = 475
v11 = -32768
v01 = 497
v1 = 472.96479999997246
v2 = -28536.691999942734

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions