[MetaCRS] failed epsg wkt (geotools)

Christopher Schmidt crschmidt at metacarta.com
Tue Dec 16 14:00:26 EST 2008


On Tue, Dec 16, 2008 at 11:41:17AM +0100, Mikael Rittri wrote:
> Thanks for your efforts. 
> But may I call attention to eleven coord. ref. systems that are wrong 
> on SpatialReference.org. (I am not sure what causes the errors.) 
> 
> First: 
> 
> * EPSG:3388, Pulkovo 1942 / Caspian Sea Mercator
> 
> According to EPSG, the projection method is "Mercator (2SP)", coord op method 9805, 
> with a standard parallel at 42°N.
> But on SpatialReference.org, the projection method in OGC WKT is given as "Mercator_1SP", 
> and the standard parallel is absent from the parameters.
> 
> The other ten that are wrong are: 
> 
> * EPSG:2056,  "CH1903+ / LV95"
> * EPSG:2057,  "Rassadiran / Nakhl e Taqi"
> * EPSG:21780, "Bern 1898 (Bern) / LV03C"
> * EPSG:21781, "CH1903 / LV03"
> * EPSG:23700, "HD72 / EOV"
> * EPSG:29700, "Tananarive (Paris) / Laborde Grid",
> * EPSG:29702, "Tananarive (Paris) / Laborde Grid approximation"
> * EPSG:29871, "Timbalai 1948 / RSO Borneo (ch)"
> * EPSG:29872, "Timbalai 1948 / RSO Borneo (ft)"
> * EPSG:29873, "Timbalai 1948 / RSO Borneo (m)"
> 
> According to EPSG, all these use the projection method "Oblique
> Mercator", coord op method 9815.  But on SpatialReference.org, these
> ten CRSs are given the projection method "Hotine_Oblique_Mercator",
> which is a different method (coord op method 9812).   

So, for a third opinion, I've just compiled CS-Map, and slightly
modified its tests to get out WKT... and found that if I use the
"GeoTools" flavor of WKT, I get the following failures:

crschmidt at helios:~/csmap/Test$ ./CS_Test -d../Dictionaries/ -v -b -tJ  >
epsg.wkt
21780 failed: 
21781 failed:  is not a supported projection.
2056 failed:  is not a supported projection.
23700 failed:  is not a supported projection.
24571 failed:  is not a supported projection.
26731 failed:  is not a supported projection.
26931 failed: AK-1 :: Y axis azimuth specification is invalid.
3078 failed: AK83-1 :: Y axis azimuth specification is invalid.
3079 failed: MI83-OB :: Y axis azimuth specification is invalid.
27291 failed
27292 failed
2057 failed: WKT conversion failed; the WKT equivalent for the SearsYard
unit is unknown.
2065 failed:  is not a supported projection.
29871 failed: Datum definition Katastralni does not exist.
29872 failed:  is not a supported projection.
29873 failed:  is not a supported projection.
30200 failed
2314 failed

I notice that these map pretty well to the list above -- most of your
list of 10 above fits into it. 

Using the "ESRI" WKT flavor, for 2056, we get:

PROJCS["CH1903+_LV95",GEOGCS["GCS_CH1903+",DATUM["D_CH1903+",SPHEROID["Bessel_1841",6377397.155,299.15281535],TOWGS84[674.3740,15.0560,405.3460,0.000000,0.000000,0.000000,0.00000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["False_Easting",2600000.000],PARAMETER["False_Northing",1200000.000],PARAMETER["Scale_Factor",1.000000000000],PARAMETER["Azimuth",90.00000000000000],PARAMETER["Longitude_Of_Center",7.43958333333333],PARAMETER["Latitude_Of_Center",46.95240555555556],UNIT["Meter",1.00000000000000]]

Which has a projection of: 

  Hotine_Oblique_Mercator_Azimuth_Center

Which is... neither o the ones you mentioned, exactly. So I'll admit
that I'm a bit confused now :)

Note that I'd never compiled CS-Map before this afternoon, so I don't
know if I might be breaking something, but I'm somewhat proud of myself
for getting somewhere with it :)


> It is true that each instance of "Oblique Mercator" can be reformulated as an instance of 
> "Hotine Oblique Mercator", but this requires that you adjust the False Easting and False Northing,
> which has not been done.  EPSG Guidance Note 7.2 gives the example of "Timbalai 1948 / R.S.O. Borneo (m)",
> which has 
>     Easting at projection centre  (EC) = 590476.87 metres
>     Northing at projection centre (NC) = 442857.65 metres
> 
> This can be reformulated as an instance of "Hotine Oblique Mercator", but only if you adjust
> these parameters to 
>     False easting (FE) = 0.0 metres
>     False northing (FN) = 0.0 metres
> 
> Note also that some CRSs in the ESPG database do use "Hotine Oblique Mercator", so 
> it is no solution to just replace "Hotine_Oblique_Mercator" by "Oblique_Mercator" 
> everywhere.  The two coord op methods must be distinguished. 
> 
> Best regards,
> 
> --
> Mikael Rittri
> Carmenta AB
> Box 11354
> SE-404 28 Göteborg
> Visitors: Sankt Eriksgatan 5
> SWEDEN
> Tel: +46-31-775 57 37
> Mob: +46-703-60 34 07 
> mikael.rittri at carmenta.com
> www.carmenta.com 
> 
> -----Original Message-----
> From: metacrs-bounces at lists.osgeo.org [mailto:metacrs-bounces at lists.osgeo.org] On Behalf Of Christopher Schmidt
> Sent: den 16 december 2008 00:18
> To: metacrs at lists.osgeo.org
> Subject: [MetaCRS] failed epsg wkt (geotools)
> 
> SpatialReference.org now has a full EPSG database, pulled from the latest EPSG data files, with WKT produced by either GDAL or GeoTools for every code except for the following (along with their error messages from GeoTools):
> 
> 5818 failed:  Unknow axis direction: "Along receiver lines".
> 
> 63266406 failed:  Unsupported unit: 9116
> 63266407 failed:  Unsupported unit: 9117
> 63266408 failed:  Unsupported unit: 9115
> 63266409 failed:  Unsupported unit: 9118 63266410 failed:  Unsupported unit: 9119
> 63266412 failed:  Unsupported unit: 9120
> 63266414 failed:  Unsupported unit: 9116
> 63266415 failed:  Unsupported unit: 9117
> 63266416 failed:  Unsupported unit: 9115
> 63266417 failed:  Unsupported unit: 9118
> 63266418 failed:  Unsupported unit: 9119 63266420 failed:  Unsupported unit: 9120
> 
> 4882 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 4884 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 4886 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 4888 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 4890 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 4892 failed:  Unknow axis direction: "Geocentre > equator/0?E".
> 
> This is mostly just a 'for the record': At some point, I may look into this more to see if these codes should actually exist in some way. 5818 is almost definitely "no", since the scope says "Example only", but the
> 4882 -> 4892 set seems like a clear pattern that bears investigation. 
> 
> If anyone has suggestions as to ways to obtain sane WKT for these remaining codes, I'd love to hear suggestions.
> 
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> MetaCRS mailing list
> MetaCRS at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/metacrs

-- 
Christopher Schmidt
MetaCarta


More information about the MetaCRS mailing list