From a47dd35c55183f4338425776ae2ae9b8031d64ee Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:42:08 -0300 Subject: [PATCH] :robot: Format .jl files (#96) Co-authored-by: eliascarv <73039601+eliascarv@users.noreply.github.com> --- src/crs/projected.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crs/projected.jl b/src/crs/projected.jl index 6facf0e..1832d5e 100644 --- a/src/crs/projected.jl +++ b/src/crs/projected.jl @@ -95,8 +95,10 @@ Base.convert(::Type{Cartesian}, coords::Projected{Datum}) where {Datum} = conver Base.convert(::Type{Cartesian{Datum,2}}, coords::Projected{Datum}) where {Datum} = Cartesian{Datum}(coords.x, coords.y) Base.convert(C::Type{<:Projected{Datum}}, coords::Cartesian{Datum,2}) where {Datum} = C(coords.x, coords.y) -Base.convert(::Type{Cartesian{Datum,3}}, coords::Projected{Datum}) where {Datum} = convert(Cartesian, convert(LatLon, coords)) -Base.convert(C::Type{<:Projected{Datum}}, coords::Cartesian{Datum,3}) where {Datum} = convert(C, convert(LatLon, coords)) +Base.convert(::Type{Cartesian{Datum,3}}, coords::Projected{Datum}) where {Datum} = + convert(Cartesian, convert(LatLon, coords)) +Base.convert(C::Type{<:Projected{Datum}}, coords::Cartesian{Datum,3}) where {Datum} = + convert(C, convert(LatLon, coords)) # projection conversion with same datum function Base.convert(::Type{Cₜ}, coords::Cₛ) where {Datum,Cₜ<:Projected{Datum},Cₛ<:Projected{Datum}}