Ticket #4454 (new defect)

Opened 16 months ago

Last modified 16 months ago

Literal translation of EPSG:9122

Reported by: hobu Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

EPSG:4326 and others have EPSG:9122 as their UNIT. This literally translates to

degree (supplier to define representation)

when pulled from the EPSG tables. Oracle and some others actually *write* this into WKT output, and when I try to get back to GeoTIFF keys with this UNIT, things no longer match and a GeogAngularUnitsGeoKey? is not written into the keys.

I don't know enough about this to determine whether or not the translation really needs to happen in the WKT->GeoTIFF code, or the ImportFromWkt? code. Any ideas Frank?

Change History

Changed 16 months ago by warmerdam

  • component changed from default to OGR_SRS

Howard, can you provide an example WKT?

Changed 16 months ago by hobu

From Oracle's WKTEXT3D column in 11g for EPSG:4326...

` GEOGCS["WGS 84",

DATUM["World Geodetic System 1984",

SPHEROID[

"WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG", "7030"]],

TOWGS84[0, 0, 0, 0, 0, 0, 0], AUTHORITY["EPSG", "6326"]],

PRIMEM["Greenwich", 0.000000, AUTHORITY["EPSG","8901"]], UNIT["degree (supplier to define representation)", 0.0174532925199433, AUTHORITY["EPSG", "9122"]], AXIS["Lat", NORTH], AXIS["Long", EAST], AUTHORITY["EPSG", "4326"]]

`

Note: See TracTickets for help on using tickets.