feat: add Grid.toLonLat function
This commit is contained in:
@@ -214,6 +214,14 @@ let toWebMercator (coordsys: CoordinateSystem) (grid: Grid) =
|
||||
Log.Debug $"Reprojected grid: {s.ElapsedMilliseconds} ms"
|
||||
g
|
||||
|
||||
let toLonLat (coordsys: CoordinateSystem) (grid: Grid) =
|
||||
let toLonLat = makeTransform coordsys CoordSys.WGS84
|
||||
let s = System.Diagnostics.Stopwatch.StartNew()
|
||||
let g = grid |> projectGrid toLonLat.project
|
||||
s.Stop()
|
||||
Log.Debug $"Reprojected grid: {s.ElapsedMilliseconds} ms"
|
||||
g
|
||||
|
||||
let private chomp (l: string) = l.Split ' ' |> Array.filter ((<>) "")
|
||||
|
||||
// TODO: pattern match and compare sizes for more flex
|
||||
|
||||
Reference in New Issue
Block a user