Opened 8 years ago

Last modified 5 years ago

#2900 new defect

31 EPSG codes present in pcs.csv "not found in EPSG support files"

Reported by: msieczka Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SRS Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

The following 31 EPSG codes:

2218
2221
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2963
2985
2986
3052
3053
3139
3144
3145
3173
3295
3993
5819
5820
5821
32600
32663
32700

which are valid according to pcs.csv:

$ grep "^2218,\|^2221,\|^2296,\|^2297,\|^2298,\|^2299,\|^2300,\|^2301,\|^2302,\|^2303,\|^2304,\|^2305,\|^2306,\|^2307,\|^2963,\|^2985,\|^2986,\|^3052,\|^3053,\|^3139,\|^3144,\|^3145,\|^3173,\|^3295,\|^3993,\|^5819,\|^5820,\|^5821,\|^32600,\|^32663,\|^32700," /usr/local/share/gdal/pcs.csv

2218,"Scoresbysund 1952 / Greenland zone 5 east",9001,4195,18425,9826,1,0,4501,8801,70.3,9110,8802,-24,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2221,"Scoresbysund 1952 / Greenland zone 6 east",9001,4195,18426,9826,1,0,4501,8801,67.3,9110,8802,-32,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2296,"Ammassalik 1958 / Greenland zone 7 east",9001,4196,18427,9826,1,0,4501,8801,64.3,9110,8802,-40,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2297,"Qornoq 1927 / Greenland zone 1 east",9001,4194,18421,9826,1,1,4501,8801,82.3,9110,8802,-40,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2298,"Qornoq 1927 / Greenland zone 2 east",9001,4194,18422,9826,1,1,4501,8801,79.3,9110,8802,-24,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2299,"Qornoq 1927 / Greenland zone 2 west",9001,4194,18432,9826,1,0,4501,8801,79.3,9110,8802,-64,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2300,"Qornoq 1927 / Greenland zone 3 east",9001,4194,18423,9826,1,1,4501,8801,76.3,9110,8802,-20,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2301,"Qornoq 1927 / Greenland zone 3 west",9001,4194,18433,9826,1,0,4501,8801,76.3,9110,8802,-64,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2302,"Qornoq 1927 / Greenland zone 4 east",9001,4194,18424,9826,1,1,4501,8801,73.3,9110,8802,-24,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2303,"Qornoq 1927 / Greenland zone 4 west",9001,4194,18434,9826,1,0,4501,8801,73.3,9110,8802,-52,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2304,"Qornoq 1927 / Greenland zone 5 west",9001,4194,18435,9826,1,0,4501,8801,70.3,9110,8802,-52,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2305,"Qornoq 1927 / Greenland zone 6 west",9001,4194,18436,9826,1,0,4501,8801,67.3,9110,8802,-52,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2306,"Qornoq 1927 / Greenland zone 7 west",9001,4194,18437,9826,1,0,4501,8801,64.3,9110,8802,-52,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2307,"Qornoq 1927 / Greenland zone 8 east",9001,4194,18428,9826,1,0,4501,8801,61.3,9110,8802,-48,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
2963,"Lisbon 1890 (Lisbon) / Portugal Bonne",9001,4904,19979,9828,1,0,6509,8801,39.4,9110,8802,1,9110,8806,0,9001,8807,0,9001,,,,,,,,,
2985,"Petrels 1972 / Terre Adelie Polar Stereographic",9001,4636,19983,9830,1,0,4492,8826,300000,9001,8827,200000,9001,8832,-67,9102,8833,140,9102,,,,,,,,,
2986,"Perroud 1950 / Terre Adelie Polar Stereographic",9001,4637,19983,9830,1,0,4492,8826,300000,9001,8827,200000,9001,8832,-67,9102,8833,140,9102,,,,,,,,,
3052,"Reykjavik 1900 / Lambert 1900",9001,4657,19987,9826,1,0,4491,8801,65,9110,8802,-19.011965,9110,8805,1,9201,8806,0,9001,8807,0,9001,,,,,,
3053,"Hjorsey 1955 / Lambert 1955",9001,4658,19988,9826,1,0,4491,8801,65,9102,8802,-18,9102,8805,1,9201,8806,500000,9001,8807,500000,9001,,,,,,
3139,"Vanua Levu 1915 / Vanua Levu Grid",9098,4748,19878,9833,1,0,4533,8801,-16.15,9110,8802,179.2,9110,8806,1251331.8,9098,8807,1662888.5,9098,,,,,,,,,
3144,"FD54 / Faroe Lambert",9001,4741,19870,9826,1,0,4501,8801,62,9102,8802,-9,9102,8805,1,9201,8806,500000,9001,8807,500000,9001,,,,,,
3145,"ETRS89 / Faroe Lambert",9001,4258,19870,9826,1,0,4501,8801,62,9102,8802,-9,9102,8805,1,9201,8806,500000,9001,8807,500000,9001,,,,,,
3173,"fk89 / Faroe Lambert FK89",9001,4753,19877,9826,1,0,4501,8801,62,9102,8802,-9,9102,8805,1,9201,8806,700000,9001,8807,700000,9001,,,,,,
3295,"Guam 1963 / Yap Islands",9001,4675,15399,9832,1,0,4499,8801,9.324815,9110,8802,138.100748,9110,8806,40000,9001,8807,60000,9001,,,,,,,,,
3993,"Guam 1963 / Guam SPCS",9001,4675,15400,9831,1,0,4499,8801,13.282087887,9110,8802,144.445550254,9110,8806,50000,9001,8807,50000,9001,,,,,,,,,
5819,EPSG topocentric example A,9001,4979,15594,9837,1,0,4461,8834,55,9102,8835,5,9102,8836,0,9001,,,,,,,,,,,,
5820,EPSG topocentric example B,9001,4978,15595,9836,1,0,4461,8837,3771793.97,9001,8838,140253.34,9001,8839,5124304.35,9001,,,,,,,,,,,,
5821,EPSG vertical perspective example,9001,5819,19850,9838,1,0,4461,8834,55,9102,8835,5,9102,8836,200,9001,8840,5900,9036,,,,,,,,,
32600,"WGS 84 / UTM grid system (northern hemisphere)",9001,4326,16000,9824,1,0,4400,8801,0,9102,8805,0.9996,9201,8806,500000,9001,8807,0,9001,8830,-180,9102,8831,6,9102,,,
32663,"WGS 84 / World Equidistant Cylindrical",9001,4326,19846,9842,1,0,4499,8801,0,9102,8806,0,9001,8807,0,9001,8822,0,9102,,,,,,,,,
32700,"WGS 84 / UTM grid system (southern hemisphere)",9001,4326,16100,9824,1,0,4400,8801,0,9102,8805,0.9996,9201,8806,500000,9001,8807,10000000,9001,8830,-180,9102,8831,6,9102,,,

trigger the following error when fed to epsg_tr.py:

$ epsg_tr.py 2303
ERROR 6: EPSG PCS/GCS code 2303 not found in EPSG support files.  Is this a valid
EPSG coordinate system?
Unable to lookup  2303 , either not a valid EPSG
code, or it the EPSG csv files are not accessable.

or testepsg:

$ testepsg epsg:2303
ERROR 6: EPSG PCS/GCS code 2303 not found in EPSG support files.  Is this a valid
EPSG coordinate system?
ERROR 1: Error occured translating epsg:2303.

I reported about that in past: http://n2.nabble.com/a-complete-list-of-GDAL-supported-EPSG-codes-tt2034974.html#a2034981

Change History (4)

comment:1 Changed 8 years ago by Even Rouault

Maciej,

For EPSG:2218, EPSG:2221 and EPSG:2296, the projection method number is 9826 ("Lambert Conic Conformal (West Orientated)") that is not supported by the big switch/case in SetEPSGProjCS() (see output of "CPL_DEBUG= testepsg EPSG:xxxx" provided you compile GDAL with --enable-debug). So in order to support it, someone would have to add support for this projection. For EPSG:3993, this is projection 9831 that isn't handled...

I've also observed that they are absent from the /usr/share/proj/epsg database. I guess it is also because proj.4 doesn't have support for part of the projection definition. So the effort should be done in GDAL and PROJ.4 to have something usable. Here's what I found on my system :

# Scoresbysund 1952 / Greenland zone 5 east
# Unable to translate coordinate system EPSG:2218 into PROJ.4 format.
#

# Scoresbysund 1952 / Greenland zone 6 east
# Unable to translate coordinate system EPSG:2221 into PROJ.4 format.
#

# Ammassalik 1958 / Greenland zone 7 east
# Unable to translate coordinate system EPSG:2296 into PROJ.4 format.
#

# WGS 84 / UTM grid system (southern hemisphere)
# Unable to translate coordinate system EPSG:32700 into PROJ.4 format.
#

comment:2 Changed 8 years ago by Even Rouault

Actually, there is a perfect reason for the EPSG codes unrecognized by GDAL to be absent from /usr/share/proj/epsg : this file is generated from GDAL !

comment:3 Changed 6 years ago by warmerdam

Component: defaultOGR_SRS
Milestone: 1.6.4

remove milestone. issue still outstanding.

comment:4 Changed 5 years ago by jef

Found a few more: 5017|5221|5224|5225|5514|5515|5516

Note: See TracTickets for help on using tickets.