Skip to content

Commit ac85c32

Browse files
Map EPSG codes for UTM zones on ED50 datum (#330)
* add EPSG codes of UTM on ED50 and ED50(ED77) datum * fixed ED50 string name * comments removed * keep only ED50 * removed ED77 * fix version of esriid2code
1 parent 6f63cc5 commit ac85c32

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

src/get.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,8 @@ end
158158
@crscodes utmnorth(23, datum=SIRGAS2000) EPSG{6210}
159159
@crscodes utmnorth(24, datum=SIRGAS2000) EPSG{6211}
160160
@crscodes utmsouth(26, datum=SIRGAS2000) EPSG{5396}
161+
162+
for zone in 28:38
163+
NorthCode = 23000 + zone
164+
@eval @crscodes utmnorth($zone, datum=ED50) EPSG{$NorthCode}
165+
end

src/strings.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const esriid2code = Dict(
5353
"South_Pole_Orthographic" => ESRI{102037},
5454
"TM75_Irish_Grid" => EPSG{29903},
5555
"WGS_1984_Plate_Carree" => EPSG{32662},
56-
"WGS_1984_UTM_Zone_33N" => EPSG{32633},
5756
"WGS_1984_Web_Mercator_Auxiliary_Sphere" => EPSG{3857},
5857
"WGS_1984_World_Mercator" => EPSG{3395},
5958
"World_Behrmann" => ESRI{54017},
@@ -79,6 +78,11 @@ for zone in 17:25
7978
esriid2code["SIRGAS_2000_UTM_Zone_$(zone)S"] = EPSG{SouthCode}
8079
end
8180

81+
for zone in 28:38
82+
NorthCode = 23000 + zone
83+
esriid2code["ED_1950_UTM_Zone_$(zone)N"] = EPSG{NorthCode}
84+
end
85+
8286
"""
8387
CoordRefSystems.string2code(string)
8488

test/strings.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
crsstringtest(EPSG{SouthCode})
6363
end
6464

65+
for zone in 28:38
66+
NorthCode = 23000 + zone
67+
crsstringtest(EPSG{NorthCode})
68+
end
69+
6570
crsstringtest(EPSG{25832})
6671
crsstringtest(EPSG{27700})
6772
crsstringtest(EPSG{29903})

0 commit comments

Comments
 (0)