Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#3840 closed defect (fixed)

PCIDSK Stereographic Scale Mistranslated

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SRS Version: unspecified
Severity: normal Keywords: PCIDSK


The scale parameter for Stereographic projections ("SG") are not properly translated from PCIDSK files. It is returned as zero due to a typo in this code segment:

    else if( EQUALN( pszProj, "SG", 2 ) )
        SetStereographic( padfPrjParams[3], padfPrjParams[2],
                          (padfPrjParams[8] != 0.0) ? padfPrjParams[9] : 1.0,
                          padfPrjParams[6], padfPrjParams[7] );

The padfPrjParams[9] in the ternary operator should be padfPrjParams[8] as in the test.

Change History (3)

comment:1 by warmerdam, 13 years ago

Resolution: fixed
Status: newclosed

Corrected in trunk (r21138) and 1.7 branch (r21139) as part of the indicated patch.

comment:2 by warmerdam, 13 years ago

Milestone: 1.7.4

comment:3 by Even Rouault, 10 years ago

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.