Opened 16 years ago
Closed 16 years ago
#32 closed defect (fixed)
CS_csDefCmp does not compare conics correctly.
Reported by: | Norm Olsen | Owned by: | Norm Olsen |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Dictionaries | Version: | |
Keywords: | WKT | Cc: |
Description
The CS_csDefCmp function in the CS_defCmp.c module does not compare conic projections correctly. In most all conic projections with two standard parallels, the order of the parallels is unimportant. In the CS_csDefCmp function, this fact is not taken into account when the comparison is made.
Since CS-MAP has called the two standard parallels Northern Standard Parallel and Southern Standard Parallel for many years, the parameter processing in the WKT processor should recognize this and switch the two parameters, as necessary, to adhere to the CS-MAP parameter naming convention.
research into this defect uncovered two flaws in CS-MAP. Correcting either one of these flaws would correct the defect; however the submission fixes both flaws.
1> The CS_csDefCmp function of the CS_defCmp.c module was modified so that in the case of a conic projection, the order of the standard parallels will not affect the success of the comparision.
2> The WKT parserr was corrected so that for Conic projections with two standard parallels, parameter 1 always has the northernmost of the two standard parallels. This will usually produce a successful comparison with CS-MAP distribution systems as in these cases parameter one always carries the northernmost of the two standard parallels.
I clicked the commit button too soon, so the log message was empty. I triued to update it, but the edit request was rejected for some obtuse reason.