rpc 参数求解

This commit is contained in:
nuknal
2024-08-20 18:17:22 +08:00
parent ea23839bf2
commit 239d2787e3
4 changed files with 493 additions and 11 deletions

23
pkg/dem/dem_test.go Normal file
View File

@@ -0,0 +1,23 @@
package dem_test
import (
"testing"
"github.com/airbusgeo/godal"
"starwiz.cn/sjy01/image-proc/pkg/dem"
)
func init() {
godal.RegisterAll()
}
func TestDem(t *testing.T) {
t.Log("TestDem")
d := dem.NewDem1Km("../../dem/gdlebm.tif")
// 珠穆朗玛 经纬度27°5917″ N 86°5531″ E
elv := d.Elevation(86+55.0/60.0+31.0/3600.0, 27+59.0/60.0+17.0/3600.0)
t.Log("elv:", elv)
if elv < 8000 {
t.Fail()
}
}