tkrajina / go-elevations

SRTM parser for golang
Apache License 2.0
20 stars 5 forks source link

When a query falls between points- averaging? #4

Open lumin8 opened 3 years ago

lumin8 commented 3 years ago

When a query falls between two/more points, which point does your code select? What/how might you suggest to grab one/more points and average?

lumin8 commented 3 years ago

Amending the above question, I can see now it defaults to the next (ceiling) row / column, or can be amended to select either.

I'm looking in to grabbing three coordinates that define a plane bounding the point and projecting the elevation. If you have any advise on adding that functionality in, please holler! If I can figure an elegant way to do this I'll consider a PR. Thanks ~

inode64 commented 1 year ago

In a fork https://github.com/dave/go-elevations/commit/9b9ad5e9dad815ed04f09e54d304c0804f5e44ea they have added that functionality, but I don't know if it will be correct or more tests need to be done