Skip to content

Commit

Permalink
Add PD83 datum from Germany (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv authored Dec 6, 2024
1 parent a08eb70 commit bc0c2f6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CoordRefSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export
NTF,
NZGD1949,
OSGB36,
PD83,
Potsdam,
RD83,
RGF93v1,
Expand Down
11 changes: 11 additions & 0 deletions src/datums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,17 @@ abstract type OSGB36 <: Datum end

ellipsoid(::Type{OSGB36}) = Airy🌎

"""
PD83
Potsdam Datum/83.
See <https://epsg.org/datum_6746/Potsdam-Datum-83.html>
"""
abstract type PD83 <: Datum end

ellipsoid(::Type{PD83}) = Bessel🌎

"""
Potsdam
Expand Down
1 change: 1 addition & 0 deletions src/get.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ end
@crscode EPSG{4668} LatLon{ED79}
@crscode EPSG{4674} LatLon{SIRGAS2000}
@crscode EPSG{4745} LatLon{RD83}
@crscode EPSG{4746} LatLon{PD83}
@crscode EPSG{4988} Cartesian3D{shift(ITRF{2000}, 2000.4)}
@crscode EPSG{4989} LatLonAlt{shift(ITRF{2000}, 2000.4)}
@crscode EPSG{5070} shift(Albers{23.0°,29.5°,45.5°,NAD83}, lonₒ=-96.0°)
Expand Down
1 change: 1 addition & 0 deletions src/strings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const esriid2code = Dict(
"GCS_North_American_1983" => EPSG{4269},
"GCS_NTF" => EPSG{4275},
"GCS_OSGB_1936" => EPSG{4277},
"GCS_PD/83" => EPSG{4746},
"GCS_RD/83" => EPSG{4745},
"GCS_RGF_1993" => EPSG{4171},
"GCS_SAD_1969_96" => EPSG{5527},
Expand Down
2 changes: 2 additions & 0 deletions test/datums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@

@test ellipsoid(OSGB36) === CoordRefSystems.Airy🌎

@test ellipsoid(PD83) === CoordRefSystems.Bessel🌎

@test ellipsoid(Potsdam) === CoordRefSystems.Bessel🌎

@test ellipsoid(RD83) === CoordRefSystems.Bessel🌎
Expand Down
1 change: 1 addition & 0 deletions test/get.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
gettest(EPSG{4668}, LatLon{ED79})
gettest(EPSG{4674}, LatLon{SIRGAS2000})
gettest(EPSG{4745}, LatLon{RD83})
gettest(EPSG{4746}, LatLon{PD83})
gettest(EPSG{4988}, Cartesian{CoordRefSystems.shift(ITRF{2000}, 2000.4),3})
gettest(EPSG{4989}, LatLonAlt{CoordRefSystems.shift(ITRF{2000}, 2000.4)})
gettest(EPSG{5070}, CoordRefSystems.shift(Albers{23.0°,29.5°,45.5°,NAD83}, lonₒ=-96.0°))
Expand Down
1 change: 1 addition & 0 deletions test/strings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
crsstringtest(EPSG{4674})
crsstringtest(EPSG{4666})
crsstringtest(EPSG{4745})
crsstringtest(EPSG{4746})
crsstringtest(EPSG{4686})
crsstringtest(EPSG{5324})
crsstringtest(EPSG{5527})
Expand Down

0 comments on commit bc0c2f6

Please sign in to comment.