Repository: JuliaEarth/CoordRefSystems.jl (julia)

Issue:
ADD support for  EPSG:29902 - TM65 / Irish Grid
Hi,

Thanks for creating such a nice and usefull software. I will be more than delighted if you could help to introduce **EPSG:29902 - TM65 / Irish Grid**.

**Units:** meter
**Type:** Projected
**Method:** Transverse Mercator
**Celestial Body:** earth
**Reference:** Static (relies on a datum which is plate-fixed)

Many thanks for any help you may provide,

Joseph

Pull request description:
Fix #318

Patch:
diff --git a/src/get.jl b/src/get.jl
index ea6bdd2f..ec801adf 100644
--- a/src/get.jl
+++ b/src/get.jl
@@ -46,6 +46,30 @@ end
 # IMPLEMENTATIONS
 # ----------------
 
+# To map a EPSG{code} to a CRS type, please go to
+# https://epsg.org/search/by-name and type the code
+# in the search box.
+#
+# Check the CRSs tab of the result and click on the
+# desired entry in the table. You will be redirected
+# to a page with clickable items.
+#
+# You need to find the ellipsoid inside the datum item
+# and the conversion parameters of the projection in case
+# of projected coordinates.
+#
+# Double check the parameters stored in the EPSG database
+# using the projinfo utility that is shipped with PROJ:
+#
+# shell> projinfo EPSG:5070
+#
+# If the sign of some parameter differs, for example lon_0=8
+# in the EPSG database and lon_0=-8 in the projinfo output,
+# please use the projinfo output.
+#
+# If the angle parameters are given in sexagesimal DMS in
+# the EPSG database, please use the projinfo output.
+
 @crscodes shift(
   TransverseMercator{1.0000067,31.734394°,Israel1993},
   lonₒ=35.204517°,
@@ -100,9 +124,12 @@ end
 @crscodes shift(TransverseMercator{0.9996,0.0°,ETRFLatest}, lonₒ=9.0°, xₒ=500000.0m, yₒ=0.0m) EPSG{25832}
 @crscodes shift(TransverseMercator{0.9996012717,49.0°,OSGB36}, lonₒ=-2.0°, xₒ=400000.0m, yₒ=-100000.0m) EPSG{27700}
 @crscodes shift(TransverseMercator{0.9996,0.0°,GDA94}, lonₒ=147.0°, xₒ=500000.0m, yₒ=10000000.0m) EPSG{28355}
-@crscodes shift(TransverseMercator{1.000035,53.5°,Ire65}, lonₒ=-8.0°, xₒ=200000.0m, yₒ=250000.0m) EPSG{29903}
-# For EPSG:31370, the lat/lon projection parameters are given in sexagesimal DMS in the EPSG database.
-# To avoid unit conversion, the literal parameters are those obtained with the PROJ command `projinfo EPSG:31370`.
+@crscodes shift(
+  TransverseMercator{1.000035,53.5°,Ire65},
+  lonₒ=-8.0°,
+  xₒ=200000.0m,
+  yₒ=250000.0m
+) EPSG{29902} EPSG{29903}
 @crscodes shift(
   LambertConic{90.0°,51.1666672333333°,49.8333339°,BD72},
   lonₒ=4.36748666666667°,


Test patch:
diff --git a/test/get.jl b/test/get.jl
index 8454b491..445a2f6e 100644
--- a/test/get.jl
+++ b/test/get.jl
@@ -80,6 +80,7 @@
   )
   gettest(
     CoordRefSystems.shift(TransverseMercator{1.000035,53.5°,Ire65}, lonₒ=-8.0°, xₒ=200000.0m, yₒ=250000.0m),
+    EPSG{29902},
     EPSG{29903}
   )
   gettest(