diff --git a/Project.toml b/Project.toml index d3fd3da..bc345a8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Proj4" uuid = "9a7e659c-8ee8-5706-894e-f68f43bc57ea" -version = "0.7.5" +version = "0.7.6" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/src/coord.jl b/src/coord.jl index 54198a4..826d662 100644 --- a/src/coord.jl +++ b/src/coord.jl @@ -141,7 +141,7 @@ end function (trans::Transformation)(coord::StaticVector{4,<:AbstractFloat}) T = similar_type(coord) - coord = SVector{4, Float64}(coord[1], coord[2], coord[3], Inf) + coord = SVector{4, Float64}(coord[1], coord[2], coord[3], coord[4]) p = proj_trans(trans.pj, PJ_FWD, coord) return T(p) end diff --git a/test/proj6api.jl b/test/proj6api.jl index 6c53eeb..a43a65f 100644 --- a/test/proj6api.jl +++ b/test/proj6api.jl @@ -143,6 +143,9 @@ end @test target_crs isa Ptr{Nothing} trans = Proj4.Transformation(source_crs, target_crs) + # Check that altitude and time inputs are correctly forwarded from the transformation + @test trans(SA_F64[52.16, 5.39, 5, 2020]) ≈ SA[155191.3538124342, 463537.1362732911, 5.0, 2020.0] + a = Proj4.proj_coord(52.16, 5.39) b = Proj4.proj_trans(trans.pj, Proj4.PJ_FWD, a) @test a != b