Opened 9 years ago

Closed 9 years ago

Last modified 7 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
Cc:

Description

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 Changed 9 years ago by warmerdam

Resolution: fixed
Status: newclosed

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

comment:2 Changed 9 years ago by warmerdam

Milestone: 1.7.4

comment:3 Changed 7 years ago by Even Rouault

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.