This commit is contained in:
nuknal
2024-08-27 17:24:07 +08:00
parent 6f2cfa797a
commit ce0a4fc370
7 changed files with 173 additions and 79 deletions

View File

@@ -51,6 +51,7 @@ func (d *Dem1Km) Load() error {
d.hUnit = 180.0 / float32(structure.SizeY)
d.width = structure.SizeX
d.height = structure.SizeY
hDataset.Close()
return nil
}
@@ -97,5 +98,6 @@ func (d *Dem1Km) MinMaxElevationInRect(lng1, lat1, lng2, lat2 float64) (float64,
}
}
}
return minElev, maxElev
}