Skip to content

Commit

Permalink
🤖 Format .jl files (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: eliascarv <[email protected]>
  • Loading branch information
github-actions[bot] and eliascarv authored Jun 28, 2024
1 parent ca6e81c commit a47dd35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/crs/projected.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit a47dd35

Please sign in to comment.