Opened 14 years ago

Closed 9 years ago

Last modified 9 years ago

#3641 closed defect (fixed)

Need parameter name mapping for Two-Point Hotine Oblique Mercator

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

Description

The Two-Point variant of Hotine Oblique Mercator, after morphToESRI, gives parameter names for the two points that are unacceptable to ArcMap. This can be resolved by adding the following entries to the apszParamNameMapping array within ogr_srs_esri_names.h:

"Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "latitude_of_point_1", "Latitude_Of_1st_Point",

"Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "longitude_of_point_1", "Longitude_Of_1st_Point",

"Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "latitude_of_point_2", "Latitude_Of_2nd_Point",

"Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "longitude_of_point_2", "Longitude_Of_2nd_Point",

The names produced by OGRSpatialReference::SetHOM2PNO are of the form "_of_point_1" while ESRI uses the form "_of_1st_point".

A suitably modified copy of ogr_srs_esri_names.h 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_srs_esri_names.zip (1.8 KB ) - added by johncz711 14 years ago.

Download all attachments as: .zip

Change History (3)

by johncz711, 14 years ago

Attachment: MOD_ogr_srs_esri_names.zip added

comment:1 by Even Rouault, 9 years ago

Milestone: 2.0
Resolution: fixed
Status: newclosed

trunk r29115 "morphToESRI(): add parameter renames for Hotine_Oblique_Mercator_Two_Point_Natural_Origin (patch by johncz711, #3641)"

comment:2 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.