#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 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Milestone: | → 1.7.4 |
---|
Note:
See TracTickets
for help on using tickets.
Corrected in trunk (r21138) and 1.7 branch (r21139) as part of the indicated patch.