Changes between Initial Version and Version 1 of Ticket #5846


Ignore:
Timestamp:
Feb 17, 2015, 7:04:41 PM (9 years ago)
Author:
Kyle Shannon
Comment:

terryl850,

At first glance, it appears that the order is wrong. I tried to test using EPSG 54025:

kyle@kyle-hp-laptop:~/src/gdal/trunk/gdal$ gdalsrsinfo EPSG:54025

PROJ.4 : '+proj=omerc +lat_0=40 +lon_1=0 +lat_1=0 +lon_2=0 +lat_2=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs '

OGC WKT :
PROJCS["World_Hotine",
    GEOGCS["GCS_WGS_1984",
        DATUM["WGS_1984",
            SPHEROID["WGS_1984",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Hotine_Oblique_Mercator_Two_Point_Natural_Origin"],
    PARAMETER["False_Easting",0],
    PARAMETER["False_Northing",0],
    PARAMETER["Latitude_Of_1st_Point",0],
    PARAMETER["Latitude_Of_2nd_Point",60],
    PARAMETER["Scale_Factor",1],
    PARAMETER["Longitude_Of_1st_Point",0],
    PARAMETER["Longitude_Of_2nd_Point",60],
    PARAMETER["Latitude_Of_Center",40],
    UNIT["Meter",1],
    AUTHORITY["EPSG","54025"]]

It looks like we may have a parsing issue as well. When I sort out the parsing, I'll make your fix and add a test.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5846

    • Property Owner changed from warmerdam to Kyle Shannon
    • Property Status newassigned
    • Property Milestone1.11.3
  • Ticket #5846 – Description

    initial v1  
    11The two point locations appear incorrectly mapped to PROJ4 parameters:
    2 
     2{{{
    33    else if( EQUAL(pszProjection,
    44                   SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN) )
     
    1717                 GetNormProjParm(SRS_PP_FALSE_NORTHING,0.0) );
    1818    }
     19}}}