Opened 14 years ago

Closed 14 years ago

#3644 closed defect (fixed)

Invalid shortcut value in EPSGGetPMInfo

Reported by: johncz711 Owned by: warmerdam
Priority: normal Milestone: 1.8.0
Component: OGR_SRS Version: 1.7.2
Severity: normal Keywords:
Cc:

Description

Within the EPSGGetPMInfo function, the "special short cut for Greenwich" incorrectly tests for the PM value 7022. The actual EPSG value for the Greenwich PM is 8901, so the hard-coded value needs to be changed.

A suitably modified copy of ogr_fromepsg.cpp is in the attached zip.

I have successfully used this suggested fix in a subset of OGR code recently added to my (non-ESRI-based) platform for the sole purpose of creating WKT and writing it as .prj files.

Attachments (1)

MOD_ogr_fromepsg.zip (15.0 KB ) - added by johncz711 14 years ago.

Download all attachments as: .zip

Change History (2)

by johncz711, 14 years ago

Attachment: MOD_ogr_fromepsg.zip added

comment:1 by Even Rouault, 14 years ago

Milestone: 1.8.0
Resolution: fixed
Status: newclosed

Fixed in r20497

Note: See TracTickets for help on using tickets.