Opened 12 years ago

Closed 12 years ago

Last modified 12 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

Description

Hi,

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

https://trac.osgeo.org/qgis/ticket/1875#comment:43

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:

http://spatialreference.org/ref/epsg/27200/

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

https://trac.osgeo.org/qgis/ticket/1875#comment:33 )

thanks, Hamish

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by hamish

Attachment: ogr_nzgd49_wkt.diff added

patch to add nzgd49 support using WKT name alone

comment:1 Changed 12 years ago by Markus Neteler

Cc: Markus Neteler added

comment:2 Changed 12 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:3 Changed 12 years ago by Even Rouault

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 Changed 12 years ago by hamish

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

Note: See TracTickets for help on using tickets.