Opened 13 years ago

Closed 13 years ago

#4223 closed defect (fixed)

Next time the EPSG database is updated, note that a Krovak parameter has been renamed (and renumbered).

Reported by: mikrit Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Hello. This is not yet a problem, but it will turn up when you want to support EPSG version 7.7 and later, so I file this ticket in advance. The Krovak "azimuth" parameter (code 8813) has been renamed to "Co-latitude of cone axis" (code 1036).

Here is the EPSG change request:

Code: EPSG::2010.100
Reporter: Mikael Rittri; Carmenta
Request: Review Krovak method defining parameters
Actions Taken: Added parameter 1036. For methods 1041-43 and 9819 and projections and 5218-20 and 19952, changed parameter code 8813 to 1036.
Entity Types Affected: Coordinate operation method; Coordinate operation
Codes Affected: 1041-43 9819; 5218-20 19952
Report Date (UTC): 2010-11-08
Closed Date (UTC): 2010-12-07

I think it was closed later than the EPSG 7.6 release. I didn't realize it at the time, but a name change implies a code change, which affects how GDAL interprets the projection information. For example, in ogr/ogr_fromepsg.cpp, you will need the new code:

#define CoLatConeAxis 1036

which should be used in Krovak instances. I guess the old parameter name/code,

#define Azimuth 8813

should be accepted in Krovak definitions as well, for backward compatibility and robustness.

Sorry to have caused this trouble,

Mikael

Change History (1)

comment:1 by Even Rouault, 13 years ago

Component: defaultOGR_SF
Milestone: 1.9.0
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

r23157 /trunk/gdal/ogr/ogr_fromepsg.cpp: importFromEPSG(): use CoLatConeAxis parameter to build Krovak azimuth parameter, fallback to Azimuth if not found (#4223)

Note: See TracTickets for help on using tickets.