Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm authored Sep 19, 2024
1 parent a93cbe5 commit adba6c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crs/geographic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ function Base.convert(::Type{GeocentricLatLonAlt{Datum}}, coords::GeocentricLatL
end

function Base.convert(::Type{GeocentricLatLonAlt{Datum}}, coords::LatLonAlt{Datum}) where {Datum}
geocentric = convert(GeocentricLatLon, LatLon{Datum}(coords.lat, coords.lon))
GeocentricLatLonAlt{Datum}(geocentric.lat, geocentric.lon, coords.alt)
lla = convert(GeocentricLatLon, LatLon{Datum}(coords.lat, coords.lon))
GeocentricLatLonAlt{Datum}(lla.lat, lla.lon, coords.alt)
end

function Base.convert(::Type{LatLonAlt{Datum}}, coords::GeocentricLatLonAlt{Datum}) where {Datum}
geodetic = convert(LatLon, GeocentricLatLon{Datum}(coords.lat, coords.lon))
LatLonAlt{Datum}(geodetic.lat, geodetic.lon, coords.alt)
lla = convert(LatLon, GeocentricLatLon{Datum}(coords.lat, coords.lon))
LatLonAlt{Datum}(lla.lat, lla.lon, coords.alt)
end

function Base.convert(::Type{Cartesian{Datum}}, coords::LatLon{Datum}) where {Datum}
Expand Down

0 comments on commit adba6c1

Please sign in to comment.