Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3104 closed enhancement (fixed)

OGR SRS support for +datum=nzgd49 without EPSG authority code

Reported by: hamish Owned by: Even Rouault
Priority: normal Milestone:
Component: OGR_SRS Version: svn-trunk
Severity: minor Keywords: nzgd49, datum
Cc: Markus Neteler



re. a tangent of QGIS's bug # 1875 et al.,

the attached patch adds the WKT text string for the NZGD49 datum into OGR's SRS conversion logic.

the matched text is the same as shown by proj -ld and in the WKT of this online EPSG portal:

I'm not sure if it is desired to open the floodgates to all the datums of the world having this sort of #defined support, but as proj -ld only lists 10 possibilities it doesn't seem too outrageous to ask. A more general patch would be to ensure that all ten of the __datum_id's__ reported by proj -ld have #defines containing their space-to-underscore(?) text line equivalents. But I'm not familiar enough with the others to comment about if that's a wise idea or not.

(fwiw the datums GRASS knows beyond OGR/PROJ can be found at )

thanks, Hamish

Attachments (1)

ogr_nzgd49_wkt.diff (935 bytes ) - added by hamish 13 years ago.
patch to add nzgd49 support using WKT name alone

Download all attachments as: .zip

Change History (5)

by hamish, 13 years ago

Attachment: ogr_nzgd49_wkt.diff added

patch to add nzgd49 support using WKT name alone

comment:1 by Markus Neteler, 13 years ago

Cc: Markus Neteler added

comment:2 by Even Rouault, 13 years ago

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:3 by Even Rouault, 13 years ago

Resolution: fixed
Status: assignedclosed

In trunk (r17546) : Improve recognition of WKT text strings when translating into proj4 hard-coded datum names, in particular nzgd49 (also add ggrs87, carthage, hermannskogel, ire65); Fix ellipsoid parameters for modified airy

comment:4 by hamish, 13 years ago

cheers- the result is once again above and beyond the request.

Note: See TracTickets for help on using tickets.